aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/config')
-rw-r--r--src/commands/config/blacklist.ts7
-rw-r--r--src/commands/config/config.ts14
-rw-r--r--src/commands/config/customAutomodPhrases.ts2
-rw-r--r--src/commands/config/disable.ts2
-rw-r--r--src/commands/config/features.ts4
-rw-r--r--src/commands/config/levelRoles.ts2
-rw-r--r--src/commands/config/log.ts6
7 files changed, 18 insertions, 19 deletions
diff --git a/src/commands/config/blacklist.ts b/src/commands/config/blacklist.ts
index c928265..bac3ef3 100644
--- a/src/commands/config/blacklist.ts
+++ b/src/commands/config/blacklist.ts
@@ -1,6 +1,5 @@
-import { AllowedMentions, BushCommand, BushMessage, BushSlashMessage, Global } from '@lib';
-import { Argument } from 'discord-akairo';
-import { Channel, User } from 'discord.js';
+import { AllowedMentions, BushCommand, Global, type BushMessage, type BushSlashMessage } from '@lib';
+import { User, type Channel } from 'discord.js';
export default class BlacklistCommand extends BushCommand {
public constructor() {
@@ -15,7 +14,7 @@ export default class BlacklistCommand extends BushCommand {
args: [
{
id: 'target',
- customType: Argument.union('channel', 'user'),
+ customType: util.arg.union('channel', 'user'),
prompt: {
start: 'What channel or user that you would like to blacklist/unblacklist?',
retry: '{error} Pick a valid user or channel.'
diff --git a/src/commands/config/config.ts b/src/commands/config/config.ts
index 3342456..555b47d 100644
--- a/src/commands/config/config.ts
+++ b/src/commands/config/config.ts
@@ -1,19 +1,19 @@
-import { BushCommand, BushMessage, BushSlashMessage, GuildSettings, guildSettingsObj, settingsArr } from '@lib';
-import { ArgumentOptions, Flag } from 'discord-akairo';
+import { BushCommand, guildSettingsObj, settingsArr, type BushMessage, type BushSlashMessage, type GuildSettings } from '@lib';
+import { type ArgumentOptions, type Flag } from 'discord-akairo';
import {
Channel,
Formatters,
GuildMember,
- Message,
MessageActionRow,
MessageButton,
- MessageComponentInteraction,
MessageEmbed,
- MessageOptions,
MessageSelectMenu,
Role,
- Snowflake,
- User
+ User,
+ type Message,
+ type MessageComponentInteraction,
+ type MessageOptions,
+ type Snowflake
} from 'discord.js';
import _ from 'lodash';
diff --git a/src/commands/config/customAutomodPhrases.ts b/src/commands/config/customAutomodPhrases.ts
index 6bed8fd..25201ff 100644
--- a/src/commands/config/customAutomodPhrases.ts
+++ b/src/commands/config/customAutomodPhrases.ts
@@ -1,4 +1,4 @@
-// import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
+// import { BushCommand, type BushMessage, type BushSlashMessage } from '@lib';
// export default class CustomAutomodPhrasesCommand extends BushCommand {
// public constructor() {
diff --git a/src/commands/config/disable.ts b/src/commands/config/disable.ts
index 521972b..3ada74e 100644
--- a/src/commands/config/disable.ts
+++ b/src/commands/config/disable.ts
@@ -1,4 +1,4 @@
-import { AllowedMentions, BushCommand, BushMessage, BushSlashMessage, Global } from '@lib';
+import { AllowedMentions, BushCommand, Global, type BushMessage, type BushSlashMessage } from '@lib';
export default class DisableCommand extends BushCommand {
public constructor() {
diff --git a/src/commands/config/features.ts b/src/commands/config/features.ts
index 8285845..065253c 100644
--- a/src/commands/config/features.ts
+++ b/src/commands/config/features.ts
@@ -1,5 +1,5 @@
-import { BushCommand, BushMessage, BushSlashMessage, GuildFeatures, guildFeaturesArr, guildFeaturesObj } from '@lib';
-import { Message, MessageActionRow, MessageEmbed, MessageSelectMenu, SelectMenuInteraction } from 'discord.js';
+import { BushCommand, guildFeaturesArr, guildFeaturesObj, type BushMessage, type BushSlashMessage, type GuildFeatures } from '@lib';
+import { MessageActionRow, MessageEmbed, MessageSelectMenu, type Message, type SelectMenuInteraction } from 'discord.js';
export default class FeaturesCommand extends BushCommand {
public constructor() {
diff --git a/src/commands/config/levelRoles.ts b/src/commands/config/levelRoles.ts
index c8f0bf3..e788615 100644
--- a/src/commands/config/levelRoles.ts
+++ b/src/commands/config/levelRoles.ts
@@ -1,4 +1,4 @@
-// import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
+// import { BushCommand, type BushMessage, type BushSlashMessage } from '@lib';
// export default class LevelRolesCommand extends BushCommand {
// public constructor() {
diff --git a/src/commands/config/log.ts b/src/commands/config/log.ts
index c364a35..af68483 100644
--- a/src/commands/config/log.ts
+++ b/src/commands/config/log.ts
@@ -1,6 +1,6 @@
-import { BushCommand, BushMessage, BushSlashMessage, guildLogsArr, GuildLogType } from '@lib';
-import { ArgumentOptions, Flag } from 'discord-akairo';
-import { TextChannel } from 'discord.js';
+import { BushCommand, guildLogsArr, type BushMessage, type BushSlashMessage, type GuildLogType } from '@lib';
+import { type ArgumentOptions, type Flag } from 'discord-akairo';
+import { type TextChannel } from 'discord.js';
export default class LogCommand extends BushCommand {
public constructor() {