aboutsummaryrefslogtreecommitdiff
path: root/src/listeners
diff options
context:
space:
mode:
Diffstat (limited to 'src/listeners')
-rw-r--r--src/listeners/client/interactionCreate.ts3
-rw-r--r--src/listeners/commands/commandError.ts3
-rw-r--r--src/listeners/commands/commandMissingPermissions.ts6
-rw-r--r--src/listeners/custom/bushUpdateSettings.ts5
-rw-r--r--src/listeners/guild/guildCreate.ts5
-rw-r--r--src/listeners/guild/guildMemberAdd.ts4
-rw-r--r--src/listeners/message/autoPublisher.ts3
7 files changed, 9 insertions, 20 deletions
diff --git a/src/listeners/client/interactionCreate.ts b/src/listeners/client/interactionCreate.ts
index be6cede..40c7628 100644
--- a/src/listeners/client/interactionCreate.ts
+++ b/src/listeners/client/interactionCreate.ts
@@ -21,8 +21,7 @@ export default class InteractionCreateListener extends BushListener {
return;
} else if (interaction.isButton()) {
if (interaction.customId.startsWith('paginate_') || interaction.customId.startsWith('command_')) return;
- else if (interaction.customId.startsWith('automod;'))
- void AutoMod.handleInteraction(interaction as BushButtonInteraction);
+ else if (interaction.customId.startsWith('automod;')) void AutoMod.handleInteraction(interaction as BushButtonInteraction);
else return await interaction.reply({ content: 'Buttons go brrr', ephemeral: true });
} else if (interaction.isSelectMenu()) {
if (interaction.customId.startsWith('command_')) return;
diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts
index 61fe206..f29c7e0 100644
--- a/src/listeners/commands/commandError.ts
+++ b/src/listeners/commands/commandError.ts
@@ -144,8 +144,7 @@ export default class CommandErrorListener extends BushListener {
`**Channel:** <#${options.message.channel?.id}> (${options.channel})`,
`**Message:** [link](${options.message.url})`
);
- if (options.message?.util?.parsed?.content)
- description.push(`**Command Content:** ${options.message.util.parsed.content}`);
+ if (options.message?.util?.parsed?.content) description.push(`**Command Content:** ${options.message.util.parsed.content}`);
}
description.push(...options.haste);
diff --git a/src/listeners/commands/commandMissingPermissions.ts b/src/listeners/commands/commandMissingPermissions.ts
index 0bbf916..c8a3a6e 100644
--- a/src/listeners/commands/commandMissingPermissions.ts
+++ b/src/listeners/commands/commandMissingPermissions.ts
@@ -41,9 +41,9 @@ export default class CommandMissingPermissionsListener extends BushListener {
} else if (type == 'user') {
return await message.util
.reply(
- `${util.emojis.error} You are missing the ${discordFormat} permission${
- missing.length ? 's' : ''
- } required for the **${command?.id}** command.`
+ `${util.emojis.error} You are missing the ${discordFormat} permission${missing.length ? 's' : ''} required for the **${
+ command?.id
+ }** command.`
)
.catch(() => {});
}
diff --git a/src/listeners/custom/bushUpdateSettings.ts b/src/listeners/custom/bushUpdateSettings.ts
index b95c077..39e76c7 100644
--- a/src/listeners/custom/bushUpdateSettings.ts
+++ b/src/listeners/custom/bushUpdateSettings.ts
@@ -17,10 +17,7 @@ export default class BushUpdateSettingsListener extends BushListener {
const logEmbed = new MessageEmbed().setColor(util.colors.discord.BLURPLE).setTimestamp();
if (moderator)
- logEmbed.setAuthor(
- moderator.user.tag,
- moderator.user.avatarURL({ dynamic: true, format: 'png', size: 4096 }) ?? undefined
- );
+ logEmbed.setAuthor(moderator.user.tag, moderator.user.avatarURL({ dynamic: true, format: 'png', size: 4096 }) ?? undefined);
logEmbed.addField('**Action**', `${'Update Settings'}`);
if (moderator) logEmbed.addField('**Moderator**', `${moderator} (${moderator.user.tag})`);
logEmbed
diff --git a/src/listeners/guild/guildCreate.ts b/src/listeners/guild/guildCreate.ts
index 68e9216..622958f 100644
--- a/src/listeners/guild/guildCreate.ts
+++ b/src/listeners/guild/guildCreate.ts
@@ -10,10 +10,7 @@ export default class GuildCreateListener extends BushListener {
}
public override async exec(...[guild]: BushClientEvents['guildCreate']) {
- void client.console.info(
- 'guildCreate',
- `Joined <<${guild.name}>> with <<${guild.memberCount?.toLocaleString()}>> members.`
- );
+ void client.console.info('guildCreate', `Joined <<${guild.name}>> with <<${guild.memberCount?.toLocaleString()}>> members.`);
const g = await Guild.findByPk(guild.id);
if (!g) void Guild.create({ id: guild.id });
}
diff --git a/src/listeners/guild/guildMemberAdd.ts b/src/listeners/guild/guildMemberAdd.ts
index 2b964f4..295b889 100644
--- a/src/listeners/guild/guildMemberAdd.ts
+++ b/src/listeners/guild/guildMemberAdd.ts
@@ -110,9 +110,7 @@ export default class GuildMemberAddListener extends BushListener {
() =>
void client.console.warn(
'guildMemberAdd',
- `Failed to assign join roles to <<${util.sanitizeWtlAndControl(member.user.tag)}>>, in <<${
- member.guild.name
- }>>.`
+ `Failed to assign join roles to <<${util.sanitizeWtlAndControl(member.user.tag)}>>, in <<${member.guild.name}>>.`
)
);
}
diff --git a/src/listeners/message/autoPublisher.ts b/src/listeners/message/autoPublisher.ts
index fa5cb51..a0ae39e 100644
--- a/src/listeners/message/autoPublisher.ts
+++ b/src/listeners/message/autoPublisher.ts
@@ -20,8 +20,7 @@ export default class autoPublisherListener extends BushListener {
() => void client.logger.log('autoPublisher', `Published message <<${message.id}>> in <<${message.guild!.name}>>.`)
)
.catch(
- () =>
- void client.console.warn('autoPublisher', `Failed to publish <<${message.id}>> in <<${message.guild!.name}>>.`)
+ () => void client.console.warn('autoPublisher', `Failed to publish <<${message.id}>> in <<${message.guild!.name}>>.`)
);
}
}