diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-09 21:50:48 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-09 21:50:48 -0400 |
commit | 3ea8f98128d81bcd03df6699d46804b38ddcc294 (patch) | |
tree | 2abead6b627dd818bab69d26387e623a8e87ce60 /src/lib | |
parent | b8eb96c439b4e387fbb0854f0148d3ae74ddfeed (diff) | |
download | tanzanite-3ea8f98128d81bcd03df6699d46804b38ddcc294.tar.gz tanzanite-3ea8f98128d81bcd03df6699d46804b38ddcc294.tar.bz2 tanzanite-3ea8f98128d81bcd03df6699d46804b38ddcc294.zip |
fix roles
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/extensions/discord.js/BushGuildMember.ts | 5 | ||||
-rw-r--r-- | src/lib/models/ActivePunishment.ts | 2 |
2 files changed, 4 insertions, 3 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'; diff --git a/src/lib/models/ActivePunishment.ts b/src/lib/models/ActivePunishment.ts index f453426..12b0cab 100644 --- a/src/lib/models/ActivePunishment.ts +++ b/src/lib/models/ActivePunishment.ts @@ -131,7 +131,7 @@ export class ActivePunishment } }, extraInfo: { - type: DataTypes.DATE, + type: DataTypes.STRING, allowNull: true }, expires: { |