aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/message
diff options
context:
space:
mode:
Diffstat (limited to 'src/listeners/message')
-rw-r--r--src/listeners/message/automodCreate.ts9
-rw-r--r--src/listeners/message/level.ts2
2 files changed, 5 insertions, 6 deletions
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}`);