mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 22:05:01 +00:00
More rework progress, mostly done up to ModActions
This commit is contained in:
parent
52839cc9f3
commit
57893e7f76
38 changed files with 199 additions and 241 deletions
|
@ -1,5 +1,6 @@
|
|||
import { MessageSaverPluginType } from "./types";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { TextChannel, Message } from "discord.js";
|
||||
|
||||
export async function saveMessagesToDB(
|
||||
pluginData: GuildPluginData<MessageSaverPluginType>,
|
||||
|
@ -14,7 +15,7 @@ export async function saveMessagesToDB(
|
|||
let thisMsg: Message;
|
||||
|
||||
try {
|
||||
thisMsg = await channel.getMessage(id);
|
||||
thisMsg = await channel.messages.fetch(id);
|
||||
|
||||
if (!thisMsg) {
|
||||
failed.push(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue