aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev/superUser.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-23 22:00:23 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-23 22:00:23 -0500
commitb95f4e00566dc4b99527f6771d56a5e557779e66 (patch)
tree2de597a67c49cc5788ccedd7917075e083643860 /src/commands/dev/superUser.ts
parent084a815f3799764d2dd697e8c693c7f80e0c7ab7 (diff)
downloadtanzanite-b95f4e00566dc4b99527f6771d56a5e557779e66.tar.gz
tanzanite-b95f4e00566dc4b99527f6771d56a5e557779e66.tar.bz2
tanzanite-b95f4e00566dc4b99527f6771d56a5e557779e66.zip
feat: prefer bold over inline codeblocks
Diffstat (limited to 'src/commands/dev/superUser.ts')
-rw-r--r--src/commands/dev/superUser.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/commands/dev/superUser.ts b/src/commands/dev/superUser.ts
index 56bc4b1..ce23da5 100644
--- a/src/commands/dev/superUser.ts
+++ b/src/commands/dev/superUser.ts
@@ -63,19 +63,21 @@ export default class SuperUserCommand extends BushCommand {
const superUsers: string[] = util.getShared('superUsers');
if (action === 'add' ? superUsers.includes(user.id) : !superUsers.includes(user.id))
- return message.util.reply(`${util.emojis.warn} \`${user.tag}\` is ${action === 'add' ? 'already' : 'not'} a superuser.`);
+ return message.util.reply(
+ `${util.emojis.warn} ${util.format.input(user.tag)} is ${action === 'add' ? 'already' : 'not'} a superuser.`
+ );
const success = await util.insertOrRemoveFromShared(action, 'superUsers', user.id).catch(() => false);
if (success) {
return await message.util.reply(
- `${util.emojis.success} ${action == 'remove' ? '' : 'made'} \`${user.tag}\` ${
+ `${util.emojis.success} ${action == 'remove' ? '' : 'made'} ${util.format.input(user.tag)} ${
action == 'remove' ? 'is no longer ' : ''
}a superuser.`
);
} else {
return await message.util.reply(
- `${util.emojis.error} There was an error ${action == 'remove' ? `removing` : 'making'} \`${user.tag}\` ${
+ `${util.emojis.error} There was an error ${action == 'remove' ? `removing` : 'making'} ${util.format.input(user.tag)} ${
action == 'remove' ? `from` : 'to'
} the superuser list.`
);