aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands/_fake-command/ironmoon.ts4
-rw-r--r--src/commands/admin/channelPermissions.ts2
-rw-r--r--src/commands/config/autoPublishChannel.ts2
-rw-r--r--src/commands/config/blacklist.ts2
-rw-r--r--src/commands/config/disable.ts2
-rw-r--r--src/commands/config/muteRole.ts2
-rw-r--r--src/commands/config/prefix.ts2
-rw-r--r--src/commands/config/punishmentFooter.ts2
-rw-r--r--src/commands/config/welcomeChannel.ts2
-rw-r--r--src/commands/dev/__template.ts2
-rw-r--r--src/commands/dev/_testDB.ts25
-rw-r--r--src/commands/dev/eval.ts2
-rw-r--r--src/commands/dev/reload.ts2
-rw-r--r--src/commands/dev/say.ts4
-rw-r--r--src/commands/dev/servers.ts2
-rw-r--r--src/commands/dev/setLevel.ts5
-rw-r--r--src/commands/dev/sh.ts2
-rw-r--r--src/commands/dev/superUser.ts5
-rw-r--r--src/commands/dev/test.ts2
-rw-r--r--src/commands/fun/coinflip.ts2
-rw-r--r--src/commands/fun/dice.ts2
-rw-r--r--src/commands/fun/eightBall.ts2
-rw-r--r--src/commands/fun/minesweeper.ts2
-rw-r--r--src/commands/info/avatar.ts2
-rw-r--r--src/commands/info/botInfo.ts2
-rw-r--r--src/commands/info/color.ts2
-rw-r--r--src/commands/info/guildInfo.ts5
-rw-r--r--src/commands/info/help.ts2
-rw-r--r--src/commands/info/icon.ts2
-rw-r--r--src/commands/info/invite.ts2
-rw-r--r--src/commands/info/ping.ts4
-rw-r--r--src/commands/info/pronouns.ts2
-rw-r--r--src/commands/info/snowflakeInfo.ts2
-rw-r--r--src/commands/info/userInfo.ts2
-rw-r--r--src/commands/moderation/_lockdown.ts2
-rw-r--r--src/commands/moderation/ban.ts2
-rw-r--r--src/commands/moderation/kick.ts2
-rw-r--r--src/commands/moderation/modlog.ts2
-rw-r--r--src/commands/moderation/mute.ts2
-rw-r--r--src/commands/moderation/removeReactionEmoji.ts2
-rw-r--r--src/commands/moderation/role.ts2
-rw-r--r--src/commands/moderation/slowmode.ts2
-rw-r--r--src/commands/moderation/unban.ts9
-rw-r--r--src/commands/moderation/unmute.ts5
-rw-r--r--src/commands/moderation/warn.ts2
-rw-r--r--src/commands/moulberry-bush/capePerms.ts2
-rw-r--r--src/commands/moulberry-bush/giveawayPing.ts2
-rw-r--r--src/commands/moulberry-bush/level.ts2
-rw-r--r--src/commands/moulberry-bush/report.ts11
-rw-r--r--src/commands/moulberry-bush/rule.ts2
-rw-r--r--src/commands/skyblock-reborn/chooseColor.ts5
-rw-r--r--src/commands/utilities/decode.ts2
-rw-r--r--src/commands/utilities/hash.ts2
-rw-r--r--src/commands/utilities/price.ts2
-rw-r--r--src/commands/utilities/serverStatus.ts2
-rw-r--r--src/commands/utilities/uuid.ts2
-rw-r--r--src/commands/utilities/viewraw.ts2
-rw-r--r--src/commands/utilities/whoHasRole.ts2
-rw-r--r--src/inhibitors/blacklist/channelGlobalBlacklist.ts2
-rw-r--r--src/inhibitors/blacklist/channelGuildBlacklist.ts2
-rw-r--r--src/inhibitors/blacklist/guildBlacklist.ts2
-rw-r--r--src/inhibitors/blacklist/userGlobalBlacklist.ts2
-rw-r--r--src/inhibitors/blacklist/userGuildBlacklist.ts2
-rw-r--r--src/inhibitors/commands/globalDisabledCommand.ts2
-rw-r--r--src/inhibitors/commands/guildDisabledCommand.ts2
-rw-r--r--src/inhibitors/noCache.ts2
-rw-r--r--src/lib/extensions/discord-akairo/BushClient.ts24
-rw-r--r--src/lib/extensions/discord-akairo/BushClientUtil.ts2
-rw-r--r--src/lib/extensions/discord-akairo/BushCommand.ts4
-rw-r--r--src/lib/extensions/discord-akairo/BushCommandHandler.ts2
-rw-r--r--src/lib/extensions/discord-akairo/BushInhibitor.ts4
-rw-r--r--src/lib/extensions/discord.js/BushBaseGuildEmojiManager.d.ts9
-rw-r--r--src/lib/extensions/discord.js/BushChannel.d.ts23
-rw-r--r--src/lib/extensions/discord.js/BushChannelManager.d.ts9
-rw-r--r--src/lib/extensions/discord.js/BushClientUser.d.ts23
-rw-r--r--src/lib/extensions/discord.js/BushGuild.ts8
-rw-r--r--src/lib/extensions/discord.js/BushGuildManager.d.ts20
-rw-r--r--src/lib/extensions/discord.js/BushGuildMemberManager.d.ts15
-rw-r--r--src/lib/extensions/discord.js/BushMessage.ts2
-rw-r--r--src/lib/extensions/discord.js/BushUserManager.d.ts9
-rw-r--r--src/lib/models/ActivePunishment.ts41
-rw-r--r--src/lib/models/BaseModel.ts15
-rw-r--r--src/lib/models/Global.ts36
-rw-r--r--src/lib/models/Guild.ts98
-rw-r--r--src/lib/models/Level.ts20
-rw-r--r--src/lib/models/ModLog.ts41
-rw-r--r--src/lib/models/StickyRole.ts28
-rw-r--r--src/listeners/client/interactionCreate.ts2
-rw-r--r--src/listeners/client/ready.ts2
-rw-r--r--src/listeners/commands/commandBlocked.ts2
-rw-r--r--src/listeners/commands/commandError.ts2
-rw-r--r--src/listeners/commands/commandMissingPermissions.ts4
-rw-r--r--src/listeners/commands/commandStarted.ts2
-rw-r--r--src/listeners/commands/slashBlocked.ts2
-rw-r--r--src/listeners/commands/slashCommandError.ts2
-rw-r--r--src/listeners/commands/slashMissingPermissions.ts2
-rw-r--r--src/listeners/commands/slashStarted.ts2
-rw-r--r--src/listeners/guild/syncUnban.ts2
-rw-r--r--src/listeners/message/autoPublisher.ts2
-rw-r--r--src/listeners/message/automodCreate.ts2
-rw-r--r--src/listeners/message/automodUpdate.ts2
-rw-r--r--src/listeners/message/blacklistedFile.ts2
-rw-r--r--src/listeners/message/booster.ts2
-rw-r--r--src/listeners/message/directMessage.ts2
-rw-r--r--src/listeners/message/level.ts2
-rw-r--r--src/listeners/message/verbose.ts2
-rw-r--r--src/listeners/other/consoleListener.ts2
-rw-r--r--src/listeners/other/promiseRejection.ts2
-rw-r--r--src/listeners/other/uncaughtException.ts2
-rw-r--r--src/tasks/removeExpiredPunishements.ts6
-rw-r--r--src/tasks/updateCache.ts2
111 files changed, 521 insertions, 158 deletions
diff --git a/src/commands/_fake-command/ironmoon.ts b/src/commands/_fake-command/ironmoon.ts
index 500b384..8ca1f5b 100644
--- a/src/commands/_fake-command/ironmoon.ts
+++ b/src/commands/_fake-command/ironmoon.ts
@@ -8,13 +8,13 @@ export default class IronmoonCommand extends BushCommand {
completelyHide: true
});
}
- public condition(message: BushMessage): boolean {
+ public override condition(message: BushMessage): boolean {
return false;
if (message.content.toLowerCase().includes('ironmoon')) return true;
else return false;
}
- public async exec(message: BushMessage | BushSlashMessage): Promise<unknown> {
+ public override async exec(message: BushMessage | BushSlashMessage): Promise<unknown> {
return await message.util.reply('Your message included the word ironmoon.');
}
}
diff --git a/src/commands/admin/channelPermissions.ts b/src/commands/admin/channelPermissions.ts
index 851e2ed..a13f07a 100644
--- a/src/commands/admin/channelPermissions.ts
+++ b/src/commands/admin/channelPermissions.ts
@@ -50,7 +50,7 @@ export default class ChannelPermissionsCommand extends BushCommand {
});
}
- public async exec(
+ public override async exec(
message: BushMessage,
{
target,
diff --git a/src/commands/config/autoPublishChannel.ts b/src/commands/config/autoPublishChannel.ts
index 8fa987b..3381dc2 100644
--- a/src/commands/config/autoPublishChannel.ts
+++ b/src/commands/config/autoPublishChannel.ts
@@ -38,7 +38,7 @@ export default class AutoPublishChannelCommand extends BushCommand {
});
}
- public async exec(message: BushMessage, { channel }: { channel: Channel }): Promise<unknown> {
+ public override async exec(message: BushMessage, { channel }: { channel: Channel }): Promise<unknown> {
const autoPublishChannels = await message.guild.getSetting('autoPublishChannels');
const newValue = util.addOrRemoveFromArray(
autoPublishChannels.includes(channel.id) ? 'remove' : 'add',
diff --git a/src/commands/config/blacklist.ts b/src/commands/config/blacklist.ts
index 150a1b7..78b0446 100644
--- a/src/commands/config/blacklist.ts
+++ b/src/commands/config/blacklist.ts
@@ -60,7 +60,7 @@ export default class BlacklistCommand extends BushCommand {
});
}
- public async exec(
+ public override async exec(
message: BushMessage | BushSlashMessage,
args: { action: 'blacklist' | 'unblacklist'; target: Channel | User | string; global: boolean }
): Promise<unknown> {
diff --git a/src/commands/config/disable.ts b/src/commands/config/disable.ts
index 5d2e4dd..a9318a5 100644
--- a/src/commands/config/disable.ts
+++ b/src/commands/config/disable.ts
@@ -59,7 +59,7 @@ export default class DisableCommand extends BushCommand {
blacklistedCommands = ['eval', 'disable'];
- public async exec(
+ public override async exec(
message: BushMessage | BushSlashMessage,
args: { action: 'enable' | 'disable'; command: BushCommand | string; global: boolean }
): Promise<unknown> {
diff --git a/src/commands/config/muteRole.ts b/src/commands/config/muteRole.ts
index b6e8a81..dee5322 100644
--- a/src/commands/config/muteRole.ts
+++ b/src/commands/config/muteRole.ts
@@ -37,7 +37,7 @@ export default class MuteRoleCommand extends BushCommand {
});
}
- async exec(message: BushMessage | BushSlashMessage, args: { role: Role }): Promise<void> {
+ override async exec(message: BushMessage | BushSlashMessage, args: { role: Role }): Promise<void> {
await message.guild.setSetting('muteRole', args.role.id);
await message.util.send({
content: `${util.emojis.success} Changed the server's mute role to <@&${args.role.id}>.`,
diff --git a/src/commands/config/prefix.ts b/src/commands/config/prefix.ts
index 9c1ce92..9f80633 100644
--- a/src/commands/config/prefix.ts
+++ b/src/commands/config/prefix.ts
@@ -36,7 +36,7 @@ export default class PrefixCommand extends BushCommand {
});
}
- async exec(message: BushMessage | BushSlashMessage, args: { prefix?: string }): Promise<unknown> {
+ override async exec(message: BushMessage | BushSlashMessage, args: { prefix?: string }): Promise<unknown> {
const oldPrefix = await message.guild.getSetting('prefix');
await message.guild.setSetting('prefix', args.prefix ?? client.config.prefix);
if (args.prefix) {
diff --git a/src/commands/config/punishmentFooter.ts b/src/commands/config/punishmentFooter.ts
index eeac6c1..d8daf77 100644
--- a/src/commands/config/punishmentFooter.ts
+++ b/src/commands/config/punishmentFooter.ts
@@ -38,7 +38,7 @@ export default class PunishmentFooterCommand extends BushCommand {
});
}
- async exec(message: BushMessage | BushSlashMessage, args: { ending: string }): Promise<unknown> {
+ override async exec(message: BushMessage | BushSlashMessage, args: { ending: string }): Promise<unknown> {
await message.guild.setSetting('punishmentEnding', args.ending || null);
if (args.ending)
return await message.util.send({
diff --git a/src/commands/config/welcomeChannel.ts b/src/commands/config/welcomeChannel.ts
index 3db9e74..a662802 100644
--- a/src/commands/config/welcomeChannel.ts
+++ b/src/commands/config/welcomeChannel.ts
@@ -36,7 +36,7 @@ export default class WelcomeChannelCommand extends BushCommand {
userPermissions: ['SEND_MESSAGES', 'MANAGE_GUILD']
});
}
- public async exec(message: BushMessage | BushSlashMessage, args: { channel: Channel }): Promise<unknown> {
+ public override async exec(message: BushMessage | BushSlashMessage, args: { channel: Channel }): Promise<unknown> {
const oldChannel = await message.guild.getSetting('welcomeChannel');
await message.guild.setSetting('welcomeChannel', args.channel.id ?? undefined);
if (args.channel) {
diff --git a/src/commands/dev/__template.ts b/src/commands/dev/__template.ts
index 35c57db..949e04e 100644
--- a/src/commands/dev/__template.ts
+++ b/src/commands/dev/__template.ts
@@ -55,7 +55,7 @@ export default class TemplateCommand extends BushCommand {
userPermissions: ['SEND_MESSAGES']
});
}
- public async exec(message: BushMessage | BushSlashMessage): Promise<unknown> {
+ public override async exec(message: BushMessage | BushSlashMessage): Promise<unknown> {
return await message.util.reply(`${util.emojis.error} Do not use the template command.`);
}
}
diff --git a/src/commands/dev/_testDB.ts b/src/commands/dev/_testDB.ts
new file mode 100644
index 0000000..e1fddb4
--- /dev/null
+++ b/src/commands/dev/_testDB.ts
@@ -0,0 +1,25 @@
+// import { BushCommand, BushSlashMessage, Global } from '@lib';
+// import { Message } from 'discord.js';
+// import { inspect } from 'util';