diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-23 22:02:44 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-23 22:02:44 -0400 |
commit | b015bec7f66526ec5e959ae99865845f4db4b181 (patch) | |
tree | 67538c9549b7e0f7cd6a97e9c82db8d8462a19c7 /src/lib/extensions/discord.js | |
parent | 5c242f597595b8db71875d92c0afe0a5947442a6 (diff) | |
download | tanzanite-b015bec7f66526ec5e959ae99865845f4db4b181.tar.gz tanzanite-b015bec7f66526ec5e959ae99865845f4db4b181.tar.bz2 tanzanite-b015bec7f66526ec5e959ae99865845f4db4b181.zip |
feat: some shit
- fix breaking changes
- refactored active punishments into one table
- made listeners args have stricter types
Diffstat (limited to 'src/lib/extensions/discord.js')
4 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/extensions/discord.js/BushButtonInteraction.ts b/src/lib/extensions/discord.js/BushButtonInteraction.ts index 3a54f61..846786c 100644 --- a/src/lib/extensions/discord.js/BushButtonInteraction.ts +++ b/src/lib/extensions/discord.js/BushButtonInteraction.ts @@ -1,4 +1,4 @@ -import { APIInteractionGuildMember } from 'discord-api-types/v8'; +import { APIInteractionGuildMember } from 'discord-api-types/v9'; import { ButtonInteraction, PartialDMChannel } from 'discord.js'; import { BushClient } from '../discord-akairo/BushClient'; import { BushDMChannel } from './BushDMChannel'; diff --git a/src/lib/extensions/discord.js/BushCommandInteraction.ts b/src/lib/extensions/discord.js/BushCommandInteraction.ts index 84c0707..e4fdb53 100644 --- a/src/lib/extensions/discord.js/BushCommandInteraction.ts +++ b/src/lib/extensions/discord.js/BushCommandInteraction.ts @@ -1,4 +1,4 @@ -import { APIInteractionGuildMember } from 'discord-api-types/v8'; +import { APIInteractionGuildMember } from 'discord-api-types/v9'; import { ApplicationCommand, CommandInteraction, diff --git a/src/lib/extensions/discord.js/BushGuildMember.ts b/src/lib/extensions/discord.js/BushGuildMember.ts index 40e4a3a..50875cc 100644 --- a/src/lib/extensions/discord.js/BushGuildMember.ts +++ b/src/lib/extensions/discord.js/BushGuildMember.ts @@ -137,7 +137,7 @@ export class BushGuildMember extends GuildMember { guild: this.guild, duration: options.duration, modlog: modlog.id, - role: options.role.id + extraInfo: options.role.id }) .catch(() => null); if (!punishmentEntrySuccess) return 'error creating role entry'; diff --git a/src/lib/extensions/discord.js/BushSelectMenuInteraction.ts b/src/lib/extensions/discord.js/BushSelectMenuInteraction.ts index 1dd1638..18db8ef 100644 --- a/src/lib/extensions/discord.js/BushSelectMenuInteraction.ts +++ b/src/lib/extensions/discord.js/BushSelectMenuInteraction.ts @@ -1,4 +1,4 @@ -import { APIInteractionGuildMember } from 'discord-api-types/v8'; +import { APIInteractionGuildMember } from 'discord-api-types/v9'; import { PartialDMChannel, SelectMenuInteraction } from 'discord.js'; import { BushClient } from '../discord-akairo/BushClient'; import { BushDMChannel } from './BushDMChannel'; |