3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Fix error in unban

This commit is contained in:
Dragory 2018-12-14 08:54:15 +02:00
parent e7b8c0d64d
commit 7154c006dc

View file

@ -640,7 +640,7 @@ export class ModActionsPlugin extends ZeppelinPlugin {
@d.command("unban", "<userId:userId> [reason:string$]")
@d.permission("ban")
async unbanCmd(msg: Message, args: any) {
async unbanCmd(msg: Message, args: { userId: string; reason: string }) {
this.serverLogs.ignoreLog(LogType.MEMBER_UNBAN, args.userId);
try {
@ -656,7 +656,7 @@ export class ModActionsPlugin extends ZeppelinPlugin {
// Create a case
await this.actions.fire("createCase", {
userId: args.member.id,
userId: args.userId,
modId: msg.author.id,
type: CaseTypes.Unban,
reason: args.reason