mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
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.command("unban", "<userId:userId> [reason:string$]")
|
||||||
@d.permission("ban")
|
@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);
|
this.serverLogs.ignoreLog(LogType.MEMBER_UNBAN, args.userId);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -656,7 +656,7 @@ export class ModActionsPlugin extends ZeppelinPlugin {
|
||||||
|
|
||||||
// Create a case
|
// Create a case
|
||||||
await this.actions.fire("createCase", {
|
await this.actions.fire("createCase", {
|
||||||
userId: args.member.id,
|
userId: args.userId,
|
||||||
modId: msg.author.id,
|
modId: msg.author.id,
|
||||||
type: CaseTypes.Unban,
|
type: CaseTypes.Unban,
|
||||||
reason: args.reason
|
reason: args.reason
|
||||||
|
|
Loading…
Add table
Reference in a new issue