diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-26 20:07:19 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-26 20:07:19 -0400 |
commit | ed59b7f1827ab93573b079144c3eeaa01ce40492 (patch) | |
tree | 7ceac6d61a8a25586ab9bbaf7acfbade91c97132 /src/commands/info/ping.ts | |
parent | c0a81b014a56e4d44c826f78391a930361aab122 (diff) | |
download | tanzanite-ed59b7f1827ab93573b079144c3eeaa01ce40492.tar.gz tanzanite-ed59b7f1827ab93573b079144c3eeaa01ce40492.tar.bz2 tanzanite-ed59b7f1827ab93573b079144c3eeaa01ce40492.zip |
clean up, bug fixes
Diffstat (limited to 'src/commands/info/ping.ts')
-rw-r--r-- | src/commands/info/ping.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/info/ping.ts b/src/commands/info/ping.ts index 82db2ff..8d05307 100644 --- a/src/commands/info/ping.ts +++ b/src/commands/info/ping.ts @@ -8,7 +8,7 @@ export default class PingCommand extends BushCommand { category: 'info', description: { content: 'Gets the latency of the bot', - usage: 'ping', + usage: ['ping'], examples: ['ping'] }, slash: true, @@ -17,7 +17,7 @@ export default class PingCommand extends BushCommand { }); } - public override async exec(message: BushMessage): Promise<void> { + public override async exec(message: BushMessage) { 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 override async execSlash(message: BushSlashMessage): Promise<void> { + public override async execSlash(message: BushSlashMessage) { const timestamp1 = message.interaction.createdTimestamp; await message.interaction.reply('Pong!'); const timestamp2 = await message.interaction.fetchReply().then((m) => (m as Message).createdTimestamp); |