aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-26 16:12:06 +0000
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-26 16:12:06 +0000
commit00ad00734ddb2c2fce8de8efcc010181c9ce1821 (patch)
treee6b79047fd2cfbef4733cfbd488ee4cb47d600d5 /src/commands
parent1d6e64d5c43e4398e7c0488f114acba2c8a55164 (diff)
downloadtanzanite-00ad00734ddb2c2fce8de8efcc010181c9ce1821.tar.gz
tanzanite-00ad00734ddb2c2fce8de8efcc010181c9ce1821.tar.bz2
tanzanite-00ad00734ddb2c2fce8de8efcc010181c9ce1821.zip
feat: use Time enum
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/info/userInfo.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts
index 4e3675b..0ff8611 100644
--- a/src/commands/info/userInfo.ts
+++ b/src/commands/info/userInfo.ts
@@ -1,5 +1,6 @@
import {
BushCommand,
+ Time,
type ArgType,
type BushGuild,
type BushGuildMember,
@@ -127,7 +128,7 @@ export default class UserInfoCommand extends BushCommand {
if (user.accentColor !== null) generalInfo.push(`**Accent Color:** ${user.hexAccentColor}`);
if (user.banner) generalInfo.push(`**Banner:** [link](${user.bannerURL({ extension: 'png', size: 4096 })})`);
- const pronouns = await Promise.race([util.getPronounsOf(user), util.sleep(2)]); // cut off request after 2 seconds
+ const pronouns = await Promise.race([util.getPronounsOf(user), util.sleep(2 * Time.Second)]); // cut off request after 2 seconds
if (pronouns && typeof pronouns === 'string' && pronouns !== 'Unspecified') generalInfo.push(`**Pronouns:** ${pronouns}`);