aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/ping.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/info/ping.ts')
-rw-r--r--src/commands/info/ping.ts4
1 files changed, 2 insertions, 2 deletions
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);