diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-07-25 16:42:31 +0000 |
---|---|---|
committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-07-25 16:42:31 +0000 |
commit | aecaffcbfe80600f272f74af0c7ac2f121923c51 (patch) | |
tree | cb69c4d2fa0d3c738704d807ce0b83f57a5311ad /src | |
parent | 6d27d53623d84127c43d3146619106e540549038 (diff) | |
download | tanzanite-aecaffcbfe80600f272f74af0c7ac2f121923c51.tar.gz tanzanite-aecaffcbfe80600f272f74af0c7ac2f121923c51.tar.bz2 tanzanite-aecaffcbfe80600f272f74af0c7ac2f121923c51.zip |
Automatically format code
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/dev/test.ts | 1 | ||||
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClient.ts | 4 | ||||
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 7 | ||||
-rw-r--r-- | src/lib/models/Guild.ts | 6 | ||||
-rw-r--r-- | src/listeners/message/automodCreate.ts | 2 |
5 files changed, 9 insertions, 11 deletions
diff --git a/src/commands/dev/test.ts b/src/commands/dev/test.ts index 49a3133..858e34b 100644 --- a/src/commands/dev/test.ts +++ b/src/commands/dev/test.ts @@ -147,7 +147,6 @@ export default class TestCommand extends BushCommand { }** global commands.` ); } else if (['drop down', 'drop downs', 'select menu', 'select menus'].includes(args?.feature?.toLowerCase())) { - } return await message.util.reply(responses[Math.floor(Math.random() * responses.length)]); } diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts index 3caae38..8599e76 100644 --- a/src/lib/extensions/discord-akairo/BushClient.ts +++ b/src/lib/extensions/discord-akairo/BushClient.ts @@ -59,8 +59,8 @@ import { BushTaskHandler } from './BushTaskHandler'; export type BushReplyMessageType = string | MessagePayload | ReplyMessageOptions; export type BushEditMessageType = string | MessageEditOptions | MessagePayload; -export type BushSlashSendMessageType = string | MessagePayload | InteractionReplyOptions -export type BushSlashEditMessageType = string | MessagePayload | WebhookEditMessageOptions +export type BushSlashSendMessageType = string | MessagePayload | InteractionReplyOptions; +export type BushSlashEditMessageType = string | MessagePayload | WebhookEditMessageOptions; export type BushSendMessageType = string | MessagePayload | MessageOptions; export type BushThreadMemberResolvable = BushThreadMember | BushUserResolvable; export type BushUserResolvable = BushUser | Snowflake | BushMessage | BushGuildMember | BushThreadMember; diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index 3a50480..1ba94c2 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -31,7 +31,6 @@ import { MessageEditOptions, MessageEmbed, MessageOptions, - Snowflake, TextChannel, User, @@ -467,9 +466,9 @@ export class BushClientUtil extends ClientUtil { public async slashRespond( interaction: CommandInteraction, - responseOptions: BushSlashSendMessageType|BushSlashEditMessageType + responseOptions: BushSlashSendMessageType | BushSlashEditMessageType ): Promise<Message | APIMessage> { - let newResponseOptions: BushSlashSendMessageType|BushSlashEditMessageType = {}; + let newResponseOptions: BushSlashSendMessageType | BushSlashEditMessageType = {}; if (typeof responseOptions === 'string') { newResponseOptions.content = responseOptions; } else { @@ -753,6 +752,6 @@ export class BushClientUtil extends ClientUtil { public async automod(message: BushMessage) { const autoModPhases = await message.guild.getSetting('autoModPhases'); - if (autoModPhases.includes(message.content.toString()) && message.deletable) message.delete() + if (autoModPhases.includes(message.content.toString()) && message.deletable) message.delete(); } } diff --git a/src/lib/models/Guild.ts b/src/lib/models/Guild.ts index 3972259..7a0384c 100644 --- a/src/lib/models/Guild.ts +++ b/src/lib/models/Guild.ts @@ -14,7 +14,7 @@ export interface GuildModel { punishmentEnding: string; disabledCommands: string[]; lockdownChannels: Snowflake[]; - autoModPhases: string[] + autoModPhases: string[]; } export interface GuildModelCreationAttributes { @@ -28,7 +28,7 @@ export interface GuildModelCreationAttributes { punishmentEnding?: string; disabledCommands?: string[]; lockdownChannels?: Snowflake[]; - autoModPhases?: string[] + autoModPhases?: string[]; } export class Guild extends BaseModel<GuildModel, GuildModelCreationAttributes> implements GuildModel { @@ -42,7 +42,7 @@ export class Guild extends BaseModel<GuildModel, GuildModelCreationAttributes> i punishmentEnding: string; disabledCommands: string[]; lockdownChannels: Snowflake[]; - autoModPhases: string[] + autoModPhases: string[]; static initModel(sequelize: Sequelize, client: BushClient): void { Guild.init( diff --git a/src/listeners/message/automodCreate.ts b/src/listeners/message/automodCreate.ts index f1c4ccd..9b7d0ec 100644 --- a/src/listeners/message/automodCreate.ts +++ b/src/listeners/message/automodCreate.ts @@ -11,6 +11,6 @@ export default class AutomodMessageCreateListener extends BushListener { } async exec(...[message]: ClientEvents['messageCreate']): Promise<void> { - return await this.client.util.automod(message as BushMessage) + return await this.client.util.automod(message as BushMessage); } } |