diff options
Diffstat (limited to 'src/listeners')
-rw-r--r-- | src/listeners/client/interactionCreate.ts | 15 | ||||
-rw-r--r-- | src/listeners/commands/commandError.ts | 2 | ||||
-rw-r--r-- | src/listeners/message/automodCreate.ts | 9 | ||||
-rw-r--r-- | src/listeners/message/level.ts | 2 |
4 files changed, 9 insertions, 19 deletions
diff --git a/src/listeners/client/interactionCreate.ts b/src/listeners/client/interactionCreate.ts index b4cc353..d2bc6b5 100644 --- a/src/listeners/client/interactionCreate.ts +++ b/src/listeners/client/interactionCreate.ts @@ -25,10 +25,10 @@ export default class InteractionCreateListener extends BushListener { ); return; } else if (interaction.isButton()) { - if (interaction.customId.startsWith('paginate_')) return; + if (interaction.customId.startsWith('paginate_') || interaction.customId.startsWith('command_')) return; return await interaction.reply({ content: 'Buttons go brrr', ephemeral: true }); } else if (interaction.isSelectMenu()) { - if (interaction.customId.startsWith('featureCommand_')) return; + if (interaction.customId.startsWith('command_')) return; return await interaction.reply({ content: `You selected ${ Array.isArray(interaction.values) @@ -37,15 +37,6 @@ export default class InteractionCreateListener extends BushListener { }.`, ephemeral: true }); - } /* else if (interaction.isContextMenu()) { - if (interaction.commandName === 'View Raw') { - await interaction.deferReply({ ephemeral: true }); - const embed = await ViewRawCommand.getRawData(interaction.options.getMessage('message') as BushMessage, { - json: false, - js: false - }); - return await interaction.editReply({ embeds: [embed] }); - } - } */ + } } } diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts index f43e17d..a3618e7 100644 --- a/src/listeners/commands/commandError.ts +++ b/src/listeners/commands/commandError.ts @@ -96,7 +96,7 @@ export default class CommandErrorListener extends BushListener { } const inspectOptions = { showHidden: false, - depth: 5, + depth: 9, colors: false, customInspect: true, showProxy: false, diff --git a/src/listeners/message/automodCreate.ts b/src/listeners/message/automodCreate.ts index f78efec..4165043 100644 --- a/src/listeners/message/automodCreate.ts +++ b/src/listeners/message/automodCreate.ts @@ -97,16 +97,15 @@ export default class AutomodMessageCreateListener extends BushListener { : highestOffence === 2 ? util.colors.orange : util.colors.red; + // TODO: remove hard coded value void (message.guild.channels.cache.get('783088333055066212') as TextChannel).send({ embeds: [ new MessageEmbed() .setTitle(`[Severity ${highestOffence}] Automod Action Performed`) .setDescription( - `**User:** ${message.author.tag} (${message.author.tag})\n**Sent From**: <#${ - message.channel.id - }> [Jump to context](${message.url})\n**Blacklisted Words:** ${util - .surroundArray(Object.keys(offences), '`') - .join(', ')}` + `**User:** ${message.author} (${message.author.tag})\n**Sent From**: <#${message.channel.id}> [Jump to context](${ + message.url + })\n**Blacklisted Words:** ${util.surroundArray(Object.keys(offences), '`').join(', ')}` ) .addField('Message Content', `${await util.codeblock(message.content, 1024)}`) .setColor(color) diff --git a/src/listeners/message/level.ts b/src/listeners/message/level.ts index 33e7b08..83d9e3b 100644 --- a/src/listeners/message/level.ts +++ b/src/listeners/message/level.ts @@ -35,7 +35,7 @@ export default class LevelListener extends BushListener { }); if (success) void client.logger.verbose( - `levelMessageListener`, + `levelMessage`, `Gave <<${xpToGive}>> XP to <<${message.author.tag}>> in <<${message.guild}>>.` ); this.#levelCooldowns.add(`${message.guild.id}-${message.author.id}`); |