aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-25 16:42:31 +0000
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-25 16:42:31 +0000
commitaecaffcbfe80600f272f74af0c7ac2f121923c51 (patch)
treecb69c4d2fa0d3c738704d807ce0b83f57a5311ad /src/lib
parent6d27d53623d84127c43d3146619106e540549038 (diff)
downloadtanzanite-aecaffcbfe80600f272f74af0c7ac2f121923c51.tar.gz
tanzanite-aecaffcbfe80600f272f74af0c7ac2f121923c51.tar.bz2
tanzanite-aecaffcbfe80600f272f74af0c7ac2f121923c51.zip
Automatically format code
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/extensions/discord-akairo/BushClient.ts4
-rw-r--r--src/lib/extensions/discord-akairo/BushClientUtil.ts7
-rw-r--r--src/lib/models/Guild.ts6
3 files changed, 8 insertions, 9 deletions
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(