Reformat
diff --git a/src/commands/server/buttons.ts b/src/commands/server/buttons.ts
index 3aa2214..74c255c 100644
--- a/src/commands/server/buttons.ts
+++ b/src/commands/server/buttons.ts
@@ -71,8 +71,7 @@
.setCustomId("edit")
.setLabel("Edit Embed")
.setStyle(ButtonStyle.Secondary)
- .setEmoji(getEmojiByName("ICONS.EDIT") as APIMessageComponentEmoji)
- ,
+ .setEmoji(getEmojiByName("ICONS.EDIT") as APIMessageComponentEmoji),
new ButtonBuilder()
.setCustomId("send")
.setLabel("Send")
@@ -148,7 +147,8 @@
let i: Discord.ButtonInteraction | Discord.ChannelSelectMenuInteraction | Discord.StringSelectMenuInteraction;
try {
i = (await interaction.channel!.awaitMessageComponent({
- filter: (i: Discord.Interaction) => i.user.id === interaction.user.id && i.isMessageComponent() && i.message.id === m.id,
+ filter: (i: Discord.Interaction) =>
+ i.user.id === interaction.user.id && i.isMessageComponent() && i.message.id === m.id,
time: 300000
})) as
| Discord.ButtonInteraction
@@ -228,14 +228,16 @@
case "send": {
await i.deferUpdate();
const channel = interaction.guild!.channels.cache.get(data.channel!) as Discord.TextChannel;
- const messageData: MessageCreateOptions = { };
+ const messageData: MessageCreateOptions = {};
for (const button of data.buttons) {
- messageData.components = [new ActionRowBuilder<ButtonBuilder>().addComponents(
- new ButtonBuilder()
- .setCustomId(button)
- .setLabel(buttonNames[button]!)
- .setStyle(ButtonStyle.Primary)
- )];
+ messageData.components = [
+ new ActionRowBuilder<ButtonBuilder>().addComponents(
+ new ButtonBuilder()
+ .setCustomId(button)
+ .setLabel(buttonNames[button]!)
+ .setStyle(ButtonStyle.Primary)
+ )
+ ];
}
if (data.title || data.description || data.color) {
const e = new EmojiEmbed();
diff --git a/src/commands/settings/autopublish.ts b/src/commands/settings/autopublish.ts
index d389e2d..421cfb8 100644
--- a/src/commands/settings/autopublish.ts
+++ b/src/commands/settings/autopublish.ts
@@ -70,7 +70,8 @@
let i: Discord.ButtonInteraction | Discord.ChannelSelectMenuInteraction;
try {
i = (await interaction.channel!.awaitMessageComponent({
- filter: (i: Discord.Interaction) => i.user.id === interaction.user.id && i.isMessageComponent() && i.message.id === m.id,
+ filter: (i: Discord.Interaction) =>
+ i.user.id === interaction.user.id && i.isMessageComponent() && i.message.id === m.id,
time: 300000
})) as Discord.ButtonInteraction | Discord.ChannelSelectMenuInteraction;
} catch (e) {
diff --git a/src/commands/settings/logs/warnings.ts b/src/commands/settings/logs/warnings.ts
index 35be955..37c5ac8 100644
--- a/src/commands/settings/logs/warnings.ts
+++ b/src/commands/settings/logs/warnings.ts
@@ -67,7 +67,8 @@
let i: Discord.ButtonInteraction | Discord.ChannelSelectMenuInteraction;
try {
i = await interaction.channel!.awaitMessageComponent<ComponentType.Button | ComponentType.ChannelSelect>({
- filter: (i: Discord.Interaction) => i.user.id === interaction.user.id && i.isMessageComponent() && i.message.id === m.id,
+ filter: (i: Discord.Interaction) =>
+ i.user.id === interaction.user.id && i.isMessageComponent() && i.message.id === m.id,
time: 300000
});
} catch (e) {
diff --git a/src/config/main.d.ts b/src/config/main.d.ts
index ff3e552..8953c52 100644
--- a/src/config/main.d.ts
+++ b/src/config/main.d.ts
@@ -23,7 +23,7 @@
socket?: string;
host?: string;
port?: number;
- }
+ };
};
export default config;
diff --git a/src/reflex/scanners.ts b/src/reflex/scanners.ts
index 7c75416..80ca150 100644
--- a/src/reflex/scanners.ts
+++ b/src/reflex/scanners.ts
@@ -23,13 +23,12 @@
errored?: boolean;
}
-
const nsfw_model = await nsfwjs.load("file://dist/reflex/nsfwjs/example/nsfw_demo/public/model/", { size: 299 });
const clamscanner = await new ClamScan().init({
clamdscan: {
- socket: "socket" in config.clamav ? config.clamav.socket as string : false,
- host: "host" in config.clamav ? config.clamav.host as string : false,
- port: "port" in config.clamav ? config.clamav.port as number : false,
+ socket: "socket" in config.clamav ? (config.clamav.socket as string) : false,
+ host: "host" in config.clamav ? (config.clamav.host as string) : false,
+ port: "port" in config.clamav ? (config.clamav.port as number) : false
}
});