aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/guildInfo.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 18:45:31 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 18:45:31 -0400
commitcca0b7a03bcd61af12b7f9bff51276f6c70beeb3 (patch)
tree2b2adebc166ac033520e5b582773e63fbdc5ddb9 /src/commands/info/guildInfo.ts
parent13ba1ad552047eb9386e91d542a975c4bef58b08 (diff)
downloadtanzanite-cca0b7a03bcd61af12b7f9bff51276f6c70beeb3.tar.gz
tanzanite-cca0b7a03bcd61af12b7f9bff51276f6c70beeb3.tar.bz2
tanzanite-cca0b7a03bcd61af12b7f9bff51276f6c70beeb3.zip
refactor: this.client.util -> util
Diffstat (limited to 'src/commands/info/guildInfo.ts')
-rw-r--r--src/commands/info/guildInfo.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/info/guildInfo.ts b/src/commands/info/guildInfo.ts
index a3e7405..2e541f3 100644
--- a/src/commands/info/guildInfo.ts
+++ b/src/commands/info/guildInfo.ts
@@ -42,7 +42,7 @@ export default class GuildInfoCommand extends BushCommand {
public async exec(message: BushMessage | BushSlashMessage, args: { guild: Guild | bigint | GuildPreview }): Promise<unknown> {
if (!args?.guild && !message.guild) {
return await message.util.reply(
- `${this.client.util.emojis.error} You must either provide an server to provide info about or run this command in a server.`
+ `${util.emojis.error} You must either provide an server to provide info about or run this command in a server.`
);
}
let isPreview = false;
@@ -52,7 +52,7 @@ export default class GuildInfoCommand extends BushCommand {
args.guild = preview;
isPreview = true;
} else {
- return await message.util.reply(`${this.client.util.emojis.error} That guild is not discoverable or does not exist.`);
+ return await message.util.reply(`${util.emojis.error} That guild is not discoverable or does not exist.`);
}
}
const guild: Guild | GuildPreview = (args?.guild as Guild | GuildPreview) || (message.guild as Guild);
@@ -154,7 +154,7 @@ export default class GuildInfoCommand extends BushCommand {
const guildInfoEmbed = new MessageEmbed()
.setTitle(guild.name)
- .setColor(this.client.util.colors.default)
+ .setColor(util.colors.default)
.addField('ยป About', guildAbout.join('\n'));
const guildIcon = guild.iconURL({ size: 2048, format: 'png', dynamic: true });
if (guildIcon) {