diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-25 23:47:40 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-25 23:47:40 -0500 |
commit | 840cca672d681c36f980a06fb79a4e2c01bd69ac (patch) | |
tree | 82c40a7fe3e1a2bc6367fed6e3d26b6c7dceb256 /src/listeners/track-manual-punishments | |
parent | 6ca99336a416389dd2b0b8c4c6a7b2ef87bc9fef (diff) | |
download | tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.tar.gz tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.tar.bz2 tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.zip |
I love breaking changes!!!!
Diffstat (limited to 'src/listeners/track-manual-punishments')
4 files changed, 24 insertions, 24 deletions
diff --git a/src/listeners/track-manual-punishments/modlogSyncBan.ts b/src/listeners/track-manual-punishments/modlogSyncBan.ts index 03024d8..7625357 100644 --- a/src/listeners/track-manual-punishments/modlogSyncBan.ts +++ b/src/listeners/track-manual-punishments/modlogSyncBan.ts @@ -1,6 +1,6 @@ import { BushListener, BushUser, Moderation, ModLogType, type BushClientEvents } from '#lib'; import { AuditLogEvent } from 'discord-api-types'; -import { MessageEmbed, Permissions } from 'discord.js'; +import { Embed, Permissions } from 'discord.js'; export default class ModlogSyncBanListener extends BushListener { public constructor() { @@ -51,7 +51,7 @@ export default class ModlogSyncBanListener extends BushListener { const logChannel = await ban.guild.getLogChannel('moderation'); if (!logChannel) return; - const logEmbed = new MessageEmbed() + const logEmbed = new Embed() .setColor(util.colors.discord.RED) .setTimestamp() .setFooter({ text: `CaseID: ${log.id}` }) @@ -59,10 +59,10 @@ export default class ModlogSyncBanListener extends BushListener { name: ban.user.tag, iconURL: ban.user.avatarURL({ format: 'png', size: 4096 }) ?? undefined }) - .addField('**Action**', `${'Manual Ban'}`) - .addField('**User**', `${ban.user} (${ban.user.tag})`) - .addField('**Moderator**', `${first.executor} (${first.executor.tag})`) - .addField('**Reason**', `${first.reason ? first.reason : '[No Reason Provided]'}`); + .addField({ name: '**Action**', value: `${'Manual Ban'}` }) + .addField({ name: '**User**', value: `${ban.user} (${ban.user.tag})` }) + .addField({ name: '**Moderator**', value: `${first.executor} (${first.executor.tag})` }) + .addField({ name: '**Reason**', value: `${first.reason ? first.reason : '[No Reason Provided]'}` }); return await logChannel.send({ embeds: [logEmbed] }); } } diff --git a/src/listeners/track-manual-punishments/modlogSyncKick.ts b/src/listeners/track-manual-punishments/modlogSyncKick.ts index 9ea6a9d..a369618 100644 --- a/src/listeners/track-manual-punishments/modlogSyncKick.ts +++ b/src/listeners/track-manual-punishments/modlogSyncKick.ts @@ -1,6 +1,6 @@ import { BushListener, BushUser, Moderation, ModLogType, type BushClientEvents } from '#lib'; import { AuditLogEvent } from 'discord-api-types'; -import { MessageEmbed, Permissions } from 'discord.js'; +import { Embed, Permissions } from 'discord.js'; export default class ModlogSyncKickListener extends BushListener { public constructor() { @@ -51,7 +51,7 @@ export default class ModlogSyncKickListener extends BushListener { const logChannel = await member.guild.getLogChannel('moderation'); if (!logChannel) return; - const logEmbed = new MessageEmbed() + const logEmbed = new Embed() .setColor(util.colors.discord.RED) .setTimestamp() .setFooter({ text: `CaseID: ${log.id}` }) @@ -59,10 +59,10 @@ export default class ModlogSyncKickListener extends BushListener { name: member.user.tag, iconURL: member.user.avatarURL({ format: 'png', size: 4096 }) ?? undefined }) - .addField('**Action**', `${'Manual Kick'}`) - .addField('**User**', `${member.user} (${member.user.tag})`) - .addField('**Moderator**', `${first.executor} (${first.executor.tag})`) - .addField('**Reason**', `${first.reason ? first.reason : '[No Reason Provided]'}`); + .addField({ name: '**Action**', value: `${'Manual Kick'}` }) + .addField({ name: '**User**', value: `${member.user} (${member.user.tag})` }) + .addField({ name: '**Moderator**', value: `${first.executor} (${first.executor.tag})` }) + .addField({ name: '**Reason**', value: `${first.reason ? first.reason : '[No Reason Provided]'}` }); return await logChannel.send({ embeds: [logEmbed] }); } } diff --git a/src/listeners/track-manual-punishments/modlogSyncTimeout.ts b/src/listeners/track-manual-punishments/modlogSyncTimeout.ts index 9b67f43..dd9391a 100644 --- a/src/listeners/track-manual-punishments/modlogSyncTimeout.ts +++ b/src/listeners/track-manual-punishments/modlogSyncTimeout.ts @@ -1,6 +1,6 @@ import { BushListener, BushUser, Moderation, ModLogType, type BushClientEvents } from '#lib'; import { AuditLogEvent } from 'discord-api-types'; -import { MessageEmbed, Permissions } from 'discord.js'; +import { Embed, Permissions } from 'discord.js'; export default class ModlogSyncTimeoutListener extends BushListener { public constructor() { @@ -56,7 +56,7 @@ export default class ModlogSyncTimeoutListener extends BushListener { const logChannel = await newMember.guild.getLogChannel('moderation'); if (!logChannel) return; - const logEmbed = new MessageEmbed() + const logEmbed = new Embed() .setColor(util.colors.discord[newTime ? 'ORANGE' : 'GREEN']) .setTimestamp() .setFooter({ text: `CaseID: ${log.id}` }) @@ -64,10 +64,10 @@ export default class ModlogSyncTimeoutListener extends BushListener { name: newMember.user.tag, iconURL: newMember.user.avatarURL({ format: 'png', size: 4096 }) ?? undefined }) - .addField('**Action**', `${newTime ? 'Manual Timeout' : 'Manual Remove Timeout'}`) - .addField('**User**', `${newMember.user} (${newMember.user.tag})`) - .addField('**Moderator**', `${first.executor} (${first.executor.tag})`) - .addField('**Reason**', `${first.reason ? first.reason : '[No Reason Provided]'}`); + .addField({ name: '**Action**', value: `${newTime ? 'Manual Timeout' : 'Manual Remove Timeout'}` }) + .addField({ name: '**User**', value: `${newMember.user} (${newMember.user.tag})` }) + .addField({ name: '**Moderator**', value: `${first.executor} (${first.executor.tag})` }) + .addField({ name: '**Reason**', value: `${first.reason ? first.reason : '[No Reason Provided]'}` }); return await logChannel.send({ embeds: [logEmbed] }); } } diff --git a/src/listeners/track-manual-punishments/modlogSyncUnban.ts b/src/listeners/track-manual-punishments/modlogSyncUnban.ts index 7cdecb0..84887e3 100644 --- a/src/listeners/track-manual-punishments/modlogSyncUnban.ts +++ b/src/listeners/track-manual-punishments/modlogSyncUnban.ts @@ -1,6 +1,6 @@ import { BushListener, BushUser, Moderation, ModLogType, type BushClientEvents } from '#lib'; import { AuditLogEvent } from 'discord-api-types'; -import { MessageEmbed, Permissions } from 'discord.js'; +import { Embed, Permissions } from 'discord.js'; export default class ModlogSyncUnbanListener extends BushListener { public constructor() { @@ -50,7 +50,7 @@ export default class ModlogSyncUnbanListener extends BushListener { const logChannel = await ban.guild.getLogChannel('moderation'); if (!logChannel) return; - const logEmbed = new MessageEmbed() + const logEmbed = new Embed() .setColor(util.colors.discord.ORANGE) .setTimestamp() .setFooter({ text: `CaseID: ${log.id}` }) @@ -58,10 +58,10 @@ export default class ModlogSyncUnbanListener extends BushListener { name: ban.user.tag, iconURL: ban.user.avatarURL({ format: 'png', size: 4096 }) ?? undefined }) - .addField('**Action**', `${'Manual Unban'}`) - .addField('**User**', `${ban.user} (${ban.user.tag})`) - .addField('**Moderator**', `${first.executor} (${first.executor.tag})`) - .addField('**Reason**', `${first.reason ? first.reason : '[No Reason Provided]'}`); + .addField({ name: '**Action**', value: `${'Manual Unban'}` }) + .addField({ name: '**User**', value: `${ban.user} (${ban.user.tag})` }) + .addField({ name: '**Moderator**', value: `${first.executor} (${first.executor.tag})` }) + .addField({ name: '**Reason**', value: `${first.reason ? first.reason : '[No Reason Provided]'}` }); return await logChannel.send({ embeds: [logEmbed] }); } } |