Fix error in unban
This commit is contained in:
parent
e7b8c0d64d
commit
7154c006dc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue