mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +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 { waitForReply } from "knub/dist/helpers";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { CaseTypes } from "../../../data/CaseTypes";
|
||||
|
@ -60,7 +60,10 @@ export const MassunbanCmd = modActionsCmd({
|
|||
}
|
||||
|
||||
try {
|
||||
await pluginData.guild.bans.remove(userId, unbanReason != null ? encodeURIComponent(unbanReason) : undefined);
|
||||
await pluginData.guild.bans.remove(
|
||||
userId as Snowflake,
|
||||
unbanReason != null ? encodeURIComponent(unbanReason) : undefined,
|
||||
);
|
||||
|
||||
await casesPlugin.createCase({
|
||||
userId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue