mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-08 19:47:20 +00:00
Upgrade DJS, fix bugs
This commit is contained in:
parent
0822fc15e5
commit
be71357ff9
17 changed files with 123 additions and 66 deletions
|
@ -1,4 +1,4 @@
|
|||
import { TextChannel } from "discord.js";
|
||||
import { Snowflake, TextChannel } from "discord.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { sendErrorMessage } from "../../../pluginUtils";
|
||||
import { messageLink } from "../../../utils";
|
||||
|
@ -38,7 +38,7 @@ export const ContextCmd = utilityCmd({
|
|||
const previousMessage = (
|
||||
await (pluginData.guild.channels.cache.get(channel.id) as TextChannel).messages.fetch({
|
||||
limit: 1,
|
||||
before: messageId,
|
||||
before: messageId as Snowflake,
|
||||
})
|
||||
)[0];
|
||||
if (!previousMessage) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue