aboutsummaryrefslogtreecommitdiff
path: root/src/context-menu-commands
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-06-16 14:32:18 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-06-16 14:32:18 -0400
commit0e87bbd3940d89defcb04926587b35c8f4d1947f (patch)
treee50860d4dc25a11d4c3977b583284c4bcad1b077 /src/context-menu-commands
parent661e4c9935aeb8760dafc7ced4bbec6cc356a033 (diff)
downloadtanzanite-0e87bbd3940d89defcb04926587b35c8f4d1947f.tar.gz
tanzanite-0e87bbd3940d89defcb04926587b35c8f4d1947f.tar.bz2
tanzanite-0e87bbd3940d89defcb04926587b35c8f4d1947f.zip
remove util classes, move config out of src
Diffstat (limited to 'src/context-menu-commands')
-rw-r--r--src/context-menu-commands/user/modlog.ts6
-rw-r--r--src/context-menu-commands/user/userInfo.ts3
2 files changed, 5 insertions, 4 deletions
diff --git a/src/context-menu-commands/user/modlog.ts b/src/context-menu-commands/user/modlog.ts
index bdb311f..7f3103d 100644
--- a/src/context-menu-commands/user/modlog.ts
+++ b/src/context-menu-commands/user/modlog.ts
@@ -1,5 +1,5 @@
import { ModlogCommand } from '#commands';
-import { SlashMessage } from '#lib';
+import { emojis, SlashMessage } from '#lib';
import { CommandUtil, ContextMenuCommand } from 'discord-akairo';
import { ApplicationCommandType, type ContextMenuCommandInteraction } from 'discord.js';
@@ -15,12 +15,12 @@ export default class ModlogContextMenuCommand extends ContextMenuCommand {
public override async exec(interaction: ContextMenuCommandInteraction) {
if (!interaction.inCachedGuild())
return interaction.reply({
- content: `${util.emojis.error} You can't use this command outside of a server.`,
+ content: `${emojis.error} You can't use this command outside of a server.`,
ephemeral: true
});
if (!interaction.member?.permissions.has('ManageMessages'))
return interaction.reply({
- content: `${util.emojis.error} You can't use this command because you have the **Manage Messages** permission.`,
+ content: `${emojis.error} You can't use this command because you have the **Manage Messages** permission.`,
ephemeral: true
});
diff --git a/src/context-menu-commands/user/userInfo.ts b/src/context-menu-commands/user/userInfo.ts
index 80e9883..075b681 100644
--- a/src/context-menu-commands/user/userInfo.ts
+++ b/src/context-menu-commands/user/userInfo.ts
@@ -1,4 +1,5 @@
import { UserInfoCommand } from '#commands';
+import { format } from '#lib';
import { ContextMenuCommand } from 'discord-akairo';
import { ApplicationCommandType, type ContextMenuCommandInteraction, type Guild } from 'discord.js';
@@ -20,7 +21,7 @@ export default class UserInfoContextMenuCommand extends ContextMenuCommand {
const guild = interaction.guild as Guild;
const member = await guild.members.fetch(interaction.targetId).catch(() => null);
- if (!member) return interaction.reply(`${util.format.input(user.tag)} doesn't appear to be a member of this server anymore.`);
+ if (!member) return interaction.reply(`${format.input(user.tag)} doesn't appear to be a member of this server anymore.`);
const userEmbed = await UserInfoCommand.makeUserInfoEmbed(user, member, guild);