aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/guild-custom
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-25 23:47:40 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-25 23:47:40 -0500
commit840cca672d681c36f980a06fb79a4e2c01bd69ac (patch)
tree82c40a7fe3e1a2bc6367fed6e3d26b6c7dceb256 /src/listeners/guild-custom
parent6ca99336a416389dd2b0b8c4c6a7b2ef87bc9fef (diff)
downloadtanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.tar.gz
tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.tar.bz2
tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.zip
I love breaking changes!!!!
Diffstat (limited to 'src/listeners/guild-custom')
-rw-r--r--src/listeners/guild-custom/bushLockdown.ts18
-rw-r--r--src/listeners/guild-custom/bushUnlockdown.ts18
2 files changed, 18 insertions, 18 deletions
diff --git a/src/listeners/guild-custom/bushLockdown.ts b/src/listeners/guild-custom/bushLockdown.ts
index d48ddf1..f3e72e7 100644
--- a/src/listeners/guild-custom/bushLockdown.ts
+++ b/src/listeners/guild-custom/bushLockdown.ts
@@ -1,5 +1,5 @@
import { BushListener, type BushClientEvents } from '#lib';
-import { MessageEmbed } from 'discord.js';
+import { Embed } from 'discord.js';
export default class BushLockdownListener extends BushListener {
public constructor() {
@@ -14,19 +14,19 @@ export default class BushLockdownListener extends BushListener {
const logChannel = await moderator.guild.getLogChannel('moderation');
if (!logChannel) return;
- const logEmbed = new MessageEmbed()
+ const logEmbed = new Embed()
.setColor(util.colors.discord.BLURPLE)
.setTimestamp()
- .addField('**Action**', `${'Lockdown'}`)
- .addField('**Moderator**', `${moderator} (${moderator.user.tag})`)
+ .addField({ name: '**Action**', value: `${'Lockdown'}` })
+ .addField({ name: '**Moderator**', value: `${moderator} (${moderator.user.tag})` })
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
- .addField('**Reason**', `${reason || '[No Reason Provided]'}`)
- .addField(
- `**Channel${channelsSuccessMap.size > 1 ? 's' : ''}**`,
- channelsSuccessMap
+ .addField({ name: '**Reason**', value: `${reason || '[No Reason Provided]'}` })
+ .addField({
+ name: `**Channel${channelsSuccessMap.size > 1 ? 's' : ''}**`,
+ value: channelsSuccessMap
.map((success, channel) => `<#${channel}> ${success ? util.emojis.success : util.emojis.error}`)
.join('\n')
- );
+ });
return await logChannel.send({ embeds: [logEmbed] });
}
}
diff --git a/src/listeners/guild-custom/bushUnlockdown.ts b/src/listeners/guild-custom/bushUnlockdown.ts
index cfddc2f..0ac2a13 100644
--- a/src/listeners/guild-custom/bushUnlockdown.ts
+++ b/src/listeners/guild-custom/bushUnlockdown.ts
@@ -1,5 +1,5 @@
import { BushListener, type BushClientEvents } from '#lib';
-import { MessageEmbed } from 'discord.js';
+import { Embed } from 'discord.js';
export default class BushUnlockdownListener extends BushListener {
public constructor() {
@@ -14,19 +14,19 @@ export default class BushUnlockdownListener extends BushListener {
const logChannel = await moderator.guild.getLogChannel('moderation');
if (!logChannel) return;
- const logEmbed = new MessageEmbed()
+ const logEmbed = new Embed()
.setColor(util.colors.discord.BLURPLE)
.setTimestamp()
- .addField('**Action**', `${'Unlockdown'}`)
- .addField('**Moderator**', `${moderator} (${moderator.user.tag})`)
+ .addField({ name: '**Action**', value: `${'Unlockdown'}` })
+ .addField({ name: '**Moderator**', value: `${moderator} (${moderator.user.tag})` })
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
- .addField('**Reason**', `${reason || '[No Reason Provided]'}`)
- .addField(
- `**Channel${channelsSuccessMap.size > 1 ? 's' : ''}**`,
- channelsSuccessMap
+ .addField({ name: '**Reason**', value: `${reason || '[No Reason Provided]'}` })
+ .addField({
+ name: `**Channel${channelsSuccessMap.size > 1 ? 's' : ''}**`,
+ value: channelsSuccessMap
.map((success, channel) => `<#${channel}> ${success ? util.emojis.success : util.emojis.error}`)
.join('\n')
- );
+ });
return await logChannel.send({ embeds: [logEmbed] });
}
}