aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/config.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-27 16:57:39 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-27 16:57:39 -0400
commit877537043dd2a8ba16037f061716d9c6f7a5764a (patch)
tree9e9fd2c69b415d2f548e97d0d6abbf3bc8a314a8 /src/commands/config/config.ts
parenta1ab06dcfccef90192b90910aecdddbc505eca00 (diff)
downloadtanzanite-877537043dd2a8ba16037f061716d9c6f7a5764a.tar.gz
tanzanite-877537043dd2a8ba16037f061716d9c6f7a5764a.tar.bz2
tanzanite-877537043dd2a8ba16037f061716d9c6f7a5764a.zip
change printWidth to 130 and update dependecies
Diffstat (limited to 'src/commands/config/config.ts')
-rw-r--r--src/commands/config/config.ts12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/commands/config/config.ts b/src/commands/config/config.ts
index 0ca8ef8..3342456 100644
--- a/src/commands/config/config.ts
+++ b/src/commands/config/config.ts
@@ -51,9 +51,7 @@ export default class SettingsCommand extends BushCommand {
options: [
{
name: 'value',
- description: `What would you like to add to the server's ${guildSettingsObj[
- setting
- ].name.toLowerCase()}?'`,
+ description: `What would you like to add to the server's ${guildSettingsObj[setting].name.toLowerCase()}?'`,
type: guildSettingsObj[setting].type.replace('-array', '').toUpperCase() as SlashArgType,
required: true
}
@@ -88,9 +86,7 @@ export default class SettingsCommand extends BushCommand {
options: [
{
name: 'value',
- description: `What would you like to set the server's ${guildSettingsObj[
- setting
- ].name.toLowerCase()} to?'`,
+ description: `What would you like to set the server's ${guildSettingsObj[setting].name.toLowerCase()} to?'`,
type: guildSettingsObj[setting].type.toUpperCase() as SlashArgType,
required: true
}
@@ -186,9 +182,7 @@ export default class SettingsCommand extends BushCommand {
) {
if (!message.guild) return await message.util.reply(`${util.emojis.error} This command can only be used in servers.`);
if (!message.member?.permissions.has('MANAGE_GUILD') && !message.member?.user.isOwner())
- return await message.util.reply(
- `${util.emojis.error} You must have the **MANAGE_GUILD** permission to run this command.`
- );
+ return await message.util.reply(`${util.emojis.error} You must have the **MANAGE_GUILD** permission to run this command.`);
const setting = message.util.isSlash ? (_.camelCase(args.subcommandGroup)! as GuildSettings) : args.setting!;
const action = message.util.isSlash ? args.subcommand! : args.action!;
const value = args.value;