diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-13 23:37:57 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-13 23:37:57 -0400 |
commit | b44bbd48c72765e46b904a7aa9ce473ab2e35f98 (patch) | |
tree | a63a85c19d656dddbdbc03c4b06728852a2497d7 /src/lib/common/autoMod.ts | |
parent | ad25bed8ac1beb0fee578525b73f39dfa8acf992 (diff) | |
download | tanzanite-b44bbd48c72765e46b904a7aa9ce473ab2e35f98.tar.gz tanzanite-b44bbd48c72765e46b904a7aa9ce473ab2e35f98.tar.bz2 tanzanite-b44bbd48c72765e46b904a7aa9ce473ab2e35f98.zip |
automod ban button evidence
Diffstat (limited to 'src/lib/common/autoMod.ts')
-rw-r--r-- | src/lib/common/autoMod.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/common/autoMod.ts b/src/lib/common/autoMod.ts index 2f88ee7..3236253 100644 --- a/src/lib/common/autoMod.ts +++ b/src/lib/common/autoMod.ts @@ -207,7 +207,12 @@ export class AutoMod { ephemeral: true }); - const result = await interaction.guild?.bushBan({ user: userId, reason, moderator: interaction.user.id }); + const result = await interaction.guild?.bushBan({ + user: userId, + reason, + moderator: interaction.user.id, + evidence: (interaction.message as BushMessage).url ?? undefined + }); if (result === 'success') return interaction.reply({ |