aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moulberry-bush/capePermissions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/moulberry-bush/capePermissions.ts')
-rw-r--r--src/commands/moulberry-bush/capePermissions.ts24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/commands/moulberry-bush/capePermissions.ts b/src/commands/moulberry-bush/capePermissions.ts
index e568036..edb2836 100644
--- a/src/commands/moulberry-bush/capePermissions.ts
+++ b/src/commands/moulberry-bush/capePermissions.ts
@@ -28,21 +28,13 @@ export default class CapePermissionsCommand extends BushCommand {
}
public override async exec(message: BushMessage | BushSlashMessage, args: { ign: ArgType<'string'> }) {
- interface CapePerms {
- success: boolean;
- perms: User[];
- }
-
- interface User {
- _id: string;
- perms: string[];
- }
-
let capePerms: CapePerms | null, uuid: string;
try {
uuid = await util.mcUUID(args.ign);
} catch (e) {
- return await message.util.reply(`${util.emojis.error} \`${args.ign}\` doesn't appear to be a valid username.`);
+ return await message.util.reply(
+ `${util.emojis.error} ${util.format.input(args.ign)} doesn't appear to be a valid username.`
+ );
}
try {
@@ -77,3 +69,13 @@ export default class CapePermissionsCommand extends BushCommand {
}
}
}
+
+interface CapePerms {
+ success: boolean;
+ perms: User[];
+}
+
+interface User {
+ _id: string;
+ perms: string[];
+}