diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-16 14:32:18 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-16 14:32:18 -0400 |
commit | 0e87bbd3940d89defcb04926587b35c8f4d1947f (patch) | |
tree | e50860d4dc25a11d4c3977b583284c4bcad1b077 /src/listeners/ws | |
parent | 661e4c9935aeb8760dafc7ced4bbec6cc356a033 (diff) | |
download | tanzanite-0e87bbd3940d89defcb04926587b35c8f4d1947f.tar.gz tanzanite-0e87bbd3940d89defcb04926587b35c8f4d1947f.tar.bz2 tanzanite-0e87bbd3940d89defcb04926587b35c8f4d1947f.zip |
remove util classes, move config out of src
Diffstat (limited to 'src/listeners/ws')
-rw-r--r-- | src/listeners/ws/INTERACTION_CREATE.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/listeners/ws/INTERACTION_CREATE.ts b/src/listeners/ws/INTERACTION_CREATE.ts index 408e7e5..5f479ad 100644 --- a/src/listeners/ws/INTERACTION_CREATE.ts +++ b/src/listeners/ws/INTERACTION_CREATE.ts @@ -1,4 +1,4 @@ -import { BushListener, Moderation, PunishmentTypePresent } from '#lib'; +import { BushListener, capitalize, colors, emojis, Moderation, PunishmentTypePresent } from '#lib'; import assert from 'assert'; import { ActionRowBuilder, @@ -30,7 +30,7 @@ export default class WsInteractionCreateListener extends BushListener { }); } - public override async exec(interaction: APIInteraction) { + public async exec(interaction: APIInteraction) { // console.dir(interaction); const respond = ( @@ -67,7 +67,7 @@ export default class WsInteractionCreateListener extends BushListener { return respond({ type: InteractionResponseType.ChannelMessageWithSource, data: { - content: `${util.emojis.error} I am no longer in that server.` + content: `${emojis.error} I am no longer in that server.` } }); @@ -75,7 +75,7 @@ export default class WsInteractionCreateListener extends BushListener { type: InteractionResponseType.Modal, data: { custom_id: `appeal_submit;${punishment};${guildId};${userId};${modlogCase}`, - title: `${util.capitalize(punishment)} Appeal`, + title: `${capitalize(punishment)} Appeal`, components: [ { type: ComponentType.ActionRow, @@ -177,7 +177,7 @@ export default class WsInteractionCreateListener extends BushListener { return respond({ type: InteractionResponseType.ChannelMessageWithSource, data: { - content: `${util.emojis.error} I am no longer in that server.` + content: `${emojis.error} I am no longer in that server.` } }); @@ -186,7 +186,7 @@ export default class WsInteractionCreateListener extends BushListener { return respond({ type: InteractionResponseType.ChannelMessageWithSource, data: { - content: `${util.emojis.error} ${guild.name} has misconfigured their appeals channel.` + content: `${emojis.error} ${guild.name} has misconfigured their appeals channel.` } }); @@ -197,8 +197,8 @@ export default class WsInteractionCreateListener extends BushListener { // const caseId = await ModLog.findOne({ where: { user: userId, guild: guildId, id: modlogCase } }); const embed = new EmbedBuilder() - .setTitle(`${util.capitalize(punishment)} Appeal`) - .setColor(util.colors.newBlurple) + .setTitle(`${capitalize(punishment)} Appeal`) + .setColor(colors.newBlurple) .setTimestamp() .setFooter({ text: `CaseID: ${modlogCase}` }) .setAuthor({ name: user.tag, iconURL: user.displayAvatarURL() }) |