aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-13 22:58:56 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-13 22:58:56 -0500
commit11cc534cc895261d610eb9e7daa0672d8fb16e51 (patch)
treeb5e902acb1dc2969cbe2c1a8b529d6474a26bf61 /src/lib/extensions/discord.js
parent927a713035272eb00b19462d0431dad033264c52 (diff)
downloadtanzanite-11cc534cc895261d610eb9e7daa0672d8fb16e51.tar.gz
tanzanite-11cc534cc895261d610eb9e7daa0672d8fb16e51.tar.bz2
tanzanite-11cc534cc895261d610eb9e7daa0672d8fb16e51.zip
fixed the bushPunishRoleRemove event
Diffstat (limited to 'src/lib/extensions/discord.js')
-rw-r--r--src/lib/extensions/discord.js/BushClientEvents.d.ts2
-rw-r--r--src/lib/extensions/discord.js/BushGuildMember.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/extensions/discord.js/BushClientEvents.d.ts b/src/lib/extensions/discord.js/BushClientEvents.d.ts
index 7d22064..91096bd 100644
--- a/src/lib/extensions/discord.js/BushClientEvents.d.ts
+++ b/src/lib/extensions/discord.js/BushClientEvents.d.ts
@@ -189,8 +189,8 @@ export interface BushClientEvents extends AkairoClientEvents {
victim: BushGuildMember,
moderator: BushUser,
guild: BushGuild,
- caseID: string,
reason: string | undefined,
+ caseID: string,
role: BushRole,
evidence?: string
];
diff --git a/src/lib/extensions/discord.js/BushGuildMember.ts b/src/lib/extensions/discord.js/BushGuildMember.ts
index c4a2ed3..fe9c4c9 100644
--- a/src/lib/extensions/discord.js/BushGuildMember.ts
+++ b/src/lib/extensions/discord.js/BushGuildMember.ts
@@ -229,8 +229,8 @@ export class BushGuildMember extends GuildMember {
this,
moderator,
this.guild,
- caseID!,
options.reason ?? undefined,
+ caseID!,
options.role as BushRole,
options.evidence
);