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
|
@ -1,7 +1,6 @@
|
|||
import { Message, Snowflake, TextChannel, ThreadChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { MessageSaverPluginType } from "./types";
|
||||
import { hotfixMessageFetch } from "../../utils/hotfixMessageFetch";
|
||||
|
||||
export async function saveMessagesToDB(
|
||||
pluginData: GuildPluginData<MessageSaverPluginType>,
|
||||
|
@ -16,7 +15,7 @@ export async function saveMessagesToDB(
|
|||
let thisMsg: Message;
|
||||
|
||||
try {
|
||||
thisMsg = await hotfixMessageFetch(channel, id as Snowflake);
|
||||
thisMsg = await channel.messages.fetch(id);
|
||||
|
||||
if (!thisMsg) {
|
||||
failed.push(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue