mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Remove hotfixMessageFetch()
This commit is contained in:
parent
d54f03361a
commit
329cd05652
8 changed files with 8 additions and 38 deletions
|
@ -4,7 +4,6 @@ import { commandTypeHelpers as ct } from "../../../commandTypes";
|
|||
import { getBaseUrl, sendErrorMessage } from "../../../pluginUtils";
|
||||
import { canReadChannel } from "../../../utils/canReadChannel";
|
||||
import { utilityCmd } from "../types";
|
||||
import { hotfixMessageFetch } from "../../../utils/hotfixMessageFetch";
|
||||
|
||||
export const SourceCmd = utilityCmd({
|
||||
trigger: "source",
|
||||
|
@ -22,7 +21,7 @@ export const SourceCmd = utilityCmd({
|
|||
return;
|
||||
}
|
||||
|
||||
const message = await hotfixMessageFetch(args.message.channel, args.message.messageId);
|
||||
const message = await args.message.channel.messages.fetch(args.message.messageId);
|
||||
if (!message) {
|
||||
sendErrorMessage(pluginData, cmdMessage.channel, "Unknown message");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue