diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-08 16:02:51 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-08 16:02:51 -0400 |
commit | b6d1ac9a60e8b8a967ef3e93b92b9748d1f637f9 (patch) | |
tree | da1b870adc36a1a114d4c61d7695e034fd5abd79 /src/commands/info | |
parent | f366181069e1fd4daf7cf379d10c44c25fad84c2 (diff) | |
download | tanzanite-b6d1ac9a60e8b8a967ef3e93b92b9748d1f637f9.tar.gz tanzanite-b6d1ac9a60e8b8a967ef3e93b92b9748d1f637f9.tar.bz2 tanzanite-b6d1ac9a60e8b8a967ef3e93b92b9748d1f637f9.zip |
fix support threads, allow 0 for abreviated numbers, fix accent colors
Diffstat (limited to 'src/commands/info')
-rw-r--r-- | src/commands/info/userInfo.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts index 9450e96..745dcf0 100644 --- a/src/commands/info/userInfo.ts +++ b/src/commands/info/userInfo.ts @@ -50,6 +50,8 @@ export default class UserInfoCommand extends BushCommand { const emojis = []; const superUsers = client.cache.global.superUsers; + await user.fetch(true); // gets banner info and accent color + const userEmbed: MessageEmbed = new MessageEmbed() .setTitle(user.tag) .setThumbnail( @@ -97,7 +99,7 @@ export default class UserInfoCommand extends BushCommand { `**Created: **${createdAt} (${createdAtDelta} ago)` ]; if (user.accentColor !== null) generalInfo.push(`**Accent Color:** ${user.hexAccentColor}`); - if (user.banner) generalInfo.push(`**Banner**: [link](${user.bannerURL({ dynamic: true, format: 'png' })})`); + if (user.banner) generalInfo.push(`**Banner**: [link](${user.bannerURL({ dynamic: true, format: 'png', size: 4096 })})`); const pronouns = await util.getPronounsOf(user); if (pronouns) generalInfo.push(`**Pronouns:** ${pronouns}`); |