aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/info')
-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
11 files changed, 15 insertions, 12 deletions
diff --git a/src/commands/info/avatar.ts b/src/commands/info/avatar.ts
index eefdc02..37d2256 100644
--- a/src/commands/info/avatar.ts
+++ b/src/commands/info/avatar.ts
@@ -35,7 +35,7 @@ export default class AvatarCommand extends BushCommand {
});
}
- async exec(message: BushMessage | BushSlashMessage, { user }: { user: User }): Promise<void> {
+ override async exec(message: BushMessage | BushSlashMessage, { user }: { user: User }): Promise<void> {
user = user ?? message.author;
const embed = new MessageEmbed()
diff --git a/src/commands/info/botInfo.ts b/src/commands/info/botInfo.ts
index e47984b..c89c356 100644
--- a/src/commands/info/botInfo.ts
+++ b/src/commands/info/botInfo.ts
@@ -17,7 +17,7 @@ export default class BotInfoCommand extends BushCommand {
});
}
- public async exec(message: BushMessage | BushSlashMessage): Promise<void> {
+ public override async exec(message: BushMessage | BushSlashMessage): Promise<void> {
const developers = (await util.mapIDs(client.config.owners)).map((u) => u?.tag).join('\n');
const currentCommit = (await util.shell('git rev-parse HEAD')).stdout.replace('\n', '');
let repoUrl = (await util.shell('git remote get-url origin')).stdout.replace('\n', '');
diff --git a/src/commands/info/color.ts b/src/commands/info/color.ts
index e995d79..7ceb37f 100644
--- a/src/commands/info/color.ts
+++ b/src/commands/info/color.ts
@@ -40,7 +40,7 @@ export default class ColorCommand extends BushCommand {
return color.substr(4, color.length - 5);
}
- public async exec(
+ public override async exec(
message: BushMessage | BushSlashMessage,
args: { color: string | BushRole | BushGuildMember }
): Promise<unknown> {
diff --git a/src/commands/info/guildInfo.ts b/src/commands/info/guildInfo.ts
index 6ce4d76..2cdf3d5 100644
--- a/src/commands/info/guildInfo.ts
+++ b/src/commands/info/guildInfo.ts
@@ -36,7 +36,10 @@ export default class GuildInfoCommand extends BushCommand {
});
}
- public async exec(message: BushMessage | BushSlashMessage, args: { guild: Guild | bigint | GuildPreview }): Promise<unknown> {
+ public override async exec(
+ message: BushMessage | BushSlashMessage,
+ args: { guild: Guild | bigint | GuildPreview }
+ ): Promise<unknown> {
if (!args?.guild && !message.guild) {
return await message.util.reply(
`${util.emojis.error} You must either provide an server to provide info about or run this command in a server.`
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts
index 458b7d0..691051c 100644
--- a/src/commands/info/help.ts
+++ b/src/commands/info/help.ts
@@ -43,7 +43,7 @@ export default class HelpCommand extends BushCommand {
});
}
- public async exec(
+ public override async exec(
message: BushMessage | BushSlashMessage,
args: { command: BushCommand | string; showHidden?: boolean }
): Promise<unknown> {
diff --git a/src/commands/info/icon.ts b/src/commands/info/icon.ts
index 598cd14..582494c 100644
--- a/src/commands/info/icon.ts
+++ b/src/commands/info/icon.ts
@@ -17,7 +17,7 @@ export default class IconCommand extends BushCommand {
});
}
- async exec(message: BushMessage | BushSlashMessage): Promise<void> {
+ override async exec(message: BushMessage | BushSlashMessage): Promise<void> {
const embed = new MessageEmbed()
.setTimestamp()
.setColor(util.colors.default)
diff --git a/src/commands/info/invite.ts b/src/commands/info/invite.ts
index a2128b3..384c59e 100644
--- a/src/commands/info/invite.ts
+++ b/src/commands/info/invite.ts
@@ -18,7 +18,7 @@ export default class InviteCommand extends BushCommand {
});
}
- public async exec(message: BushMessage | BushSlashMessage): Promise<unknown> {
+ public override async exec(message: BushMessage | BushSlashMessage): Promise<unknown> {
if (client.config.isDevelopment) return await message.util.reply(`${util.emojis.error} The dev bot cannot be invited.`);
const ButtonRow = new MessageActionRow().addComponents(
new MessageButton({
diff --git a/src/commands/info/ping.ts b/src/commands/info/ping.ts
index 550c3c7..5f2220c 100644
--- a/src/commands/info/ping.ts
+++ b/src/commands/info/ping.ts
@@ -17,7 +17,7 @@ export default class PingCommand extends BushCommand {
});
}
- public async exec(message: BushMessage): Promise<void> {
+ public override async exec(message: BushMessage): Promise<void> {
const sentMessage = (await message.util.send('Pong!')) as Message;
const timestamp: number = message.editedTimestamp ? message.editedTimestamp : message.createdTimestamp;
const botLatency = `${'```'}\n ${Math.round(sentMessage.createdTimestamp - timestamp)}ms ${'```'}`;
@@ -35,7 +35,7 @@ export default class PingCommand extends BushCommand {
});
}
- public async execSlash(message: BushSlashMessage): Promise<void> {
+ public override async execSlash(message: BushSlashMessage): Promise<void> {
const timestamp1 = message.interaction.createdTimestamp;
await message.interaction.reply('Pong!');
const timestamp2 = await message.interaction.fetchReply().then((m) => (m as Message).createdTimestamp);
diff --git a/src/commands/info/pronouns.ts b/src/commands/info/pronouns.ts
index 82ee04f..6f2b074 100644
--- a/src/commands/info/pronouns.ts
+++ b/src/commands/info/pronouns.ts
@@ -60,7 +60,7 @@ export default class PronounsCommand extends BushCommand {
slash: true
});
}
- async exec(message: Message | BushSlashMessage, args: { user?: User }): Promise<unknown> {
+ override async exec(message: Message | BushSlashMessage, args: { user?: User }): Promise<unknown> {
const user = args.user || message.author;
const author = user.id === message.author.id;
try {
diff --git a/src/commands/info/snowflakeInfo.ts b/src/commands/info/snowflakeInfo.ts
index b6b9e16..f293219 100644
--- a/src/commands/info/snowflakeInfo.ts
+++ b/src/commands/info/snowflakeInfo.ts
@@ -52,7 +52,7 @@ export default class SnowflakeInfoCommand extends BushCommand {
]
});
}
- public async exec(message: BushMessage | BushSlashMessage, args: { snowflake: bigint }): Promise<unknown> {
+ public override async exec(message: BushMessage | BushSlashMessage, args: { snowflake: bigint }): Promise<unknown> {
const snowflake = `${args.snowflake}` as Snowflake;
const snowflakeEmbed = new MessageEmbed().setTitle('Unknown :snowflake:').setColor(util.colors.default);
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts
index cecf5ec..d9922d0 100644
--- a/src/commands/info/userInfo.ts
+++ b/src/commands/info/userInfo.ts
@@ -40,7 +40,7 @@ export default class UserInfoCommand extends BushCommand {
});
}
- public async exec(message: BushMessage | BushSlashMessage, args: { user: GuildMember }): Promise<unknown> {
+ public override async exec(message: BushMessage | BushSlashMessage, args: { user: GuildMember }): Promise<unknown> {
const user = args?.user || message.member;
const emojis = [];
const superUsers = client.cache.global.superUsers;