aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/extensions/discord.js/BushGuild.ts2
-rw-r--r--src/lib/extensions/discord.js/BushGuildChannelManager.ts112
-rw-r--r--src/lib/extensions/discord.js/BushGuildMember.ts2
-rw-r--r--src/lib/utils/BushConstants.ts4
-rw-r--r--src/listeners/bush/joinAutoBan.ts2
-rw-r--r--src/listeners/bush/userUpdateAutoBan.ts2
-rw-r--r--src/listeners/guild-custom/bushLockdown.ts2
-rw-r--r--src/listeners/guild-custom/bushUnlockdown.ts2
-rw-r--r--src/listeners/guild/guildCreate.ts2
-rw-r--r--src/listeners/guild/guildDelete.ts2
-rw-r--r--src/listeners/member-custom/bushBan.ts2
-rw-r--r--src/listeners/member-custom/bushBlock.ts2
-rw-r--r--src/listeners/member-custom/bushKick.ts2
-rw-r--r--src/listeners/member-custom/bushMute.ts2
-rw-r--r--src/listeners/member-custom/bushPunishRole.ts2
-rw-r--r--src/listeners/member-custom/bushPunishRoleRemove.ts2
-rw-r--r--src/listeners/member-custom/bushPurge.ts2
-rw-r--r--src/listeners/member-custom/bushRemoveTimeout.ts2
-rw-r--r--src/listeners/member-custom/bushTimeout.ts2
-rw-r--r--src/listeners/member-custom/bushUnban.ts2
-rw-r--r--src/listeners/member-custom/bushUnblock.ts2
-rw-r--r--src/listeners/member-custom/bushUnmute.ts2
-rw-r--r--src/listeners/member-custom/bushUpdateModlog.ts2
-rw-r--r--src/listeners/member-custom/bushUpdateSettings.ts2
-rw-r--r--src/listeners/member-custom/bushWarn.ts2
-rw-r--r--src/listeners/message/autoThread.ts2
-rw-r--r--src/listeners/track-manual-punishments/modlogSyncBan.ts2
-rw-r--r--src/listeners/track-manual-punishments/modlogSyncKick.ts2
-rw-r--r--src/listeners/track-manual-punishments/modlogSyncTimeout.ts2
-rw-r--r--src/listeners/track-manual-punishments/modlogSyncUnban.ts2
30 files changed, 131 insertions, 41 deletions
diff --git a/src/lib/extensions/discord.js/BushGuild.ts b/src/lib/extensions/discord.js/BushGuild.ts
index b13d0f8..93875b8 100644
--- a/src/lib/extensions/discord.js/BushGuild.ts
+++ b/src/lib/extensions/discord.js/BushGuild.ts
@@ -371,7 +371,7 @@ export class BushGuild extends Guild {
author: { name: moderator.user.tag, icon_url: moderator.displayAvatarURL() },
title: `This channel has been ${options.unlock ? 'un' : ''}locked`,
description: options.reason ?? 'No reason provided',
- color: options.unlock ? util.colors.GREEN : util.colors.RED,
+ color: options.unlock ? util.colors.Green : util.colors.Red,
timestamp: new Date().toISOString()
}
]
diff --git a/src/lib/extensions/discord.js/BushGuildChannelManager.ts b/src/lib/extensions/discord.js/BushGuildChannelManager.ts
index 029f7d3..91bff07 100644
--- a/src/lib/extensions/discord.js/BushGuildChannelManager.ts
+++ b/src/lib/extensions/discord.js/BushGuildChannelManager.ts
@@ -2,12 +2,19 @@ import type {
BushFetchedThreads,
BushGuild,
BushGuildBasedChannel,
+ BushGuildChannel,
BushMappedGuildChannelTypes,
BushNonThreadGuildBasedChannel,
- BushStoreChannel
+ BushStoreChannel,
+ BushTextChannel
} from '#lib';
import {
CachedManager,
+ ChannelData,
+ ChannelType,
+ ChannelWebhookCreateOptions,
+ SetChannelPositionOptions,
+ Webhook,
type BaseFetchOptions,
type ChannelPosition,
type Collection,
@@ -59,27 +66,70 @@ export declare class BushGuildChannelManager
* },
* ],
* })
- * @deprecated See [Self-serve Game Selling Deprecation](https://support-dev.discord.com/hc/en-us/articles/4414590563479) for more information
*/
- // eslint-disable-next-line deprecation/deprecation
- public create(name: string, options: GuildChannelCreateOptions & { type: 'GuildStore' }): Promise<BushStoreChannel>;
+ public create<T extends Exclude<GuildChannelTypes, ChannelType.GuildStore>>(
+ name: string,
+ options: GuildChannelCreateOptions & { type: T }
+ ): Promise<BushMappedGuildChannelTypes[T]>;
/**
* Creates a new channel in the guild.
* @param name The name of the new channel
* @param options Options for creating the new channel
+ * @example
+ * // Create a new text channel
+ * guild.channels.create('new-general', { reason: 'Needed a cool new channel' })
+ * .then(console.log)
+ * .catch(console.error);
+ * @example
+ * // Create a new channel with permission overwrites
+ * guild.channels.create('new-voice', {
+ * type: 'GuildVoice',
+ * permissionOverwrites: [
+ * {
+ * id: message.author.id,
+ * deny: [PermissionFlagsBits.ViewChannel],
+ * },
+ * ],
+ * })
+ * @deprecated See [Self-serve Game Selling Deprecation](https://support-dev.discord.com/hc/en-us/articles/4414590563479) for more information
*/
- public create<T extends GuildChannelTypes>(
+ public create(
name: string,
- options: GuildChannelCreateOptions & { type: T }
- ): Promise<BushMappedGuildChannelTypes[T]>;
+ options: GuildChannelCreateOptions & { type: ChannelType.GuildStore }
+ ): // eslint-disable-next-line deprecation/deprecation
+ Promise<BushStoreChannel>;
+ public create(name: string, options?: GuildChannelCreateOptions): Promise<BushTextChannel>;
/**
- * Creates a new channel in the guild.
- * @param name The name of the new channel
- * @param options Options for creating the new channel
+ * Creates a webhook for the channel.
+ * @param channel The channel to create the webhook for
+ * @param name The name of the webhook
+ * @param options Options for creating the webhook
+ * @returns Returns the created Webhook
+ * @example
+ * // Create a webhook for the current channel
+ * guild.channels.createWebhook('222197033908436994', 'Snek', {
+ * avatar: 'https://i.imgur.com/mI8XcpG.jpg',
+ * reason: 'Needed a cool new Webhook'
+ * })
+ * .then(console.log)
+ * .catch(console.error)
*/
- public create(name: string, options: GuildChannelCreateOptions): Promise<BushNonThreadGuildBasedChannel>;
+ public createWebhook(channel: GuildChannelResolvable, name: string, options?: ChannelWebhookCreateOptions): Promise<Webhook>;
+
+ /**
+ * Edits the channel.
+ * @param channel The channel to edit
+ * @param data The new data for the channel
+ * @param reason Reason for editing this channel
+ * @example
+ * // Edit a channel
+ * guild.channels.edit('222197033908436994', { name: 'new-channel' })
+ * .then(console.log)
+ * .catch(console.error);
+ */
+ public edit(channel: GuildChannelResolvable, data: ChannelData, reason?: string): Promise<BushGuildChannel>;
/**
* Obtains one or more guild channels from Discord, or the channel cache if they're already available.
@@ -100,6 +150,34 @@ export declare class BushGuildChannelManager
public fetch(id?: undefined, options?: BaseFetchOptions): Promise<Collection<Snowflake, BushNonThreadGuildBasedChannel>>;
/**
+ * Fetches all webhooks for the channel.
+ * @param channel The channel to fetch webhooks for
+ * @example
+ * // Fetch webhooks
+ * guild.channels.fetchWebhooks('769862166131245066')
+ * .then(hooks => console.log(`This channel has ${hooks.size} hooks`))
+ * .catch(console.error);
+ */
+ public fetchWebhooks(channel: GuildChannelResolvable): Promise<Collection<Snowflake, Webhook>>;
+
+ /**
+ * Sets a new position for the guild channel.
+ * @param channel The channel to set the position for
+ * @param position The new position for the guild channel
+ * @param options Options for setting position
+ * @example
+ * // Set a new channel position
+ * guild.channels.setPosition('222078374472843266', 2)
+ * .then(newChannel => console.log(`Channel's new position is ${newChannel.position}`))
+ * .catch(console.error);
+ */
+ public setPosition(
+ channel: GuildChannelResolvable,
+ position: number,
+ options?: SetChannelPositionOptions
+ ): Promise<BushGuildChannel>;
+
+ /**
* Batch-updates the guild's channels' positions.
* <info>Only one channel's parent can be changed at a time</info>
* @param channelPositions Channel positions to update
@@ -120,4 +198,16 @@ export declare class BushGuildChannelManager
* .catch(console.error);
*/
public fetchActiveThreads(cache?: boolean): Promise<BushFetchedThreads>;
+
+ /**
+ * Deletes the channel.
+ * @param channel The channel to delete
+ * @param reason Reason for deleting this channel
+ * @example
+ * // Delete the channel
+ * guild.channels.delete('858850993013260338', 'making room for new channels')
+ * .then(console.log)
+ * .catch(console.error);
+ */
+ public delete(channel: GuildChannelResolvable, reason?: string): Promise<void>;
}
diff --git a/src/lib/extensions/discord.js/BushGuildMember.ts b/src/lib/extensions/discord.js/BushGuildMember.ts
index ab6cd65..84fdf13 100644
--- a/src/lib/extensions/discord.js/BushGuildMember.ts
+++ b/src/lib/extensions/discord.js/BushGuildMember.ts
@@ -1123,7 +1123,7 @@ export type TimeoutResponse = ValueOf<typeof timeoutResponse>;
*/
export type RemoveTimeoutResponse = ValueOf<typeof removeTimeoutResponse>;
-export type PartialBushGuildMember = Partialize<BushGuildMember, 'joinedAt' | 'joinedTimestamp'>;
+export type PartialBushGuildMember = Partialize<BushGuildMember, 'joinedAt' | 'joinedTimestamp' | 'pending'>;
/**
* @typedef {BushClientEvents} VSCodePleaseDontRemove
diff --git a/src/lib/utils/BushConstants.ts b/src/lib/utils/BushConstants.ts
index 5b2b2e6..4327fec 100644
--- a/src/lib/utils/BushConstants.ts
+++ b/src/lib/utils/BushConstants.ts
@@ -1,4 +1,4 @@
-import { Constants } from 'discord.js';
+import { Colors } from 'discord.js';
import { BushClientUtil } from '../extensions/discord-akairo/BushClientUtil.js';
const rawCapeUrl = 'https://raw.githubusercontent.com/NotEnoughUpdates/capes/master/';
@@ -107,7 +107,7 @@ export class BushConstants {
darkGray: 0x7a7a7a,
black: 0x000000,
orange: 0xe86100,
- ...Constants.Colors
+ ...Colors
} as const);
// Somewhat stolen from @Mzato0001
diff --git a/src/listeners/bush/joinAutoBan.ts b/src/listeners/bush/joinAutoBan.ts
index 5ded5b4..c258877 100644
--- a/src/listeners/bush/joinAutoBan.ts
+++ b/src/listeners/bush/joinAutoBan.ts
@@ -37,7 +37,7 @@ export default class JoinAutoBanListener extends BushListener {
{
title: 'Name Auto Ban - User Join',
description: `**User:** ${member.user} (${member.user.tag})\n **Action:** Banned for blacklisted name.`,
- color: client.consts.colors.red,
+ color: util.colors.red,
author: {
name: member.user.tag,
icon_url: member.displayAvatarURL()
diff --git a/src/listeners/bush/userUpdateAutoBan.ts b/src/listeners/bush/userUpdateAutoBan.ts
index 97fcf48..e3fba02 100644
--- a/src/listeners/bush/userUpdateAutoBan.ts
+++ b/src/listeners/bush/userUpdateAutoBan.ts
@@ -43,7 +43,7 @@ export default class UserUpdateAutoBanListener extends BushListener {
{
title: 'Name Auto Ban - User Update',
description: `**User:** ${member.user} (${member.user.tag})\n **Action:** Banned for using blacklisted name.`,
- color: client.consts.colors.red,
+ color: util.colors.red,
author: {
name: member.user.tag,
icon_url: member.displayAvatarURL()
diff --git a/src/listeners/guild-custom/bushLockdown.ts b/src/listeners/guild-custom/bushLockdown.ts
index 6a075b4..badbb39 100644
--- a/src/listeners/guild-custom/bushLockdown.ts
+++ b/src/listeners/guild-custom/bushLockdown.ts
@@ -15,7 +15,7 @@ export default class BushLockdownListener extends BushListener {
if (!logChannel) return;
const logEmbed = new Embed()
- .setColor(util.colors.BLURPLE)
+ .setColor(util.colors.Blurple)
.setTimestamp()
.addField({ name: '**Action**', value: `${'Lockdown'}` })
.addField({ name: '**Moderator**', value: `${moderator} (${moderator.user.tag})` })
diff --git a/src/listeners/guild-custom/bushUnlockdown.ts b/src/listeners/guild-custom/bushUnlockdown.ts
index 6c87678..c7d9158 100644
--- a/src/listeners/guild-custom/bushUnlockdown.ts
+++ b/src/listeners/guild-custom/bushUnlockdown.ts
@@ -15,7 +15,7 @@ export default class BushUnlockdownListener extends BushListener {
if (!logChannel) return;
const logEmbed = new Embed()
- .setColor(util.colors.BLURPLE)
+ .setColor(util.colors.Blurple)
.setTimestamp()
.addField({ name: '**Action**', value: `${'Unlockdown'}` })
.addField({ name: '**Moderator**', value: `${moderator} (${moderator.user.tag})` })
diff --git a/src/listeners/guild/guildCreate.ts b/src/listeners/guild/guildCreate.ts
index 0e2540f..56cd5df 100644
--- a/src/listeners/guild/guildCreate.ts
+++ b/src/listeners/guild/guildCreate.ts
@@ -19,7 +19,7 @@ export default class GuildCreateListener extends BushListener {
return await channel.send({
embeds: [
{
- color: util.colors.GREEN,
+ color: util.colors.Green,
description: `${util.emojis.join} Joined ${util.format.input(
guild.name
)} with **${guild.memberCount?.toLocaleString()}** members. I am now in **${client.guilds.cache.size}** guilds.`,
diff --git a/src/listeners/guild/guildDelete.ts b/src/listeners/guild/guildDelete.ts
index 2af2295..054c5e0 100644
--- a/src/listeners/guild/guildDelete.ts
+++ b/src/listeners/guild/guildDelete.ts
@@ -17,7 +17,7 @@ export default class GuildDeleteListener extends BushListener {
return await channel.send({
embeds: [
{
- color: util.colors.RED,
+ color: util.colors.Red,
description: `${util.emojis.leave} Left ${util.format.input(
guild.name
)} with **${guild.memberCount?.toLocaleString()}** members. I am now in **${client.guilds.cache.size}** guilds.`,
diff --git a/src/listeners/member-custom/bushBan.ts b/src/listeners/member-custom/bushBan.ts
index b58f661..12e8694 100644
--- a/src/listeners/member-custom/bushBan.ts
+++ b/src/listeners/member-custom/bushBan.ts
@@ -16,7 +16,7 @@ export default class BushBanListener extends BushListener {
const user = victim instanceof GuildMember ? victim.user : victim;
const logEmbed = new Embed()
- .setColor(util.colors.RED)
+ .setColor(util.colors.Red)
.setTimestamp()
.setFooter({ text: `CaseID: ${caseID}` })
.setAuthor({ name: user.tag, iconURL: user.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/member-custom/bushBlock.ts b/src/listeners/member-custom/bushBlock.ts
index 2d023c4..e35b5a3 100644
--- a/src/listeners/member-custom/bushBlock.ts
+++ b/src/listeners/member-custom/bushBlock.ts
@@ -18,7 +18,7 @@ export default class BushBlockListener extends BushListener {
const user = victim instanceof GuildMember ? victim.user : victim;
const logEmbed = new Embed()
- .setColor(util.colors.PURPLE)
+ .setColor(util.colors.Purple)
.setTimestamp()
.setFooter({ text: `CaseID: ${caseID}` })
.setAuthor({ name: user.tag, iconURL: user.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/member-custom/bushKick.ts b/src/listeners/member-custom/bushKick.ts
index 50af0af..97db7e4 100644
--- a/src/listeners/member-custom/bushKick.ts
+++ b/src/listeners/member-custom/bushKick.ts
@@ -16,7 +16,7 @@ export default class BushKickListener extends BushListener {
const user = victim instanceof GuildMember ? victim.user : victim;
const logEmbed = new Embed()
- .setColor(util.colors.RED)
+ .setColor(util.colors.Red)
.setTimestamp()
.setFooter({ text: `CaseID: ${caseID}` })
.setAuthor({ name: user.tag, iconURL: user.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/member-custom/bushMute.ts b/src/listeners/member-custom/bushMute.ts
index bfd1fc0..8b80658 100644
--- a/src/listeners/member-custom/bushMute.ts
+++ b/src/listeners/member-custom/bushMute.ts
@@ -16,7 +16,7 @@ export default class BushMuteListener extends BushListener {
const user = victim instanceof GuildMember ? victim.user : victim;
const logEmbed = new Embed()
- .setColor(util.colors.ORANGE)
+ .setColor(util.colors.Orange)
.setTimestamp()
.setFooter({ text: `CaseID: ${caseID}` })
.setAuthor({ name: user.tag, iconURL: user.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/member-custom/bushPunishRole.ts b/src/listeners/member-custom/bushPunishRole.ts
index 112c4df..1c9dcce 100644
--- a/src/listeners/member-custom/bushPunishRole.ts
+++ b/src/listeners/member-custom/bushPunishRole.ts
@@ -16,7 +16,7 @@ export default class BushPunishRoleListener extends BushListener {
const user = victim instanceof GuildMember ? victim.user : victim;
const logEmbed = new Embed()
- .setColor(util.colors.YELLOW)
+ .setColor(util.colors.Yellow)
.setTimestamp()
.setFooter({ text: `CaseID: ${caseID}` })
.setAuthor({ name: user.tag, iconURL: user.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/member-custom/bushPunishRoleRemove.ts b/src/listeners/member-custom/bushPunishRoleRemove.ts
index dadc841..5039370 100644
--- a/src/listeners/member-custom/bushPunishRoleRemove.ts
+++ b/src/listeners/member-custom/bushPunishRoleRemove.ts
@@ -16,7 +16,7 @@ export default class BushPunishRoleRemoveListener extends BushListener {
const user = victim instanceof GuildMember ? victim.user : victim;
const logEmbed = new Embed()
- .setColor(util.colors.GREEN)
+ .setColor(util.colors.Green)
.setTimestamp()
.setFooter({ text: `CaseID: ${caseID}` })
.setAuthor({ name: user.tag, iconURL: user.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/member-custom/bushPurge.ts b/src/listeners/member-custom/bushPurge.ts
index 72286a0..6f61fea 100644
--- a/src/listeners/member-custom/bushPurge.ts
+++ b/src/listeners/member-custom/bushPurge.ts
@@ -24,7 +24,7 @@ export default class BushPurgeListener extends BushListener {
const haste = await util.inspectCleanRedactHaste(mappedMessages);
const logEmbed = new Embed()
- .setColor(util.colors.DARK_PURPLE)
+ .setColor(util.colors.DarkPurple)
.setTimestamp()
.setFooter({ text: `${messages.size.toLocaleString()} Messages` })
.setAuthor({ name: moderator.tag, iconURL: moderator.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/member-custom/bushRemoveTimeout.ts b/src/listeners/member-custom/bushRemoveTimeout.ts
index e3e2e09..bb6d463 100644
--- a/src/listeners/member-custom/bushRemoveTimeout.ts
+++ b/src/listeners/member-custom/bushRemoveTimeout.ts
@@ -16,7 +16,7 @@ export default class BushRemoveTimeoutListener extends BushListener {
const user = victim instanceof GuildMember ? victim.user : victim;
const logEmbed = new Embed()
- .setColor(util.colors.GREEN)
+ .setColor(util.colors.Green)
.setTimestamp()
.setFooter({ text: `CaseID: ${caseID}` })
.setAuthor({ name: user.tag, iconURL: user.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/member-custom/bushTimeout.ts b/src/listeners/member-custom/bushTimeout.ts
index d7f8000..2887104 100644
--- a/src/listeners/member-custom/bushTimeout.ts
+++ b/src/listeners/member-custom/bushTimeout.ts
@@ -18,7 +18,7 @@ export default class BushTimeoutListener extends BushListener {
const user = victim instanceof GuildMember ? victim.user : victim;
const logEmbed = new Embed()
- .setColor(util.colors.ORANGE)
+ .setColor(util.colors.Orange)
.setTimestamp()
.setFooter({ text: `CaseID: ${caseID}` })
.setAuthor({ name: user.tag, iconURL: user.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/member-custom/bushUnban.ts b/src/listeners/member-custom/bushUnban.ts
index bee8032..a3bc7cf 100644
--- a/src/listeners/member-custom/bushUnban.ts
+++ b/src/listeners/member-custom/bushUnban.ts
@@ -16,7 +16,7 @@ export default class BushUnbanListener extends BushListener {
const user = victim instanceof GuildMember ? victim.user : victim;
const logEmbed = new Embed()
- .setColor(util.colors.GREEN)
+ .setColor(util.colors.Green)
.setTimestamp()
.setFooter({ text: `CaseID: ${caseID}` })
.setAuthor({ name: user.tag, iconURL: user.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/member-custom/bushUnblock.ts b/src/listeners/member-custom/bushUnblock.ts
index dd076c6..fde3ad8 100644
--- a/src/listeners/member-custom/bushUnblock.ts
+++ b/src/listeners/member-custom/bushUnblock.ts
@@ -16,7 +16,7 @@ export default class BushUnblockListener extends BushListener {
const user = victim instanceof GuildMember ? victim.user : victim;
const logEmbed = new Embed()
- .setColor(util.colors.GREEN)
+ .setColor(util.colors.Green)
.setTimestamp()
.setFooter({ text: `CaseID: ${caseID}` })
.setAuthor({ name: user.tag, iconURL: user.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/member-custom/bushUnmute.ts b/src/listeners/member-custom/bushUnmute.ts
index 573cbdc..ad9ae6e 100644
--- a/src/listeners/member-custom/bushUnmute.ts
+++ b/src/listeners/member-custom/bushUnmute.ts
@@ -16,7 +16,7 @@ export default class BushUnmuteListener extends BushListener {
const user = victim instanceof GuildMember ? victim.user : victim;
const logEmbed = new Embed()
- .setColor(util.colors.GREEN)
+ .setColor(util.colors.Green)
.setTimestamp()
.setFooter({ text: `CaseID: ${caseID}` })
.setAuthor({ name: user.tag, iconURL: user.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/member-custom/bushUpdateModlog.ts b/src/listeners/member-custom/bushUpdateModlog.ts
index d9e43aa..05a5f8e 100644
--- a/src/listeners/member-custom/bushUpdateModlog.ts
+++ b/src/listeners/member-custom/bushUpdateModlog.ts
@@ -15,7 +15,7 @@ export default class BushUpdateModlogListener extends BushListener {
if (!logChannel) return;
const logEmbed = new Embed()
- .setColor(util.colors.BLURPLE)
+ .setColor(util.colors.Blurple)
.setTimestamp()
.setAuthor({
name: moderator.user.tag,
diff --git a/src/listeners/member-custom/bushUpdateSettings.ts b/src/listeners/member-custom/bushUpdateSettings.ts
index dbf3c9c..c4f71ff 100644
--- a/src/listeners/member-custom/bushUpdateSettings.ts
+++ b/src/listeners/member-custom/bushUpdateSettings.ts
@@ -14,7 +14,7 @@ export default class BushUpdateSettingsListener extends BushListener {
const logChannel = await guild.getLogChannel('moderation');
if (!logChannel) return;
- const logEmbed = new Embed().setColor(util.colors.BLURPLE).setTimestamp();
+ const logEmbed = new Embed().setColor(util.colors.Blurple).setTimestamp();
if (moderator)
logEmbed.setAuthor({
diff --git a/src/listeners/member-custom/bushWarn.ts b/src/listeners/member-custom/bushWarn.ts
index cbcf8db..229438c 100644
--- a/src/listeners/member-custom/bushWarn.ts
+++ b/src/listeners/member-custom/bushWarn.ts
@@ -16,7 +16,7 @@ export default class BushWarnListener extends BushListener {
const user = victim instanceof GuildMember ? victim.user : victim;
const logEmbed = new Embed()
- .setColor(util.colors.YELLOW)
+ .setColor(util.colors.Yellow)
.setTimestamp()
.setFooter({ text: `CaseID: ${caseID}` })
.setAuthor({ name: user.tag, iconURL: user.avatarURL({ extension: 'png', size: 4096 }) ?? undefined })
diff --git a/src/listeners/message/autoThread.ts b/src/listeners/message/autoThread.ts
index aa17035..540f479 100644
--- a/src/listeners/message/autoThread.ts
+++ b/src/listeners/message/autoThread.ts
@@ -50,7 +50,7 @@ export default class autoThreadListener extends BushListener {
.setDescription(
`Welcome to Moulberry Bush Support:tm:\n\nPlease make sure you have the latest version found in <#693586404256645231>.\nAdditionally if you need help installing the mod be sure to read <#737444942724726915> for a guide on how to do so.`
)
- .setColor(client.consts.colors.BLURPLE);
+ .setColor(util.colors.Blurple);
void thread
.send({ embeds: [embed] })
.then(() =>
diff --git a/src/listeners/track-manual-punishments/modlogSyncBan.ts b/src/listeners/track-manual-punishments/modlogSyncBan.ts
index 6048235..9886530 100644
--- a/src/listeners/track-manual-punishments/modlogSyncBan.ts
+++ b/src/listeners/track-manual-punishments/modlogSyncBan.ts
@@ -52,7 +52,7 @@ export default class ModlogSyncBanListener extends BushListener {
if (!logChannel) return;
const logEmbed = new Embed()
- .setColor(util.colors.RED)
+ .setColor(util.colors.Red)
.setTimestamp()
.setFooter({ text: `CaseID: ${log.id}` })
.setAuthor({
diff --git a/src/listeners/track-manual-punishments/modlogSyncKick.ts b/src/listeners/track-manual-punishments/modlogSyncKick.ts
index 814b624..b7762db 100644
--- a/src/listeners/track-manual-punishments/modlogSyncKick.ts
+++ b/src/listeners/track-manual-punishments/modlogSyncKick.ts
@@ -52,7 +52,7 @@ export default class ModlogSyncKickListener extends BushListener {
if (!logChannel) return;
const logEmbed = new Embed()
- .setColor(util.colors.RED)
+ .setColor(util.colors.Red)
.setTimestamp()
.setFooter({ text: `CaseID: ${log.id}` })
.setAuthor({
diff --git a/src/listeners/track-manual-punishments/modlogSyncTimeout.ts b/src/listeners/track-manual-punishments/modlogSyncTimeout.ts
index 1289f4c..21dde1a 100644
--- a/src/listeners/track-manual-punishments/modlogSyncTimeout.ts
+++ b/src/listeners/track-manual-punishments/modlogSyncTimeout.ts
@@ -57,7 +57,7 @@ export default class ModlogSyncTimeoutListener extends BushListener {
if (!logChannel) return;
const logEmbed = new Embed()
- .setColor(util.colors[newTime ? 'ORANGE' : 'GREEN'])
+ .setColor(util.colors[newTime ? 'Orange' : 'Green'])
.setTimestamp()
.setFooter({ text: `CaseID: ${log.id}` })
.setAuthor({
diff --git a/src/listeners/track-manual-punishments/modlogSyncUnban.ts b/src/listeners/track-manual-punishments/modlogSyncUnban.ts
index a92c1e9..a268ef4 100644
--- a/src/listeners/track-manual-punishments/modlogSyncUnban.ts
+++ b/src/listeners/track-manual-punishments/modlogSyncUnban.ts
@@ -51,7 +51,7 @@ export default class ModlogSyncUnbanListener extends BushListener {
if (!logChannel) return;
const logEmbed = new Embed()
- .setColor(util.colors.ORANGE)
+ .setColor(util.colors.Orange)
.setTimestamp()
.setFooter({ text: `CaseID: ${log.id}` })
.setAuthor({