diff --git a/.eslintrc.json b/.eslintrc.json index 811d78b..033326d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -19,6 +19,7 @@ ], "rules": { "import/no-unresolved": "error", + "import/prefer-default-export": "off", "class-methods-use-this": "off" }, "settings": { diff --git a/src/commands/coordinators/access.ts b/src/commands/coordinators/access.ts index 0f71938..83ebbb5 100644 --- a/src/commands/coordinators/access.ts +++ b/src/commands/coordinators/access.ts @@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework'; import { ChannelType, TextChannel, VoiceChannel } from 'discord.js'; import IDs from '#utils/ids'; -class AccessCommand extends Command { +export class AccessCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -234,5 +234,3 @@ class AccessCommand extends Command { }); } } - -export default AccessCommand; diff --git a/src/commands/coordinators/anonymous.ts b/src/commands/coordinators/anonymous.ts index a6dd48f..9cae7da 100644 --- a/src/commands/coordinators/anonymous.ts +++ b/src/commands/coordinators/anonymous.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { Message } from 'discord.js'; import { ChannelType, TextChannel } from 'discord.js'; -class AnonymousCommand extends Command { +export class AnonymousCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -125,5 +125,3 @@ class AnonymousCommand extends Command { await message.react('✅'); } } - -export default AnonymousCommand; diff --git a/src/commands/coordinators/clear.ts b/src/commands/coordinators/clear.ts index 87a2e0a..45ddd6f 100644 --- a/src/commands/coordinators/clear.ts +++ b/src/commands/coordinators/clear.ts @@ -20,7 +20,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { Message } from 'discord.js'; -class ClearCommand extends Command { +export class ClearCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -103,5 +103,3 @@ class ClearCommand extends Command { await message.react('✅'); } } - -export default ClearCommand; diff --git a/src/commands/coordinators/moveall.ts b/src/commands/coordinators/moveall.ts index 4587fa6..62786f1 100644 --- a/src/commands/coordinators/moveall.ts +++ b/src/commands/coordinators/moveall.ts @@ -24,7 +24,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { Message } from 'discord.js'; import { ChannelType } from 'discord.js'; -class MoveAllCommand extends Command { +export class MoveAllCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -178,5 +178,3 @@ class MoveAllCommand extends Command { await message.react('✅'); } } - -export default MoveAllCommand; diff --git a/src/commands/coordinators/private.ts b/src/commands/coordinators/private.ts index c7de7bf..3cbf6fd 100644 --- a/src/commands/coordinators/private.ts +++ b/src/commands/coordinators/private.ts @@ -29,7 +29,7 @@ import { } from 'discord.js'; import IDs from '#utils/ids'; -class PrivateCommand extends Command { +export class PrivateCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -300,7 +300,8 @@ class PrivateCommand extends Command { return; } - const category = guild.channels.cache.get(IDs.categories.private) as CategoryChannel | undefined; + const category = guild.channels.cache + .get(IDs.categories.private) as CategoryChannel | undefined; if (category === undefined) { await interaction.reply({ @@ -364,7 +365,8 @@ class PrivateCommand extends Command { } private checkPrivate(user: Snowflake, coordinator: string, guild: Guild) { - const category = guild.channels.cache.get(IDs.categories.private) as CategoryChannel | undefined; + const category = guild.channels.cache + .get(IDs.categories.private) as CategoryChannel | undefined; if (category === undefined) { return true; @@ -382,5 +384,3 @@ class PrivateCommand extends Command { return exists; } } - -export default PrivateCommand; diff --git a/src/commands/fun/1984.ts b/src/commands/fun/1984.ts index 9c2f9f4..06089e4 100644 --- a/src/commands/fun/1984.ts +++ b/src/commands/fun/1984.ts @@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework'; import { EmbedBuilder } from 'discord.js'; import { N1984 } from '#utils/gifs'; -class N1984Command extends Command { +export class N1984Command extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -63,5 +63,3 @@ class N1984Command extends Command { await interaction.reply({ embeds: [n1984Embed], fetchReply: true }); } } - -export default N1984Command; diff --git a/src/commands/fun/happy.ts b/src/commands/fun/happy.ts index 35eb112..e750ede 100644 --- a/src/commands/fun/happy.ts +++ b/src/commands/fun/happy.ts @@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework'; import { EmbedBuilder } from 'discord.js'; import { Happy } from '#utils/gifs'; -class HappyCommand extends Command { +export class HappyCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -61,5 +61,3 @@ class HappyCommand extends Command { await interaction.reply({ embeds: [happyEmbed], fetchReply: true }); } } - -export default HappyCommand; diff --git a/src/commands/fun/hug.ts b/src/commands/fun/hug.ts index caee322..b8d6577 100644 --- a/src/commands/fun/hug.ts +++ b/src/commands/fun/hug.ts @@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework'; import { EmbedBuilder } from 'discord.js'; import { Hugs } from '#utils/gifs'; -class HugCommand extends Command { +export class HugCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -64,5 +64,3 @@ class HugCommand extends Command { await interaction.reply({ content: `<@${user.id}>`, embeds: [hugEmbed], fetchReply: true }); } } - -export default HugCommand; diff --git a/src/commands/fun/kill.ts b/src/commands/fun/kill.ts index c64f45f..cfbd3b3 100644 --- a/src/commands/fun/kill.ts +++ b/src/commands/fun/kill.ts @@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework'; import { EmbedBuilder } from 'discord.js'; import { Kill } from '#utils/gifs'; -class KillCommand extends Command { +export class KillCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -64,5 +64,3 @@ class KillCommand extends Command { await interaction.reply({ content: `<@${user.id}>`, embeds: [killEmbed], fetchReply: true }); } } - -export default KillCommand; diff --git a/src/commands/fun/poke.ts b/src/commands/fun/poke.ts index 46f128f..02ccae5 100644 --- a/src/commands/fun/poke.ts +++ b/src/commands/fun/poke.ts @@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework'; import { EmbedBuilder } from 'discord.js'; import { Poke } from '#utils/gifs'; -class PokeCommand extends Command { +export class PokeCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -65,5 +65,3 @@ class PokeCommand extends Command { await interaction.reply({ content: `<@${user.id}>`, embeds: [pokeEmbed], fetchReply: true }); } } - -export default PokeCommand; diff --git a/src/commands/fun/sad.ts b/src/commands/fun/sad.ts index b359c9f..cc8bad4 100644 --- a/src/commands/fun/sad.ts +++ b/src/commands/fun/sad.ts @@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework'; import { EmbedBuilder } from 'discord.js'; import { Sad } from '#utils/gifs'; -class SadCommand extends Command { +export class SadCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -61,5 +61,3 @@ class SadCommand extends Command { await interaction.reply({ embeds: [sadEmbed], fetchReply: true }); } } - -export default SadCommand; diff --git a/src/commands/fun/shrug.ts b/src/commands/fun/shrug.ts index 2ab9f00..74fa524 100644 --- a/src/commands/fun/shrug.ts +++ b/src/commands/fun/shrug.ts @@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework'; import { EmbedBuilder } from 'discord.js'; import { Shrug } from '#utils/gifs'; -class ShrugCommand extends Command { +export class ShrugCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -61,5 +61,3 @@ class ShrugCommand extends Command { await interaction.reply({ embeds: [shrugEmbed], fetchReply: true }); } } - -export default ShrugCommand; diff --git a/src/commands/mod/ban.ts b/src/commands/mod/ban.ts index ecbd736..a3edb49 100644 --- a/src/commands/mod/ban.ts +++ b/src/commands/mod/ban.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { addBan, checkActive } from '#utils/database/ban'; import { addEmptyUser, addExistingUser, userExists } from '#utils/database/dbExistingUser'; -class BanCommand extends Command { +export class BanCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -132,10 +132,12 @@ class BanCommand extends Command { await addBan(user.id, mod.user.id, reason); // Log the ban - let logChannel = guild.channels.cache.get(IDs.channels.logs.restricted) as TextChannel | undefined; + let logChannel = guild.channels.cache + .get(IDs.channels.logs.restricted) as TextChannel | undefined; if (logChannel === undefined) { - logChannel = await guild.channels.fetch(IDs.channels.logs.restricted) as TextChannel | undefined; + logChannel = await guild.channels + .fetch(IDs.channels.logs.restricted) as TextChannel | undefined; if (logChannel === undefined) { console.error('Ban Error: Could not fetch log channel'); return; @@ -232,10 +234,12 @@ class BanCommand extends Command { await message.react('✅'); // Log the ban - let logChannel = guild.channels.cache.get(IDs.channels.logs.restricted) as TextChannel | undefined; + let logChannel = guild.channels.cache + .get(IDs.channels.logs.restricted) as TextChannel | undefined; if (logChannel === undefined) { - logChannel = await guild.channels.fetch(IDs.channels.logs.restricted) as TextChannel | undefined; + logChannel = await guild.channels + .fetch(IDs.channels.logs.restricted) as TextChannel | undefined; if (logChannel === undefined) { console.error('Ban Error: Could not fetch log channel'); return; @@ -245,5 +249,3 @@ class BanCommand extends Command { await logChannel.send(`${user} was banned for: ${reason} by ${mod}`); } } - -export default BanCommand; diff --git a/src/commands/mod/diversity.ts b/src/commands/mod/diversity.ts index 22b033c..8c1ace6 100644 --- a/src/commands/mod/diversity.ts +++ b/src/commands/mod/diversity.ts @@ -33,7 +33,7 @@ import { import type { TextChannel } from 'discord.js'; import IDs from '#utils/ids'; -class DiversityCommand extends Command { +export class DiversityCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -136,7 +136,8 @@ class DiversityCommand extends Command { } // Checks if the channel is open - const open = channel.permissionsFor(IDs.roles.vegan.vegan)!.has([PermissionsBitField.Flags.SendMessages]); + const open = channel.permissionsFor(IDs.roles.vegan.vegan)! + .has([PermissionsBitField.Flags.SendMessages]); // Toggle send message in channel await channelText.permissionOverwrites.edit(IDs.roles.vegan.vegan, { SendMessages: !open }); @@ -275,5 +276,3 @@ class DiversityCommand extends Command { await thread.members.remove(member); } } - -export default DiversityCommand; diff --git a/src/commands/mod/rename.ts b/src/commands/mod/rename.ts index bcf6db6..d5f2dcb 100644 --- a/src/commands/mod/rename.ts +++ b/src/commands/mod/rename.ts @@ -20,7 +20,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; -class RenameUserCommand extends Command { +export class RenameUserCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -113,5 +113,3 @@ class RenameUserCommand extends Command { await message.react('✅'); } } - -export default RenameUserCommand; diff --git a/src/commands/mod/sus.ts b/src/commands/mod/sus.ts index 0f4edb9..f5e024e 100644 --- a/src/commands/mod/sus.ts +++ b/src/commands/mod/sus.ts @@ -41,7 +41,7 @@ import IDs from '#utils/ids'; // TODO add a check when they join the server to give the user the sus role again -class SusCommand extends Command { +export class SusCommand extends Command { public constructor(context: Command.Context) { super(context, { name: 'sus', @@ -535,5 +535,3 @@ class SusCommand extends Command { await message.react('✅'); } } - -export default SusCommand; diff --git a/src/commands/mod/unban.ts b/src/commands/mod/unban.ts index d557fc3..9c27000 100644 --- a/src/commands/mod/unban.ts +++ b/src/commands/mod/unban.ts @@ -28,7 +28,7 @@ import IDs from '#utils/ids'; import { removeBan, checkActive, addBan } from '#utils/database/ban'; import { addEmptyUser, addExistingUser, userExists } from '#utils/database/dbExistingUser'; -class UnbanCommand extends Command { +export class UnbanCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -131,10 +131,12 @@ class UnbanCommand extends Command { }); // Log the ban - let modRestrict = guild.channels.cache.get(IDs.channels.restricted.moderators) as TextChannel | undefined; + let modRestrict = guild.channels.cache + .get(IDs.channels.restricted.moderators) as TextChannel | undefined; if (modRestrict === undefined) { - modRestrict = await guild.channels.fetch(IDs.channels.restricted.moderators) as TextChannel | undefined; + modRestrict = await guild.channels + .fetch(IDs.channels.restricted.moderators) as TextChannel | undefined; if (modRestrict === undefined) { console.error('Unban Error: Could not fetch mod channel'); return; @@ -221,10 +223,12 @@ class UnbanCommand extends Command { }); // Log the ban - let modRestrict = guild.channels.cache.get(IDs.channels.restricted.moderators) as TextChannel | undefined; + let modRestrict = guild.channels.cache + .get(IDs.channels.restricted.moderators) as TextChannel | undefined; if (modRestrict === undefined) { - modRestrict = await guild.channels.fetch(IDs.channels.restricted.moderators) as TextChannel | undefined; + modRestrict = await guild.channels + .fetch(IDs.channels.restricted.moderators) as TextChannel | undefined; if (modRestrict === undefined) { console.error('Unban Error: Could not fetch mod channel'); return; @@ -234,5 +238,3 @@ class UnbanCommand extends Command { await modRestrict.send(`${user} was unbanned by ${mod}`); } } - -export default UnbanCommand; diff --git a/src/commands/roles/activist.ts b/src/commands/roles/activist.ts index c54888c..d8a1f73 100644 --- a/src/commands/roles/activist.ts +++ b/src/commands/roles/activist.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class ActivistCommand extends Command { +export class ActivistCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -199,5 +199,3 @@ class ActivistCommand extends Command { .catch(() => {}); } } - -export default ActivistCommand; diff --git a/src/commands/roles/bookClub.ts b/src/commands/roles/bookClub.ts index 539a738..c6d3391 100644 --- a/src/commands/roles/bookClub.ts +++ b/src/commands/roles/bookClub.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class BookClubCommand extends Command { +export class BookClubCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -154,5 +154,3 @@ class BookClubCommand extends Command { await message.react('✅'); } } - -export default BookClubCommand; diff --git a/src/commands/roles/convinced.ts b/src/commands/roles/convinced.ts index 9ea4cbf..8d12fc2 100644 --- a/src/commands/roles/convinced.ts +++ b/src/commands/roles/convinced.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class ConvincedCommand extends Command { +export class ConvincedCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -183,5 +183,3 @@ class ConvincedCommand extends Command { await message.react('✅'); } } - -export default ConvincedCommand; diff --git a/src/commands/roles/debateHost.ts b/src/commands/roles/debateHost.ts index 7875fd1..2bed4a7 100644 --- a/src/commands/roles/debateHost.ts +++ b/src/commands/roles/debateHost.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class DebateHostCommand extends Command { +export class DebateHostCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -154,5 +154,3 @@ class DebateHostCommand extends Command { await message.react('✅'); } } - -export default DebateHostCommand; diff --git a/src/commands/roles/gameNightHost.ts b/src/commands/roles/gameNightHost.ts index d71f10b..2c33162 100644 --- a/src/commands/roles/gameNightHost.ts +++ b/src/commands/roles/gameNightHost.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class GameNightHostCommand extends Command { +export class GameNightHostCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -154,5 +154,3 @@ class GameNightHostCommand extends Command { await message.react('✅'); } } - -export default GameNightHostCommand; diff --git a/src/commands/roles/guest.ts b/src/commands/roles/guest.ts index 7a0ba01..367c2f9 100644 --- a/src/commands/roles/guest.ts +++ b/src/commands/roles/guest.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class GuestCommand extends Command { +export class GuestCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -154,5 +154,3 @@ class GuestCommand extends Command { await message.react('✅'); } } - -export default GuestCommand; diff --git a/src/commands/roles/plus.ts b/src/commands/roles/plus.ts index 4df09d9..452698e 100644 --- a/src/commands/roles/plus.ts +++ b/src/commands/roles/plus.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class PlusCommand extends Command { +export class PlusCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -170,5 +170,3 @@ class PlusCommand extends Command { await message.react('✅'); } } - -export default PlusCommand; diff --git a/src/commands/roles/staff/mentor.ts b/src/commands/roles/staff/mentor.ts index a417c8f..6d73510 100644 --- a/src/commands/roles/staff/mentor.ts +++ b/src/commands/roles/staff/mentor.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class MentorCommand extends Command { +export class MentorCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -154,5 +154,3 @@ class MentorCommand extends Command { await message.react('✅'); } } - -export default MentorCommand; diff --git a/src/commands/roles/staff/mod.ts b/src/commands/roles/staff/mod.ts index d528b3d..44c32aa 100644 --- a/src/commands/roles/staff/mod.ts +++ b/src/commands/roles/staff/mod.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class ModCommand extends Command { +export class ModCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -153,5 +153,3 @@ class ModCommand extends Command { await message.react('✅'); } } - -export default ModCommand; diff --git a/src/commands/roles/staff/restrictedAccess.ts b/src/commands/roles/staff/restrictedAccess.ts index 282a15e..61de1e7 100644 --- a/src/commands/roles/staff/restrictedAccess.ts +++ b/src/commands/roles/staff/restrictedAccess.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class RestrictedAccessCommand extends Command { +export class RestrictedAccessCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -154,5 +154,3 @@ class RestrictedAccessCommand extends Command { await message.react('✅'); } } - -export default RestrictedAccessCommand; diff --git a/src/commands/roles/staff/stagehost.ts b/src/commands/roles/staff/stagehost.ts index 80c5828..aba98b1 100644 --- a/src/commands/roles/staff/stagehost.ts +++ b/src/commands/roles/staff/stagehost.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class StageHostCommand extends Command { +export class StageHostCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -154,5 +154,3 @@ class StageHostCommand extends Command { await message.react('✅'); } } - -export default StageHostCommand; diff --git a/src/commands/roles/staff/trialVerifier.ts b/src/commands/roles/staff/trialVerifier.ts index bb688bb..9a38a2c 100644 --- a/src/commands/roles/staff/trialVerifier.ts +++ b/src/commands/roles/staff/trialVerifier.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class TrialVerifierCommand extends Command { +export class TrialVerifierCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -153,5 +153,3 @@ class TrialVerifierCommand extends Command { await message.react('✅'); } } - -export default TrialVerifierCommand; diff --git a/src/commands/roles/staff/verifier.ts b/src/commands/roles/staff/verifier.ts index 45d83d7..da9dc58 100644 --- a/src/commands/roles/staff/verifier.ts +++ b/src/commands/roles/staff/verifier.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class VerifierCommand extends Command { +export class VerifierCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -161,5 +161,3 @@ class VerifierCommand extends Command { await message.react('✅'); } } - -export default VerifierCommand; diff --git a/src/commands/roles/trusted.ts b/src/commands/roles/trusted.ts index 8b4e2ba..ed1e347 100644 --- a/src/commands/roles/trusted.ts +++ b/src/commands/roles/trusted.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class TrustedCommand extends Command { +export class TrustedCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -160,5 +160,3 @@ class TrustedCommand extends Command { await message.react('✅'); } } - -export default TrustedCommand; diff --git a/src/commands/roles/vegan.ts b/src/commands/roles/vegan.ts index f6746d2..3d26932 100644 --- a/src/commands/roles/vegan.ts +++ b/src/commands/roles/vegan.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class VeganCommand extends Command { +export class VeganCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -203,5 +203,3 @@ class VeganCommand extends Command { .catch(() => {}); } } - -export default VeganCommand; diff --git a/src/commands/roles/vegcurious.ts b/src/commands/roles/vegcurious.ts index c09759b..cbef131 100644 --- a/src/commands/roles/vegcurious.ts +++ b/src/commands/roles/vegcurious.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; -class VegCuriousCommand extends Command { +export class VegCuriousCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -186,5 +186,3 @@ class VegCuriousCommand extends Command { + `which gives you access to ${dietSupport}`).catch(() => {}); } } - -export default VegCuriousCommand; diff --git a/src/commands/utils/apply.ts b/src/commands/utils/apply.ts index dc0f840..7dd5cd8 100644 --- a/src/commands/utils/apply.ts +++ b/src/commands/utils/apply.ts @@ -20,7 +20,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework'; import type { Message } from 'discord.js'; -class ApplyCommand extends Command { +export class ApplyCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -57,5 +57,3 @@ class ApplyCommand extends Command { await message.reply(this.message); } } - -export default ApplyCommand; diff --git a/src/commands/utils/count.ts b/src/commands/utils/count.ts index 14bb2f3..d0d0c5e 100644 --- a/src/commands/utils/count.ts +++ b/src/commands/utils/count.ts @@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework'; import type { Message } from 'discord.js'; import IDs from '#utils/ids'; -class RenameUserCommand extends Command { +export class RenameUserCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -106,5 +106,3 @@ class RenameUserCommand extends Command { await message.react('✅'); } } - -export default RenameUserCommand; diff --git a/src/commands/utils/ping.ts b/src/commands/utils/ping.ts index b6f3306..eb63624 100644 --- a/src/commands/utils/ping.ts +++ b/src/commands/utils/ping.ts @@ -20,7 +20,7 @@ import { isMessageInstance } from '@sapphire/discord.js-utilities'; import { Command } from '@sapphire/framework'; -class PingCommand extends Command { +export class PingCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, @@ -49,5 +49,3 @@ class PingCommand extends Command { return interaction.editReply('Failed to retrieve ping :('); } } - -export default PingCommand; diff --git a/src/interaction-handlers/welcome.ts b/src/interaction-handlers/welcome.ts index 9cbefeb..a5256fb 100644 --- a/src/interaction-handlers/welcome.ts +++ b/src/interaction-handlers/welcome.ts @@ -21,7 +21,7 @@ import { InteractionHandler, InteractionHandlerTypes, PieceContext } from '@sapp import type { ButtonInteraction, GuildMember, TextChannel } from 'discord.js'; import IDs from '#utils/ids'; -class WelcomeButtonHandler extends InteractionHandler { +export class WelcomeButtonHandler extends InteractionHandler { public constructor(ctx: PieceContext, options: InteractionHandler.Options) { super(ctx, { ...options, @@ -37,7 +37,8 @@ class WelcomeButtonHandler extends InteractionHandler { public async run(interaction: ButtonInteraction) { let { member } = interaction; - const general = this.container.client.channels.cache.get(IDs.channels.nonVegan.general) as TextChannel | undefined; + const general = this.container.client.channels.cache + .get(IDs.channels.nonVegan.general) as TextChannel | undefined; if (general === undefined) { return; } @@ -75,5 +76,3 @@ class WelcomeButtonHandler extends InteractionHandler { } } } - -export default WelcomeButtonHandler; diff --git a/src/listeners/ban.ts b/src/listeners/ban.ts index fb14cfa..1697ee8 100644 --- a/src/listeners/ban.ts +++ b/src/listeners/ban.ts @@ -21,7 +21,7 @@ import { Listener } from '@sapphire/framework'; import type { GuildMember } from 'discord.js'; import { checkActive, getReason } from '#utils/database/ban'; -class BanJoin extends Listener { +export class BanJoin extends Listener { public constructor(context: Listener.Context, options: Listener.Options) { super(context, { ...options, @@ -47,5 +47,3 @@ class BanJoin extends Listener { await user.ban({ reason }); } } - -export default BanJoin; diff --git a/src/listeners/commandDenied.ts b/src/listeners/commandDenied.ts index 9fe1317..c5ee69a 100644 --- a/src/listeners/commandDenied.ts +++ b/src/listeners/commandDenied.ts @@ -20,7 +20,7 @@ import type { UserError, MessageCommandDeniedPayload } from '@sapphire/framework'; import { Listener } from '@sapphire/framework'; -class OldCommandDeniedListener extends Listener { +export class OldCommandDeniedListener extends Listener { public constructor(context: Listener.Context, options: Listener.Options) { super(context, { ...options, @@ -33,5 +33,3 @@ class OldCommandDeniedListener extends Listener { return message.reply(error.message); } } - -export default OldCommandDeniedListener; diff --git a/src/listeners/deniedPermission.ts b/src/listeners/deniedPermission.ts index 93b4d68..62c6740 100644 --- a/src/listeners/deniedPermission.ts +++ b/src/listeners/deniedPermission.ts @@ -20,7 +20,7 @@ import type { UserError, ChatInputCommandDeniedPayload } from '@sapphire/framework'; import { Listener } from '@sapphire/framework'; -class CommandDeniedListener extends Listener { +export class CommandDeniedListener extends Listener { public constructor(context: Listener.Context, options: Listener.Options) { super(context, { ...options, @@ -32,5 +32,3 @@ class CommandDeniedListener extends Listener { return interaction.reply(error.message); } } - -export default CommandDeniedListener; diff --git a/src/listeners/ready.ts b/src/listeners/ready.ts index dc8415a..4befaf1 100644 --- a/src/listeners/ready.ts +++ b/src/listeners/ready.ts @@ -23,7 +23,7 @@ import { Listener } from '@sapphire/framework'; import type { Client } from 'discord.js'; -class ReadyListener extends Listener { +export class ReadyListener extends Listener { public constructor(context: Listener.Context, options: Listener.Options) { super(context, { ...options, @@ -37,5 +37,3 @@ class ReadyListener extends Listener { this.container.logger.info(`Successfully logged in as ${username} (${id})`); } } - -export default ReadyListener; diff --git a/src/listeners/verification/joinServer.ts b/src/listeners/verification/joinServer.ts index 4b9fe84..d9ae243 100644 --- a/src/listeners/verification/joinServer.ts +++ b/src/listeners/verification/joinServer.ts @@ -23,7 +23,7 @@ import type { GuildMember } from 'discord.js'; import IDs from '#utils/ids'; import { blockTime } from '#utils/database/verification'; -class VerificationReady extends Listener { +export class VerificationReady extends Listener { public constructor(context: Listener.Context, options: Listener.Options) { super(context, { ...options, @@ -48,5 +48,3 @@ class VerificationReady extends Listener { await user.roles.add(roles); } } - -export default VerificationReady; diff --git a/src/listeners/verification/joinVC.ts b/src/listeners/verification/joinVC.ts index 287e908..d075bba 100644 --- a/src/listeners/verification/joinVC.ts +++ b/src/listeners/verification/joinVC.ts @@ -45,7 +45,7 @@ import { userExists, addExistingUser } from '#utils/database/dbExistingUser'; import { rolesToString } from '#utils/formatter'; import IDs from '#utils/ids'; -class VerificationJoinVCListener extends Listener { +export class VerificationJoinVCListener extends Listener { public constructor(context: Listener.Context, options: Listener.Options) { super(context, { ...options, @@ -136,7 +136,8 @@ class VerificationJoinVCListener extends Listener { } // Check how many voice channels there are - const listVoiceChannels = category.children.cache.filter((c) => c.type === ChannelType.GuildVoice); + const listVoiceChannels = category.children.cache + .filter((c) => c.type === ChannelType.GuildVoice); // Create a text channel for verifiers only // Checks if there are more than 10 voice channels @@ -742,7 +743,8 @@ class VerificationJoinVCListener extends Listener { // Not vegan if (!roles.vegan) { - const general = this.container.client.channels.cache.get(IDs.channels.nonVegan.general) as TextChannel | undefined; + const general = this.container.client.channels.cache + .get(IDs.channels.nonVegan.general) as TextChannel | undefined; if (general === undefined) { return; } @@ -757,7 +759,8 @@ class VerificationJoinVCListener extends Listener { } // Vegan - const general = this.container.client.channels.cache.get(IDs.channels.vegan.general) as TextChannel | undefined; + const general = this.container.client.channels.cache + .get(IDs.channels.vegan.general) as TextChannel | undefined; if (general === undefined) { return; } @@ -766,7 +769,8 @@ class VerificationJoinVCListener extends Listener { // Activist role if (roles.activist) { - const activist = this.container.client.channels.cache.get(IDs.channels.activism.activism) as TextChannel | undefined; + const activist = this.container.client.channels.cache + .get(IDs.channels.activism.activism) as TextChannel | undefined; if (activist === undefined) { return; } @@ -808,5 +812,3 @@ class VerificationJoinVCListener extends Listener { } } } - -export default VerificationJoinVCListener; diff --git a/src/listeners/verification/leaveVC.ts b/src/listeners/verification/leaveVC.ts index 07e5a3c..f2bbd9d 100644 --- a/src/listeners/verification/leaveVC.ts +++ b/src/listeners/verification/leaveVC.ts @@ -28,7 +28,7 @@ import { fetchRoles } from '#utils/database/dbExistingUser'; import { fibonacci } from '#utils/mathsSeries'; import IDs from '#utils/ids'; -class VerificationLeaveVCListener extends Listener { +export class VerificationLeaveVCListener extends Listener { public constructor(context: Listener.Context, options: Listener.Options) { super(context, { ...options, @@ -101,7 +101,8 @@ class VerificationLeaveVCListener extends Listener { } // Check how many voice channels there are - const listVoiceChannels = category.children.cache.filter((c) => c.type === ChannelType.GuildVoice); + const listVoiceChannels = category.children.cache + .filter((c) => c.type === ChannelType.GuildVoice); // Check that it is not deleting the 'Verification' channel (in case bot crashes) if (channel.name !== 'Verification') { @@ -112,7 +113,8 @@ class VerificationLeaveVCListener extends Listener { // Delete text channel if (!verifier) { // Gets a list of all the text channels in the verification category - const listTextChannels = category.children.cache.filter((c) => c.type === ChannelType.GuildText); + const listTextChannels = category.children.cache + .filter((c) => c.type === ChannelType.GuildText); listTextChannels.forEach((c) => { const textChannel = c as TextChannel; // Checks if the channel topic has the user's snowflake @@ -193,5 +195,3 @@ class VerificationLeaveVCListener extends Listener { }); } } - -export default VerificationLeaveVCListener; diff --git a/src/listeners/verification/start.ts b/src/listeners/verification/start.ts index c05df0f..31c858c 100644 --- a/src/listeners/verification/start.ts +++ b/src/listeners/verification/start.ts @@ -27,7 +27,7 @@ import type { import { ChannelType, PermissionsBitField } from 'discord.js'; import IDs from '#utils/ids'; -class VerificationReady extends Listener { +export class VerificationReady extends Listener { public constructor(context: Listener.Context, options: Listener.Options) { super(context, { ...options, @@ -38,9 +38,11 @@ class VerificationReady extends Listener { public async run(client: Client) { // Get verification category - let category = client.channels.cache.get(IDs.categories.verification) as CategoryChannel | undefined; + let category = client.channels.cache + .get(IDs.categories.verification) as CategoryChannel | undefined; if (category === undefined) { - category = await client.channels.fetch(IDs.categories.verification) as CategoryChannel | undefined; + category = await client.channels + .fetch(IDs.categories.verification) as CategoryChannel | undefined; if (category === undefined) { console.error('verifyStart: Channel not found'); return; @@ -131,5 +133,3 @@ class VerificationReady extends Listener { } } } - -export default VerificationReady; diff --git a/src/listeners/verification/welcome.ts b/src/listeners/verification/welcome.ts index fca4d62..6f0e61a 100644 --- a/src/listeners/verification/welcome.ts +++ b/src/listeners/verification/welcome.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class VerificationReady extends Listener { +export class VerificationReady extends Listener { public constructor(context: Listener.Context, options: Listener.Options) { super(context, { ...options, @@ -78,5 +78,3 @@ class VerificationReady extends Listener { } } } - -export default VerificationReady; diff --git a/src/preconditions/CoordinatorOnly.ts b/src/preconditions/CoordinatorOnly.ts index 05e5a15..dff9bde 100644 --- a/src/preconditions/CoordinatorOnly.ts +++ b/src/preconditions/CoordinatorOnly.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class CoordinatorOnlyPrecondition extends AllFlowsPrecondition { +export class CoordinatorOnlyPrecondition extends AllFlowsPrecondition { public override async messageRun(message: Message) { // for message command return this.checkCoordinator(message.member!); @@ -54,5 +54,3 @@ declare module '@sapphire/framework' { CoordinatorOnly: never; } } - -export default CoordinatorOnlyPrecondition; diff --git a/src/preconditions/DevCoordinatorOnly.ts b/src/preconditions/DevCoordinatorOnly.ts index 7cc139e..25138b8 100644 --- a/src/preconditions/DevCoordinatorOnly.ts +++ b/src/preconditions/DevCoordinatorOnly.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class DevCoordinatorOnlyPrecondition extends AllFlowsPrecondition { +export class DevCoordinatorOnlyPrecondition extends AllFlowsPrecondition { public override async messageRun(message: Message) { // for message command return this.checkDevCoordinator(message.member!); @@ -54,5 +54,3 @@ declare module '@sapphire/framework' { DevCoordinatorOnly: never; } } - -export default DevCoordinatorOnlyPrecondition; diff --git a/src/preconditions/DiversityCoordinatorOnly.ts b/src/preconditions/DiversityCoordinatorOnly.ts index 0717d8c..5c319f4 100644 --- a/src/preconditions/DiversityCoordinatorOnly.ts +++ b/src/preconditions/DiversityCoordinatorOnly.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class DiversityCoordinatorOnlyPrecondition extends AllFlowsPrecondition { +export class DiversityCoordinatorOnlyPrecondition extends AllFlowsPrecondition { public override async messageRun(message: Message) { // for message command return this.checkDiversityCoordinator(message.member!); @@ -54,5 +54,3 @@ declare module '@sapphire/framework' { DiversityCoordinatorOnly: never; } } - -export default DiversityCoordinatorOnlyPrecondition; diff --git a/src/preconditions/EventCoordinatorOnly.ts b/src/preconditions/EventCoordinatorOnly.ts index e63f979..7e9914b 100644 --- a/src/preconditions/EventCoordinatorOnly.ts +++ b/src/preconditions/EventCoordinatorOnly.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class EventCoordinatorOnlyPrecondition extends AllFlowsPrecondition { +export class EventCoordinatorOnlyPrecondition extends AllFlowsPrecondition { public override async messageRun(message: Message) { // for message command return this.checkEventCoordinator(message.member!); @@ -54,5 +54,3 @@ declare module '@sapphire/framework' { EventCoordinatorOnly: never; } } - -export default EventCoordinatorOnlyPrecondition; diff --git a/src/preconditions/MentorCoordinatorOnly.ts b/src/preconditions/MentorCoordinatorOnly.ts index 9a14e5f..7e0eafd 100644 --- a/src/preconditions/MentorCoordinatorOnly.ts +++ b/src/preconditions/MentorCoordinatorOnly.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class MentorCoordinatorOnlyPrecondition extends AllFlowsPrecondition { +export class MentorCoordinatorOnlyPrecondition extends AllFlowsPrecondition { public override async messageRun(message: Message) { // for message command return this.checkMentorCoordinator(message.member!); @@ -54,5 +54,3 @@ declare module '@sapphire/framework' { MentorCoordinatorOnly: never; } } - -export default MentorCoordinatorOnlyPrecondition; diff --git a/src/preconditions/MentorOnly.ts b/src/preconditions/MentorOnly.ts index 25d9cca..a439f3e 100644 --- a/src/preconditions/MentorOnly.ts +++ b/src/preconditions/MentorOnly.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class MentorOnlyPrecondition extends AllFlowsPrecondition { +export class MentorOnlyPrecondition extends AllFlowsPrecondition { public override async messageRun(message: Message) { // for message command return this.checkMentor(message.member!); @@ -54,5 +54,3 @@ declare module '@sapphire/framework' { MentorOnly: never; } } - -export default MentorOnlyPrecondition; diff --git a/src/preconditions/ModCoordinatorOnly.ts b/src/preconditions/ModCoordinatorOnly.ts index 20fcd2a..f7ac4dd 100644 --- a/src/preconditions/ModCoordinatorOnly.ts +++ b/src/preconditions/ModCoordinatorOnly.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class ModCoordinatorOnlyPrecondition extends AllFlowsPrecondition { +export class ModCoordinatorOnlyPrecondition extends AllFlowsPrecondition { public override async messageRun(message: Message) { // for message command return this.checkModCoordinator(message.member!); @@ -54,5 +54,3 @@ declare module '@sapphire/framework' { ModCoordinatorOnly: never; } } - -export default ModCoordinatorOnlyPrecondition; diff --git a/src/preconditions/ModOnly.ts b/src/preconditions/ModOnly.ts index 2f35eae..4ed0e7a 100644 --- a/src/preconditions/ModOnly.ts +++ b/src/preconditions/ModOnly.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class ModOnlyPrecondition extends AllFlowsPrecondition { +export class ModOnlyPrecondition extends AllFlowsPrecondition { public override async messageRun(message: Message) { // for message command return this.checkMod(message.member!); @@ -55,5 +55,3 @@ declare module '@sapphire/framework' { ModOnly: never; } } - -export default ModOnlyPrecondition; diff --git a/src/preconditions/PatreonOnly.ts b/src/preconditions/PatreonOnly.ts index 673efd3..0e57a8d 100644 --- a/src/preconditions/PatreonOnly.ts +++ b/src/preconditions/PatreonOnly.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class PatreonOnlyPrecondition extends AllFlowsPrecondition { +export class PatreonOnlyPrecondition extends AllFlowsPrecondition { public override async messageRun(message: Message) { // for message command return this.checkPatreon(message.member!); @@ -54,5 +54,3 @@ declare module '@sapphire/framework' { PatreonOnly: never; } } - -export default PatreonOnlyPrecondition; diff --git a/src/preconditions/RestrictedAccessOnly.ts b/src/preconditions/RestrictedAccessOnly.ts index 61bcd9f..0fbfb32 100644 --- a/src/preconditions/RestrictedAccessOnly.ts +++ b/src/preconditions/RestrictedAccessOnly.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class RestrictedAccessOnlyPrecondition extends AllFlowsPrecondition { +export class RestrictedAccessOnlyPrecondition extends AllFlowsPrecondition { public override async messageRun(message: Message) { // for message command return this.checkRestrictedAccess(message.member!); @@ -54,5 +54,3 @@ declare module '@sapphire/framework' { RestrictedAccessOnly: never; } } - -export default RestrictedAccessOnlyPrecondition; diff --git a/src/preconditions/VerifierCoordinatorOnly.ts b/src/preconditions/VerifierCoordinatorOnly.ts index 15675cb..bf628bf 100644 --- a/src/preconditions/VerifierCoordinatorOnly.ts +++ b/src/preconditions/VerifierCoordinatorOnly.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class VerifierCoordinatorOnlyPrecondition extends AllFlowsPrecondition { +export class VerifierCoordinatorOnlyPrecondition extends AllFlowsPrecondition { public override async messageRun(message: Message) { // for message command return this.checkVerifierCoordinator(message.member!); @@ -54,5 +54,3 @@ declare module '@sapphire/framework' { VerifierCoordinatorOnly: never; } } - -export default VerifierCoordinatorOnlyPrecondition; diff --git a/src/preconditions/VerifierOnly.ts b/src/preconditions/VerifierOnly.ts index aefa724..b2fef0f 100644 --- a/src/preconditions/VerifierOnly.ts +++ b/src/preconditions/VerifierOnly.ts @@ -26,7 +26,7 @@ import type { } from 'discord.js'; import IDs from '#utils/ids'; -class VerifierOnlyPrecondition extends AllFlowsPrecondition { +export class VerifierOnlyPrecondition extends AllFlowsPrecondition { public override async messageRun(message: Message) { // for message command return this.checkVerifier(message.member!); @@ -54,5 +54,3 @@ declare module '@sapphire/framework' { VerifierOnly: never; } } - -export default VerifierOnlyPrecondition; diff --git a/src/scheduled-tasks/diversityMon.ts b/src/scheduled-tasks/diversityMon.ts index f5ab303..1755b65 100644 --- a/src/scheduled-tasks/diversityMon.ts +++ b/src/scheduled-tasks/diversityMon.ts @@ -22,7 +22,7 @@ import { container } from '@sapphire/framework'; import type { TextChannel } from 'discord.js'; import IDs from '#utils/ids'; -class DiversityMonMessageTask extends ScheduledTask { +export class DiversityMonMessageTask extends ScheduledTask { public constructor(context: ScheduledTask.Context, options: ScheduledTask.Options) { super(context, { ...options, @@ -56,5 +56,3 @@ declare module '@sapphire/plugin-scheduled-tasks' { cron: never; } } - -export default DiversityMonMessageTask; diff --git a/src/scheduled-tasks/diversityWed.ts b/src/scheduled-tasks/diversityWed.ts index 39b9541..9e5e597 100644 --- a/src/scheduled-tasks/diversityWed.ts +++ b/src/scheduled-tasks/diversityWed.ts @@ -22,7 +22,7 @@ import { container } from '@sapphire/framework'; import type { TextChannel } from 'discord.js'; import IDs from '#utils/ids'; -class DiversityWedMessageTask extends ScheduledTask { +export class DiversityWedMessageTask extends ScheduledTask { public constructor(context: ScheduledTask.Context, options: ScheduledTask.Options) { super(context, { ...options, @@ -44,7 +44,8 @@ class DiversityWedMessageTask extends ScheduledTask { + '🧡 Actively seek to include others, especially moderators, in heated discourse for the purpose of de-escalation.'; const women = client.channels.cache.get(IDs.channels.diversity.women) as TextChannel; - const disabilities = client.channels.cache.get(IDs.channels.diversity.disabilities) as TextChannel; + const disabilities = client.channels.cache + .get(IDs.channels.diversity.disabilities) as TextChannel; await women.send(message); await disabilities.send(message); @@ -56,5 +57,3 @@ declare module '@sapphire/plugin-scheduled-tasks' { cron: never; } } - -export default DiversityWedMessageTask; diff --git a/src/scheduled-tasks/restrictedMessage.ts b/src/scheduled-tasks/restrictedMessage.ts index 5e19ee1..2840f4c 100644 --- a/src/scheduled-tasks/restrictedMessage.ts +++ b/src/scheduled-tasks/restrictedMessage.ts @@ -22,7 +22,7 @@ import { container } from '@sapphire/framework'; import type { TextChannel } from 'discord.js'; import IDs from '#utils/ids'; -class RestrictedMessageTask extends ScheduledTask { +export class RestrictedMessageTask extends ScheduledTask { public constructor(context: ScheduledTask.Context, options: ScheduledTask.Options) { super(context, { ...options, @@ -52,5 +52,3 @@ declare module '@sapphire/plugin-scheduled-tasks' { cron: never; } } - -export default RestrictedMessageTask; diff --git a/src/scheduled-tasks/standup.ts b/src/scheduled-tasks/standup.ts index 92ef591..5f49584 100644 --- a/src/scheduled-tasks/standup.ts +++ b/src/scheduled-tasks/standup.ts @@ -22,7 +22,7 @@ import { container } from '@sapphire/framework'; import type { TextChannel } from 'discord.js'; import IDs from '#utils/ids'; -class StandupTask extends ScheduledTask { +export class StandupTask extends ScheduledTask { public constructor(context: ScheduledTask.Context, options: ScheduledTask.Options) { super(context, { ...options, @@ -45,5 +45,3 @@ declare module '@sapphire/plugin-scheduled-tasks' { cron: never; } } - -export default StandupTask; diff --git a/src/scheduled-tasks/verifyReminder.ts b/src/scheduled-tasks/verifyReminder.ts index a4f2afd..5fc6228 100644 --- a/src/scheduled-tasks/verifyReminder.ts +++ b/src/scheduled-tasks/verifyReminder.ts @@ -22,7 +22,7 @@ import { container } from '@sapphire/framework'; import type { TextChannel } from 'discord.js'; import IDs from '#utils/ids'; -class VerifyReminder extends ScheduledTask { +export class VerifyReminder extends ScheduledTask { public constructor(context: ScheduledTask.Context, options: ScheduledTask.Options) { super(context, { ...options, @@ -46,5 +46,3 @@ declare module '@sapphire/plugin-scheduled-tasks' { cron: never; } } - -export default VerifyReminder; diff --git a/src/scheduled-tasks/verifyTimeout.ts b/src/scheduled-tasks/verifyTimeout.ts index 47a0a9d..1577583 100644 --- a/src/scheduled-tasks/verifyTimeout.ts +++ b/src/scheduled-tasks/verifyTimeout.ts @@ -27,9 +27,11 @@ export class VerifyTimeout extends ScheduledTask { public async run(payload: { channelId: string, userId: string }) { // Get the guild where the user is in - let channel = this.container.client.channels.cache.get(payload.channelId) as VoiceChannel | undefined; + let channel = this.container.client.channels.cache + .get(payload.channelId) as VoiceChannel | undefined; if (channel === undefined) { - channel = await this.container.client.channels.fetch(payload.channelId) as VoiceChannel | undefined; + channel = await this.container.client.channels + .fetch(payload.channelId) as VoiceChannel | undefined; if (channel === undefined) { console.error('verifyTimeout: Channel not found!'); return; @@ -52,5 +54,3 @@ declare module '@sapphire/plugin-scheduled-tasks' { verifyUnblock: never; } } - -export default VerifyTimeout; diff --git a/src/scheduled-tasks/verifyUnblock.ts b/src/scheduled-tasks/verifyUnblock.ts index 47962a4..07edf05 100644 --- a/src/scheduled-tasks/verifyUnblock.ts +++ b/src/scheduled-tasks/verifyUnblock.ts @@ -56,5 +56,3 @@ declare module '@sapphire/plugin-scheduled-tasks' { verifyUnblock: never; } } - -export default VerifyUnblock;