aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-09 21:50:48 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-09 21:50:48 -0400
commit3ea8f98128d81bcd03df6699d46804b38ddcc294 (patch)
tree2abead6b627dd818bab69d26387e623a8e87ce60 /src/lib/extensions/discord.js
parentb8eb96c439b4e387fbb0854f0148d3ae74ddfeed (diff)
downloadtanzanite-3ea8f98128d81bcd03df6699d46804b38ddcc294.tar.gz
tanzanite-3ea8f98128d81bcd03df6699d46804b38ddcc294.tar.bz2
tanzanite-3ea8f98128d81bcd03df6699d46804b38ddcc294.zip
fix roles
Diffstat (limited to 'src/lib/extensions/discord.js')
-rw-r--r--src/lib/extensions/discord.js/BushGuildMember.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/extensions/discord.js/BushGuildMember.ts b/src/lib/extensions/discord.js/BushGuildMember.ts
index b5bc407..8e855f7 100644
--- a/src/lib/extensions/discord.js/BushGuildMember.ts
+++ b/src/lib/extensions/discord.js/BushGuildMember.ts
@@ -199,7 +199,7 @@ export class BushGuildMember extends GuildMember {
const ret = await (async () => {
if (options.addToModlog) {
const { log: modlog } = await util.createModLogEntry({
- type: ModLogType.PERM_PUNISHMENT_ROLE,
+ type: ModLogType.REMOVE_PUNISHMENT_ROLE,
guild: this.guild,
moderator: moderator.id,
user: this,
@@ -212,7 +212,8 @@ export class BushGuildMember extends GuildMember {
const punishmentEntrySuccess = await util.removePunishmentEntry({
type: 'role',
user: this,
- guild: this.guild
+ guild: this.guild,
+ extraInfo: options.role.id
});
if (!punishmentEntrySuccess) return 'error removing role entry';