diff --git a/src/commands/coordinators/access.ts b/src/commands/coordinators/access.ts index 6855dcd..b9b2528 100644 --- a/src/commands/coordinators/access.ts +++ b/src/commands/coordinators/access.ts @@ -22,7 +22,7 @@ import { ChannelType } from 'discord.js'; import IDs from '#utils/ids'; export class AccessCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'access', diff --git a/src/commands/coordinators/anonymous.ts b/src/commands/coordinators/anonymous.ts index 6a4e0b8..33a2fe4 100644 --- a/src/commands/coordinators/anonymous.ts +++ b/src/commands/coordinators/anonymous.ts @@ -22,7 +22,7 @@ import type { Message } from 'discord.js'; import { ChannelType, TextChannel } from 'discord.js'; export class AnonymousCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'anonymous', diff --git a/src/commands/coordinators/clear.ts b/src/commands/coordinators/clear.ts index d0a67f7..12f009d 100644 --- a/src/commands/coordinators/clear.ts +++ b/src/commands/coordinators/clear.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { Message } from 'discord.js'; export class ClearCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'clear', diff --git a/src/commands/coordinators/private.ts b/src/commands/coordinators/private.ts index 8b5cda1..5f216e5 100644 --- a/src/commands/coordinators/private.ts +++ b/src/commands/coordinators/private.ts @@ -31,7 +31,7 @@ import { import IDs from '#utils/ids'; export class PrivateCommand extends Subcommand { - public constructor(context: Subcommand.Context, options: Subcommand.Options) { + public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) { super(context, { ...options, name: 'private', diff --git a/src/commands/economy/balance.ts b/src/commands/economy/balance.ts index 8d7d98e..f4c581e 100644 --- a/src/commands/economy/balance.ts +++ b/src/commands/economy/balance.ts @@ -24,7 +24,7 @@ import { getBalance } from '#utils/database/economy'; import { EmbedBuilder } from 'discord.js'; export class BalanceCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'balance', diff --git a/src/commands/economy/daily.ts b/src/commands/economy/daily.ts index 4efdfc7..a99e2e3 100644 --- a/src/commands/economy/daily.ts +++ b/src/commands/economy/daily.ts @@ -26,7 +26,7 @@ import { EmbedBuilder } from 'discord.js'; import IDs from '#utils/ids'; export class DailyCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'daily', diff --git a/src/commands/economy/pay.ts b/src/commands/economy/pay.ts index ae4850d..3eac7fb 100644 --- a/src/commands/economy/pay.ts +++ b/src/commands/economy/pay.ts @@ -25,7 +25,7 @@ import { EmbedBuilder, TextChannel } from 'discord.js'; import IDs from '#utils/ids'; export class BalanceCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'pay', diff --git a/src/commands/fun/1984.ts b/src/commands/fun/1984.ts index 5818895..9430ee4 100644 --- a/src/commands/fun/1984.ts +++ b/src/commands/fun/1984.ts @@ -23,7 +23,7 @@ import { N1984 } from '#utils/gifs'; import { addFunLog, countTotal } from '#utils/database/fun'; export class N1984Command extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: '1984', diff --git a/src/commands/fun/cringe.ts b/src/commands/fun/cringe.ts index 0709191..de9b651 100644 --- a/src/commands/fun/cringe.ts +++ b/src/commands/fun/cringe.ts @@ -23,7 +23,7 @@ import { Cringe } from '#utils/gifs'; import { addFunLog, countTotal } from '#utils/database/fun'; export class CringeCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'cringe', diff --git a/src/commands/fun/happy.ts b/src/commands/fun/happy.ts index c608962..49a5434 100644 --- a/src/commands/fun/happy.ts +++ b/src/commands/fun/happy.ts @@ -22,7 +22,7 @@ import { EmbedBuilder } from 'discord.js'; import { Happy } from '#utils/gifs'; export class HappyCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'happy', diff --git a/src/commands/fun/hug.ts b/src/commands/fun/hug.ts index ff74e0f..ec2e9c5 100644 --- a/src/commands/fun/hug.ts +++ b/src/commands/fun/hug.ts @@ -23,7 +23,7 @@ import { Hugs } from '#utils/gifs'; import { addFunLog, countTotal } from '#utils/database/fun'; export class HugCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'hug', diff --git a/src/commands/fun/kill.ts b/src/commands/fun/kill.ts index ffa536f..3b3218a 100644 --- a/src/commands/fun/kill.ts +++ b/src/commands/fun/kill.ts @@ -23,7 +23,7 @@ import { Kill } from '#utils/gifs'; import { addFunLog, countTotal } from '#utils/database/fun'; export class KillCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'kill', diff --git a/src/commands/fun/poke.ts b/src/commands/fun/poke.ts index 8974836..0696add 100644 --- a/src/commands/fun/poke.ts +++ b/src/commands/fun/poke.ts @@ -23,7 +23,7 @@ import { Poke } from '#utils/gifs'; import { addFunLog, countTotal } from '#utils/database/fun'; export class PokeCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'poke', diff --git a/src/commands/fun/sad.ts b/src/commands/fun/sad.ts index 44b48ae..e451b13 100644 --- a/src/commands/fun/sad.ts +++ b/src/commands/fun/sad.ts @@ -22,7 +22,7 @@ import { EmbedBuilder } from 'discord.js'; import { Sad } from '#utils/gifs'; export class SadCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'sad', diff --git a/src/commands/fun/shrug.ts b/src/commands/fun/shrug.ts index abae7a3..54b7c20 100644 --- a/src/commands/fun/shrug.ts +++ b/src/commands/fun/shrug.ts @@ -22,7 +22,7 @@ import { EmbedBuilder } from 'discord.js'; import { Shrug } from '#utils/gifs'; export class ShrugCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'shrug', diff --git a/src/commands/mod/ban/ban.ts b/src/commands/mod/ban/ban.ts index 9979f17..dd46388 100644 --- a/src/commands/mod/ban/ban.ts +++ b/src/commands/mod/ban/ban.ts @@ -26,7 +26,7 @@ import { addEmptyUser, updateUser } from '#utils/database/dbExistingUser'; import { checkTempBan, removeTempBan } from '#utils/database/tempBan'; export class BanCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'ban', diff --git a/src/commands/mod/ban/tempBan.ts b/src/commands/mod/ban/tempBan.ts index fb7aec0..90ec229 100644 --- a/src/commands/mod/ban/tempBan.ts +++ b/src/commands/mod/ban/tempBan.ts @@ -26,7 +26,7 @@ import { addTempBan, checkTempBan } from '#utils/database/tempBan'; import { addEmptyUser, updateUser } from '#utils/database/dbExistingUser'; export class TempBanCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'tempban', @@ -258,14 +258,14 @@ export class TempBanCommand extends Command { await addTempBan(userId, modId, time.fromNow, reason); // Create scheduled task to unban - this.container.tasks.create( - 'tempBan', - { + this.container.tasks.create({ + name: 'tempBan', + payload: { userId: user.id, guildId: guild.id, }, - time.offset, - ); + delay: time.offset, + }); info.message = `${user} has been temporarily banned for ${banLength}.`; info.success = true; diff --git a/src/commands/mod/ban/unban.ts b/src/commands/mod/ban/unban.ts index 60b76ef..9448115 100644 --- a/src/commands/mod/ban/unban.ts +++ b/src/commands/mod/ban/unban.ts @@ -33,7 +33,7 @@ import { checkTempBan, removeTempBan } from '#utils/database/tempBan'; import { addEmptyUser, addExistingUser } from '#utils/database/dbExistingUser'; export class UnbanCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'unban', diff --git a/src/commands/mod/diversity.ts b/src/commands/mod/diversity.ts index 293eb9d..1d5ad90 100644 --- a/src/commands/mod/diversity.ts +++ b/src/commands/mod/diversity.ts @@ -31,7 +31,7 @@ import type { TextChannel, Snowflake } from 'discord.js'; import IDs from '#utils/ids'; export class DiversityCommand extends Subcommand { - public constructor(context: Subcommand.Context, options: Subcommand.Options) { + public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) { super(context, { ...options, name: 'diversity', diff --git a/src/commands/mod/moveall.ts b/src/commands/mod/moveall.ts index 000a66f..1ca52ec 100644 --- a/src/commands/mod/moveall.ts +++ b/src/commands/mod/moveall.ts @@ -25,7 +25,7 @@ import type { Message } from 'discord.js'; import { ChannelType } from 'discord.js'; export class MoveAllCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'moveall', diff --git a/src/commands/mod/rename.ts b/src/commands/mod/rename.ts index 8b72b9a..ae32091 100644 --- a/src/commands/mod/rename.ts +++ b/src/commands/mod/rename.ts @@ -21,7 +21,7 @@ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; import type { GuildMember, Message } from 'discord.js'; export class RenameUserCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'rename', diff --git a/src/commands/mod/restriction/restrict.ts b/src/commands/mod/restriction/restrict.ts index 96fa351..5aff7f2 100644 --- a/src/commands/mod/restriction/restrict.ts +++ b/src/commands/mod/restriction/restrict.ts @@ -277,7 +277,7 @@ export async function restrictRun( } export class RestrictCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'restrict', diff --git a/src/commands/mod/restriction/restrictLogs.ts b/src/commands/mod/restriction/restrictLogs.ts index 4502614..fa7757e 100644 --- a/src/commands/mod/restriction/restrictLogs.ts +++ b/src/commands/mod/restriction/restrictLogs.ts @@ -25,7 +25,7 @@ import { getRestrictions } from '#utils/database/restriction'; import { checkStaff } from '#utils/checker'; export class RestrictLogsCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'restrictlogs', diff --git a/src/commands/mod/restriction/restrictTolerance.ts b/src/commands/mod/restriction/restrictTolerance.ts index 9988e1a..d36806a 100644 --- a/src/commands/mod/restriction/restrictTolerance.ts +++ b/src/commands/mod/restriction/restrictTolerance.ts @@ -22,7 +22,7 @@ import type { User, Message } from 'discord.js'; import { restrictRun } from './restrict'; export class RestrictToleranceCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'restricttolerance', diff --git a/src/commands/mod/restriction/restrictTools.ts b/src/commands/mod/restriction/restrictTools.ts index 29c2888..8991910 100644 --- a/src/commands/mod/restriction/restrictTools.ts +++ b/src/commands/mod/restriction/restrictTools.ts @@ -24,7 +24,7 @@ import { CategoryChannel, ChannelType } from 'discord.js'; import IDs from '#utils/ids'; export class RestrictToolsCommand extends Subcommand { - public constructor(context: Subcommand.Context, options: Subcommand.Options) { + public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) { super(context, { ...options, name: 'restricttools', diff --git a/src/commands/mod/restriction/unrestrict.ts b/src/commands/mod/restriction/unrestrict.ts index 9ee28cc..b9d39bf 100644 --- a/src/commands/mod/restriction/unrestrict.ts +++ b/src/commands/mod/restriction/unrestrict.ts @@ -29,7 +29,7 @@ import { } from '#utils/database/restriction'; export class UnRestrictCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'unrestrict', diff --git a/src/commands/mod/slowmode.ts b/src/commands/mod/slowmode.ts index 7f14ea0..a80315e 100644 --- a/src/commands/mod/slowmode.ts +++ b/src/commands/mod/slowmode.ts @@ -24,7 +24,7 @@ import { Duration, DurationFormatter } from '@sapphire/time-utilities'; import { isNumber } from '#utils/maths'; export class SlowmodeCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'slowmode', diff --git a/src/commands/mod/softMute.ts b/src/commands/mod/softMute.ts index 3bf18a4..5d8e4d4 100644 --- a/src/commands/mod/softMute.ts +++ b/src/commands/mod/softMute.ts @@ -22,7 +22,7 @@ import type { GuildMember, Message } from 'discord.js'; import IDs from '#utils/ids'; export class SoftMuteCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'softmute', diff --git a/src/commands/mod/sus.ts b/src/commands/mod/sus.ts index 6d2f061..0968c05 100644 --- a/src/commands/mod/sus.ts +++ b/src/commands/mod/sus.ts @@ -43,7 +43,7 @@ import IDs from '#utils/ids'; // TODO add a check when they join the server to give the user the sus role again export class SusCommand extends Subcommand { - public constructor(context: Subcommand.Context, options: Subcommand.Options) { + public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) { super(context, { ...options, name: 'sus', diff --git a/src/commands/mod/vcMute.ts b/src/commands/mod/vcMute.ts index 8a0316e..339a995 100644 --- a/src/commands/mod/vcMute.ts +++ b/src/commands/mod/vcMute.ts @@ -23,7 +23,7 @@ import { addMute, removeMute, checkActive } from '#utils/database/vcMute'; import { addExistingUser } from '#utils/database/dbExistingUser'; export class VCMuteCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'vcmute', diff --git a/src/commands/mod/warn.ts b/src/commands/mod/warn.ts index 16dd630..7610a51 100644 --- a/src/commands/mod/warn.ts +++ b/src/commands/mod/warn.ts @@ -28,7 +28,7 @@ import { addWarn } from '#utils/database/warnings'; mean we would have a lot of the warns already in the database. */ export class WarnCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'warn', diff --git a/src/commands/outreach/outreach.ts b/src/commands/outreach/outreach.ts index e2af50a..83decc5 100644 --- a/src/commands/outreach/outreach.ts +++ b/src/commands/outreach/outreach.ts @@ -38,7 +38,7 @@ import IDs from '#utils/ids'; import { EmbedBuilder } from 'discord.js'; export class OutreachCommand extends Subcommand { - public constructor(context: Subcommand.Context, options: Subcommand.Options) { + public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) { super(context, { ...options, name: 'outreach', diff --git a/src/commands/roles/bookClub.ts b/src/commands/roles/bookClub.ts index b46d4e2..ba5ae83 100644 --- a/src/commands/roles/bookClub.ts +++ b/src/commands/roles/bookClub.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class BookClubCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'bookclub', diff --git a/src/commands/roles/debateHost.ts b/src/commands/roles/debateHost.ts index a42e138..aba29a5 100644 --- a/src/commands/roles/debateHost.ts +++ b/src/commands/roles/debateHost.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class DebateHostCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'debatehost', diff --git a/src/commands/roles/gameNightHost.ts b/src/commands/roles/gameNightHost.ts index a06c6c9..96f6b89 100644 --- a/src/commands/roles/gameNightHost.ts +++ b/src/commands/roles/gameNightHost.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class GameNightHostCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'gamenight', diff --git a/src/commands/roles/guest.ts b/src/commands/roles/guest.ts index 8941c2b..112c2be 100644 --- a/src/commands/roles/guest.ts +++ b/src/commands/roles/guest.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class GuestCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'guest', diff --git a/src/commands/roles/staff/mentor.ts b/src/commands/roles/staff/mentor.ts index 294abea..84a81e9 100644 --- a/src/commands/roles/staff/mentor.ts +++ b/src/commands/roles/staff/mentor.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class MentorCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'mentor', diff --git a/src/commands/roles/staff/mod.ts b/src/commands/roles/staff/mod.ts index 950bce2..132ea8e 100644 --- a/src/commands/roles/staff/mod.ts +++ b/src/commands/roles/staff/mod.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class ModCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'mod', diff --git a/src/commands/roles/staff/restrictedAccess.ts b/src/commands/roles/staff/restrictedAccess.ts index aa5dee9..d7eef8a 100644 --- a/src/commands/roles/staff/restrictedAccess.ts +++ b/src/commands/roles/staff/restrictedAccess.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class RestrictedAccessCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'restrictedaccess', diff --git a/src/commands/roles/staff/stagehost.ts b/src/commands/roles/staff/stagehost.ts index b1d486e..565eba4 100644 --- a/src/commands/roles/staff/stagehost.ts +++ b/src/commands/roles/staff/stagehost.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class StageHostCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'stagehost', diff --git a/src/commands/roles/staff/trialMod.ts b/src/commands/roles/staff/trialMod.ts index f152c39..d17855f 100644 --- a/src/commands/roles/staff/trialMod.ts +++ b/src/commands/roles/staff/trialMod.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class TrialModCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'trialmod', diff --git a/src/commands/roles/staff/trialVerifier.ts b/src/commands/roles/staff/trialVerifier.ts index 42ab6db..8965ce9 100644 --- a/src/commands/roles/staff/trialVerifier.ts +++ b/src/commands/roles/staff/trialVerifier.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class TrialVerifierCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'trialverifier', diff --git a/src/commands/roles/staff/verifier.ts b/src/commands/roles/staff/verifier.ts index c5c1b01..b3e87c9 100644 --- a/src/commands/roles/staff/verifier.ts +++ b/src/commands/roles/staff/verifier.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class VerifierCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'verifier', diff --git a/src/commands/roles/verification/activist.ts b/src/commands/roles/verification/activist.ts index 9db156d..09264df 100644 --- a/src/commands/roles/verification/activist.ts +++ b/src/commands/roles/verification/activist.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class ActivistCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'activist', diff --git a/src/commands/roles/verification/aravegan.ts b/src/commands/roles/verification/aravegan.ts index 480e485..78c17d3 100644 --- a/src/commands/roles/verification/aravegan.ts +++ b/src/commands/roles/verification/aravegan.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class ARAVeganCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'aravegan', diff --git a/src/commands/roles/verification/convinced.ts b/src/commands/roles/verification/convinced.ts index 602f428..dc1acd0 100644 --- a/src/commands/roles/verification/convinced.ts +++ b/src/commands/roles/verification/convinced.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class ConvincedCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'convinced', diff --git a/src/commands/roles/verification/plus.ts b/src/commands/roles/verification/plus.ts index 3568ce8..168d471 100644 --- a/src/commands/roles/verification/plus.ts +++ b/src/commands/roles/verification/plus.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class PlusCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'plus', diff --git a/src/commands/roles/verification/trusted.ts b/src/commands/roles/verification/trusted.ts index 2caa994..4647a04 100644 --- a/src/commands/roles/verification/trusted.ts +++ b/src/commands/roles/verification/trusted.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class TrustedCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'trusted', diff --git a/src/commands/roles/verification/vegan.ts b/src/commands/roles/verification/vegan.ts index b665aaa..edaa0e4 100644 --- a/src/commands/roles/verification/vegan.ts +++ b/src/commands/roles/verification/vegan.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class VeganCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'vegan', diff --git a/src/commands/roles/verification/vegcurious.ts b/src/commands/roles/verification/vegcurious.ts index 3bf8cf1..0cf6d28 100644 --- a/src/commands/roles/verification/vegcurious.ts +++ b/src/commands/roles/verification/vegcurious.ts @@ -23,7 +23,7 @@ import IDs from '#utils/ids'; import { roleAddLog, roleRemoveLog } from '#utils/logging/role'; export class VegCuriousCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'vegcurious', diff --git a/src/commands/utils/apply.ts b/src/commands/utils/apply.ts index 8d3d41e..072690e 100644 --- a/src/commands/utils/apply.ts +++ b/src/commands/utils/apply.ts @@ -21,7 +21,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework'; import type { Message } from 'discord.js'; export class ApplyCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'apply', diff --git a/src/commands/utils/count.ts b/src/commands/utils/count.ts index 025fb14..427fa1f 100644 --- a/src/commands/utils/count.ts +++ b/src/commands/utils/count.ts @@ -22,7 +22,7 @@ import type { Message } from 'discord.js'; import IDs from '#utils/ids'; export class RenameUserCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'count', diff --git a/src/commands/utils/help.ts b/src/commands/utils/help.ts index 9e6c2e8..baa3727 100644 --- a/src/commands/utils/help.ts +++ b/src/commands/utils/help.ts @@ -19,7 +19,7 @@ import { EmbedBuilder } from 'discord.js'; import type { Message } from 'discord.js'; export class HelpCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'help', diff --git a/src/commands/utils/info.ts b/src/commands/utils/info.ts index 6a9e619..1425925 100644 --- a/src/commands/utils/info.ts +++ b/src/commands/utils/info.ts @@ -20,7 +20,7 @@ import { Command, RegisterBehavior } from '@sapphire/framework'; export class InfoCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'info', diff --git a/src/commands/utils/ping.ts b/src/commands/utils/ping.ts index eedb476..915e907 100644 --- a/src/commands/utils/ping.ts +++ b/src/commands/utils/ping.ts @@ -22,7 +22,7 @@ import { Command } from '@sapphire/framework'; import type { Message } from 'discord.js'; export class PingCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'ping', diff --git a/src/commands/verification/verify.ts b/src/commands/verification/verify.ts index 86c546f..efd3b6d 100644 --- a/src/commands/verification/verify.ts +++ b/src/commands/verification/verify.ts @@ -27,7 +27,7 @@ import { import { manualVerification } from '#utils/database/verification'; export class VerifyCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'verify', diff --git a/src/commands/verification/verifyTimeoutRemove.ts b/src/commands/verification/verifyTimeoutRemove.ts index 038d06c..c0e9df7 100644 --- a/src/commands/verification/verifyTimeoutRemove.ts +++ b/src/commands/verification/verifyTimeoutRemove.ts @@ -22,7 +22,7 @@ import IDs from '#utils/ids'; import { checkVerificationFinish } from '#utils/database/verification'; export class VerifyTimeoutRemoveCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'verifytimeoutremove', diff --git a/src/commands/xp/rank.ts b/src/commands/xp/rank.ts index 5d9a224..46a450c 100644 --- a/src/commands/xp/rank.ts +++ b/src/commands/xp/rank.ts @@ -23,7 +23,7 @@ import { EmbedBuilder } from 'discord.js'; import { getRank, xpToNextLevel } from '#utils/database/xp'; export class RankCommand extends Command { - public constructor(context: Command.Context, options: Command.Options) { + public constructor(context: Command.LoaderContext, options: Command.Options) { super(context, { ...options, name: 'rank', diff --git a/src/listeners/ban/ban.ts b/src/listeners/ban/ban.ts index 7b8de0d..f12008b 100644 --- a/src/listeners/ban/ban.ts +++ b/src/listeners/ban/ban.ts @@ -25,7 +25,7 @@ import IDs from '#utils/ids'; import { addEmptyUser, addExistingUser } from '#utils/database/dbExistingUser'; export class BanListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'guildBanAdd', diff --git a/src/listeners/ban/banJoin.ts b/src/listeners/ban/banJoin.ts index 50ce9d3..9d155e3 100644 --- a/src/listeners/ban/banJoin.ts +++ b/src/listeners/ban/banJoin.ts @@ -23,7 +23,7 @@ import { checkBan, getBanReason } from '#utils/database/ban'; import { checkTempBan } from '#utils/database/tempBan'; export class BanJoinListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'guildMemberAdd', diff --git a/src/listeners/ban/unban.ts b/src/listeners/ban/unban.ts index 1a31526..787e32d 100644 --- a/src/listeners/ban/unban.ts +++ b/src/listeners/ban/unban.ts @@ -25,7 +25,7 @@ import IDs from '#utils/ids'; import { addEmptyUser, addExistingUser } from '#utils/database/dbExistingUser'; export class UnbanListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'guildBanRemove', diff --git a/src/listeners/botAppreciation.ts b/src/listeners/botAppreciation.ts index 4f1e7e2..021e3e3 100644 --- a/src/listeners/botAppreciation.ts +++ b/src/listeners/botAppreciation.ts @@ -21,7 +21,7 @@ import { Listener } from '@sapphire/framework'; import type { Message } from 'discord.js'; export class BotAppreciationListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'messageCreate', diff --git a/src/listeners/commandDenied.ts b/src/listeners/commandDenied.ts index 6d88afc..ee2b8d5 100644 --- a/src/listeners/commandDenied.ts +++ b/src/listeners/commandDenied.ts @@ -24,7 +24,7 @@ import type { import { Listener } from '@sapphire/framework'; export class OldCommandDeniedListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'messageCommandDenied', diff --git a/src/listeners/counting.ts b/src/listeners/counting.ts index 2b4a386..b692d66 100644 --- a/src/listeners/counting.ts +++ b/src/listeners/counting.ts @@ -25,7 +25,7 @@ import { getLastCount, addCount } from '#utils/database/counting'; import IDs from '#utils/ids'; export class XpListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'messageCreate', diff --git a/src/listeners/dbLeaveServer.ts b/src/listeners/dbLeaveServer.ts index 5a77ece..0c20b59 100644 --- a/src/listeners/dbLeaveServer.ts +++ b/src/listeners/dbLeaveServer.ts @@ -27,7 +27,7 @@ import { } from '#utils/database/dbExistingUser'; export class DbLeaveServerListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'guildMemberRemove', diff --git a/src/listeners/deniedPermission.ts b/src/listeners/deniedPermission.ts index fba3467..b002cac 100644 --- a/src/listeners/deniedPermission.ts +++ b/src/listeners/deniedPermission.ts @@ -24,7 +24,7 @@ import type { import { Listener } from '@sapphire/framework'; export class CommandDeniedListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'chatInputCommandDenied', diff --git a/src/listeners/eventTypes.ts b/src/listeners/eventTypes.ts index 3f84eab..a1b1ea5 100644 --- a/src/listeners/eventTypes.ts +++ b/src/listeners/eventTypes.ts @@ -24,7 +24,7 @@ import { Listener } from '@sapphire/framework'; import { setupTypes } from '#utils/database/outreach'; export class EventTypesReadyListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, once: true, diff --git a/src/listeners/modMail.ts b/src/listeners/modMail.ts index 136399c..8e909fe 100644 --- a/src/listeners/modMail.ts +++ b/src/listeners/modMail.ts @@ -26,7 +26,7 @@ import { checkActive, getRestrictions } from '#utils/database/restriction'; import { findNotes } from '#utils/database/sus'; export class ModMailCreateListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'channelCreate', diff --git a/src/listeners/nonVeganAccess.ts b/src/listeners/nonVeganAccess.ts index 989ea17..5198f6e 100644 --- a/src/listeners/nonVeganAccess.ts +++ b/src/listeners/nonVeganAccess.ts @@ -24,7 +24,7 @@ import type { Client, TextChannel } from 'discord.js'; import IDs from '#utils/ids'; export class NonVeganAccessReady extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, once: true, diff --git a/src/listeners/ready.ts b/src/listeners/ready.ts index 4befaf1..d07e993 100644 --- a/src/listeners/ready.ts +++ b/src/listeners/ready.ts @@ -24,7 +24,7 @@ import { Listener } from '@sapphire/framework'; import type { Client } from 'discord.js'; export class ReadyListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, once: true, diff --git a/src/listeners/rolesJoinServer.ts b/src/listeners/rolesJoinServer.ts index 481c559..5ce3aba 100644 --- a/src/listeners/rolesJoinServer.ts +++ b/src/listeners/rolesJoinServer.ts @@ -33,7 +33,7 @@ import { blockedRoles, blockedRolesAfterRestricted } from '#utils/blockedRoles'; import IDs from '#utils/ids'; export class RolesJoinServerListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'guildMemberAdd', diff --git a/src/listeners/suggestions.ts b/src/listeners/suggestions.ts index eda1491..b101bed 100644 --- a/src/listeners/suggestions.ts +++ b/src/listeners/suggestions.ts @@ -23,7 +23,7 @@ import type { Message } from 'discord.js'; import IDs from '#utils/ids'; export class Suggestions extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'messageCreate', diff --git a/src/listeners/vcMute.ts b/src/listeners/vcMute.ts index a1e75d3..3c5d553 100644 --- a/src/listeners/vcMute.ts +++ b/src/listeners/vcMute.ts @@ -22,7 +22,7 @@ import type { VoiceState } from 'discord.js'; import { checkActive, removeMute } from '#utils/database/vcMute'; export class VCMuteListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'voiceStateUpdate', diff --git a/src/listeners/verification/joinVC.ts b/src/listeners/verification/joinVC.ts index 9c5fd9d..8c3a620 100644 --- a/src/listeners/verification/joinVC.ts +++ b/src/listeners/verification/joinVC.ts @@ -56,7 +56,7 @@ import { rolesToString } from '#utils/formatter'; import IDs from '#utils/ids'; export class VerificationJoinVCListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'voiceStateUpdate', @@ -151,14 +151,15 @@ export class VerificationJoinVCListener extends Listener { ]); // Start 15-minute timer if verifier does not join - this.container.tasks.create( - 'verifyTimeout', - { + this.container.tasks.create({ + name: 'verifyTimeout', + payload: { channelId: channel.id, userId: member.id, }, - 900_000, - ); // 15 minutes + }, + 900_000 // 15 minutes + ); } // Check how many voice channels there are @@ -506,12 +507,13 @@ export class VerificationJoinVCListener extends Listener { await giveVerificationRoles(user, info.roles); // Add timeout if they do not have activist role if (!info.roles.activist) { - this.container.tasks.create( - 'verifyUnblock', - { + this.container.tasks.create({ + name: 'verifyUnblock', + payload: { userId: user.id, guildId: guild.id, }, + }, info.roles.vegan || info.roles.convinced ? 604800000 : 1814400000, ); } diff --git a/src/listeners/verification/leaveVC.ts b/src/listeners/verification/leaveVC.ts index b37c43e..0537b32 100644 --- a/src/listeners/verification/leaveVC.ts +++ b/src/listeners/verification/leaveVC.ts @@ -37,7 +37,7 @@ import { fibonacci } from '#utils/maths'; import IDs from '#utils/ids'; export class VerificationLeaveVCListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'voiceStateUpdate', @@ -103,13 +103,14 @@ export class VerificationLeaveVCListener extends Listener { // Creates the length of the time for the ban const banLength = fibonacci(incompleteCount) * 3600_000; - this.container.tasks.create( - 'verifyUnblock', - { + this.container.tasks.create({ + name: 'verifyUnblock', + payload: { userId: user.id, guildId: guild.id, }, - banLength, + }, + banLength, ); await user.user diff --git a/src/listeners/verification/messageCounter.ts b/src/listeners/verification/messageCounter.ts index 97bf3f6..aa60116 100644 --- a/src/listeners/verification/messageCounter.ts +++ b/src/listeners/verification/messageCounter.ts @@ -22,7 +22,7 @@ import type { Message } from 'discord.js'; import IDs from '#utils/ids'; export class VerificationMessageCounter extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'messageCreate', diff --git a/src/listeners/verification/start.ts b/src/listeners/verification/start.ts index 9549c6b..10c5afc 100644 --- a/src/listeners/verification/start.ts +++ b/src/listeners/verification/start.ts @@ -29,7 +29,7 @@ import { createVerificationVoice } from '#utils/verification'; import IDs from '#utils/ids'; export class VerificationReady extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, once: true, diff --git a/src/listeners/verification/welcome.ts b/src/listeners/verification/welcome.ts index 709c8c8..e8f759b 100644 --- a/src/listeners/verification/welcome.ts +++ b/src/listeners/verification/welcome.ts @@ -24,7 +24,7 @@ import type { Client, TextChannel } from 'discord.js'; import IDs from '#utils/ids'; export class VerificationReady extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, once: true, diff --git a/src/listeners/xp.ts b/src/listeners/xp.ts index b38ecd6..68f4181 100644 --- a/src/listeners/xp.ts +++ b/src/listeners/xp.ts @@ -23,7 +23,7 @@ import { addXp, checkCanAddXp } from '#utils/database/xp'; import { randint } from '#utils/maths'; export class XpListener extends Listener { - public constructor(context: Listener.Context, options: Listener.Options) { + public constructor(context: Listener.LoaderContext, options: Listener.Options) { super(context, { ...options, event: 'messageCreate', diff --git a/src/scheduled-tasks/messages/diversityMon.ts b/src/scheduled-tasks/messages/diversityMon.ts index 6709eff..1109bb1 100644 --- a/src/scheduled-tasks/messages/diversityMon.ts +++ b/src/scheduled-tasks/messages/diversityMon.ts @@ -24,7 +24,7 @@ import IDs from '#utils/ids'; export class DiversityMonMessageTask extends ScheduledTask { public constructor( - context: ScheduledTask.Context, + context: ScheduledTask.LoaderContext, options: ScheduledTask.Options, ) { super(context, { diff --git a/src/scheduled-tasks/messages/diversityWed.ts b/src/scheduled-tasks/messages/diversityWed.ts index fe7f7c2..413cca7 100644 --- a/src/scheduled-tasks/messages/diversityWed.ts +++ b/src/scheduled-tasks/messages/diversityWed.ts @@ -24,7 +24,7 @@ import IDs from '#utils/ids'; export class DiversityWedMessageTask extends ScheduledTask { public constructor( - context: ScheduledTask.Context, + context: ScheduledTask.LoaderContext, options: ScheduledTask.Options, ) { super(context, { diff --git a/src/scheduled-tasks/messages/restrictedMessage.ts b/src/scheduled-tasks/messages/restrictedMessage.ts index a7c8c6c..4e378e2 100644 --- a/src/scheduled-tasks/messages/restrictedMessage.ts +++ b/src/scheduled-tasks/messages/restrictedMessage.ts @@ -24,7 +24,7 @@ import IDs from '#utils/ids'; export class RestrictedMessageTask extends ScheduledTask { public constructor( - context: ScheduledTask.Context, + context: ScheduledTask.LoaderContext, options: ScheduledTask.Options, ) { super(context, { diff --git a/src/scheduled-tasks/messages/standup.ts b/src/scheduled-tasks/messages/standup.ts index a577c38..9290430 100644 --- a/src/scheduled-tasks/messages/standup.ts +++ b/src/scheduled-tasks/messages/standup.ts @@ -24,7 +24,7 @@ import IDs from '#utils/ids'; export class StandupTask extends ScheduledTask { public constructor( - context: ScheduledTask.Context, + context: ScheduledTask.LoaderContext, options: ScheduledTask.Options, ) { super(context, { diff --git a/src/scheduled-tasks/messages/verifyReminder.ts b/src/scheduled-tasks/messages/verifyReminder.ts index 4e2943a..6b25396 100644 --- a/src/scheduled-tasks/messages/verifyReminder.ts +++ b/src/scheduled-tasks/messages/verifyReminder.ts @@ -24,7 +24,7 @@ import IDs from '#utils/ids'; export class VerifyReminder extends ScheduledTask { public constructor( - context: ScheduledTask.Context, + context: ScheduledTask.LoaderContext, options: ScheduledTask.Options, ) { super(context, { diff --git a/src/scheduled-tasks/tempBan.ts b/src/scheduled-tasks/tempBan.ts index 709261b..9f9ad80 100644 --- a/src/scheduled-tasks/tempBan.ts +++ b/src/scheduled-tasks/tempBan.ts @@ -25,7 +25,7 @@ import { checkTempBan, removeTempBan } from '#utils/database/tempBan'; export class TempBan extends ScheduledTask { public constructor( - context: ScheduledTask.Context, + context: ScheduledTask.LoaderContext, options: ScheduledTask.Options, ) { super(context, options); @@ -102,6 +102,6 @@ export class TempBan extends ScheduledTask { declare module '@sapphire/plugin-scheduled-tasks' { interface ScheduledTasks { - tempBan: never; + tempBan: { userId: string; guildId: string } } } diff --git a/src/scheduled-tasks/verifyTimeout.ts b/src/scheduled-tasks/verifyTimeout.ts index df3ea9d..e203338 100644 --- a/src/scheduled-tasks/verifyTimeout.ts +++ b/src/scheduled-tasks/verifyTimeout.ts @@ -22,7 +22,7 @@ import { ScheduledTask } from '@sapphire/plugin-scheduled-tasks'; export class VerifyTimeout extends ScheduledTask { public constructor( - context: ScheduledTask.Context, + context: ScheduledTask.LoaderContext, options: ScheduledTask.Options, ) { super(context, options); @@ -56,6 +56,6 @@ export class VerifyTimeout extends ScheduledTask { declare module '@sapphire/plugin-scheduled-tasks' { interface ScheduledTasks { - verifyTimeout: never; + verifyTimeout: { channelId: string; userId: string }; } } diff --git a/src/scheduled-tasks/verifyUnblock.ts b/src/scheduled-tasks/verifyUnblock.ts index 92a118d..3a3ffef 100644 --- a/src/scheduled-tasks/verifyUnblock.ts +++ b/src/scheduled-tasks/verifyUnblock.ts @@ -22,7 +22,7 @@ import IDs from '#utils/ids'; export class VerifyUnblock extends ScheduledTask { public constructor( - context: ScheduledTask.Context, + context: ScheduledTask.LoaderContext, options: ScheduledTask.Options, ) { super(context, options); @@ -56,6 +56,6 @@ export class VerifyUnblock extends ScheduledTask { declare module '@sapphire/plugin-scheduled-tasks' { interface ScheduledTasks { - verifyUnblock: never; + verifyUnblock: { userId: string; guildId: string }; } }