aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/userInfo.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-09-07 21:33:37 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-09-07 21:33:37 -0400
commited98ff7e2679f362f2657e77a6cf8dd3ce9b3d43 (patch)
tree75a6ba3cf992c1d563ddb8042d4cd9b4278207b8 /src/commands/info/userInfo.ts
parent15b6988ccffc0a21a570bee7fcb8aabe6ffe08c7 (diff)
downloadtanzanite-ed98ff7e2679f362f2657e77a6cf8dd3ce9b3d43.tar.gz
tanzanite-ed98ff7e2679f362f2657e77a6cf8dd3ce9b3d43.tar.bz2
tanzanite-ed98ff7e2679f362f2657e77a6cf8dd3ce9b3d43.zip
clean upHEADmaster
Diffstat (limited to 'src/commands/info/userInfo.ts')
-rw-r--r--src/commands/info/userInfo.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts
index 86132c7..25621fa 100644
--- a/src/commands/info/userInfo.ts
+++ b/src/commands/info/userInfo.ts
@@ -4,8 +4,8 @@ import {
bots,
colors,
emojis,
+ formatList,
mappings,
- oxford,
sleep,
Time,
timestampAndDelta,
@@ -200,9 +200,9 @@ export default class UserInfoCommand extends BotCommand {
const presenceInfo = [];
if (member?.presence.status) presenceInfo.push(`**Status:** ${member.presence.status}`);
if (devices && devices.length)
- presenceInfo.push(`**${devices.length - 1 ? 'Devices' : 'Device'}:** ${oxford(devices, 'and', '')}`);
+ presenceInfo.push(`**${devices.length - 1 ? 'Devices' : 'Device'}:** ${formatList(devices, 'and')}`);
if (activitiesNames.length)
- presenceInfo.push(`**Activit${activitiesNames.length - 1 ? 'ies' : 'y'}:** ${oxford(activitiesNames, 'and', '')}`);
+ presenceInfo.push(`**Activit${activitiesNames.length - 1 ? 'ies' : 'y'}:** ${formatList(activitiesNames, 'and')}`);
if (customStatus && customStatus.length) presenceInfo.push(`**Custom Status:** ${escapeMarkdown(customStatus)}`);
embed.addFields({ name: title, value: presenceInfo.join('\n') });
@@ -245,7 +245,7 @@ export default class UserInfoCommand extends BotCommand {
// Important Perms
const perms = this.getImportantPermissions(member);
- if (perms.length) embed.addFields({ name: title, value: this.getImportantPermissions(member).join(' ') });
+ if (perms.length) embed.addFields({ name: title, value: perms.join(' ') });
}
private static getImportantPermissions(member: GuildMember | undefined) {