Still got errors and warnings, mostly the same and easy to fix
diff --git a/src/commands/nucleus/guide.ts b/src/commands/nucleus/guide.ts
index 5f2cde2..507730b 100644
--- a/src/commands/nucleus/guide.ts
+++ b/src/commands/nucleus/guide.ts
@@ -7,17 +7,17 @@
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
- .setName("guide")
- .setDescription("Shows the welcome guide for the bot")
+ .setName("guide")
+ .setDescription("Shows the welcome guide for the bot");
const callback = async (interaction) => {
- guide(interaction.guild, interaction)
-}
+ guide(interaction.guild, interaction);
+};
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
- return true
-}
+ return true;
+};
export { command };
export { callback };
diff --git a/src/commands/nucleus/invite.ts b/src/commands/nucleus/invite.ts
index 96e1449..5a1ea59 100644
--- a/src/commands/nucleus/invite.ts
+++ b/src/commands/nucleus/invite.ts
@@ -2,12 +2,12 @@
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
import EmojiEmbed from "../../utils/generateEmojiEmbed.js";
-import client from "../../utils/client.js"
+import client from "../../utils/client.js";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
- .setName("invite")
- .setDescription("Invites Nucleus to your server")
+ .setName("invite")
+ .setDescription("Invites Nucleus to your server");
const callback = async (interaction: CommandInteraction): Promise<any> => {
interaction.reply({embeds: [new EmojiEmbed()
@@ -20,11 +20,11 @@
.setStyle("LINK")
.setURL(`https://discord.com/api/oauth2/authorize?client_id=${client.user.id}&permissions=295157886134&scope=bot%20applications.commands`)
])], ephemeral: true});
-}
+};
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
-}
+};
export { command };
export { callback };
diff --git a/src/commands/nucleus/ping.ts b/src/commands/nucleus/ping.ts
index 6353843..c153e19 100644
--- a/src/commands/nucleus/ping.ts
+++ b/src/commands/nucleus/ping.ts
@@ -1,21 +1,21 @@
-import { LoadingEmbed } from './../../utils/defaultEmbeds.js';
+import { LoadingEmbed } from "./../../utils/defaultEmbeds.js";
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import EmojiEmbed from "../../utils/generateEmojiEmbed.js";
import { WrappedCheck } from "jshaiku";
-import client from "../../utils/client.js"
+import client from "../../utils/client.js";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
- .setName("ping")
- .setDescription("Gets the bot's ping time")
+ .setName("ping")
+ .setDescription("Gets the bot's ping time");
const callback = async (interaction: CommandInteraction): Promise<any> => {
// WEBSOCKET | Nucleus -> Discord
// EDITING | Nucleus -> discord -> nucleus | edit time / 2
- let initial = new Date().getTime();
+ const initial = new Date().getTime();
await interaction.reply({embeds: LoadingEmbed, ephemeral: true});
- let ping = new Date().getTime() - initial;
+ const ping = new Date().getTime() - initial;
interaction.editReply({embeds: [new EmojiEmbed()
.setTitle("Ping")
.setDescription(
@@ -25,12 +25,12 @@
)
.setEmoji("CHANNEL.SLOWMODE.OFF")
.setStatus("Danger")
- ]})
-}
+ ]});
+};
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
-}
+};
export { command };
export { callback };
diff --git a/src/commands/nucleus/premium.ts b/src/commands/nucleus/premium.ts
index 9d273b9..c8c0f76 100644
--- a/src/commands/nucleus/premium.ts
+++ b/src/commands/nucleus/premium.ts
@@ -5,8 +5,8 @@
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
- .setName("premium")
- .setDescription("Information about Nucleus Premium")
+ .setName("premium")
+ .setDescription("Information about Nucleus Premium");
const callback = async (interaction: CommandInteraction): Promise<any> => {
interaction.reply({embeds: [new EmojiEmbed()
@@ -20,11 +20,11 @@
.setEmoji("NUCLEUS.LOGO")
.setStatus("Danger")
], ephemeral: true});
-}
+};
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
-}
+};
export { command };
export { callback };
diff --git a/src/commands/nucleus/stats.ts b/src/commands/nucleus/stats.ts
index beea94b..98b87be 100644
--- a/src/commands/nucleus/stats.ts
+++ b/src/commands/nucleus/stats.ts
@@ -2,12 +2,12 @@
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
import EmojiEmbed from "../../utils/generateEmojiEmbed.js";
-import client from "../../utils/client.js"
+import client from "../../utils/client.js";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
- .setName("stats")
- .setDescription("Gets the bot's stats")
+ .setName("stats")
+ .setDescription("Gets the bot's stats");
const callback = async (interaction: CommandInteraction): Promise<any> => {
interaction.reply({
@@ -22,11 +22,11 @@
], ephemeral: true
});
-}
+};
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
-}
+};
export { command };
export { callback };
diff --git a/src/commands/nucleus/suggest.ts b/src/commands/nucleus/suggest.ts
index 0c596ff..238e7d5 100644
--- a/src/commands/nucleus/suggest.ts
+++ b/src/commands/nucleus/suggest.ts
@@ -3,55 +3,55 @@
import { WrappedCheck } from "jshaiku";
import confirmationMessage from "../../utils/confirmationMessage.js";
import EmojiEmbed from "../../utils/generateEmojiEmbed.js";
-import client from "../../utils/client.js"
+import client from "../../utils/client.js";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
- .setName("suggest")
- .setDescription("Sends a suggestion to the developers")
- .addStringOption(option => option.setName("suggestion").setDescription("The suggestion to send").setRequired(true))
+ .setName("suggest")
+ .setDescription("Sends a suggestion to the developers")
+ .addStringOption(option => option.setName("suggestion").setDescription("The suggestion to send").setRequired(true));
const callback = async (interaction: CommandInteraction): Promise<any> => {
- const { renderUser } = client.logger
- let suggestion = interaction.options.getString("suggestion");
- let confirmation = await new confirmationMessage(interaction)
+ const { renderUser } = client.logger;
+ const suggestion = interaction.options.getString("suggestion");
+ const confirmation = await new confirmationMessage(interaction)
.setEmoji("ICONS.OPP.ADD")
.setTitle("Suggest")
.setDescription(`**Suggestion:**\n> ${suggestion}\n`
- + `Your username and ID will also be sent with your suggestion.\n\nAre you sure you want to send this suggestion?`)
+ + "Your username and ID will also be sent with your suggestion.\n\nAre you sure you want to send this suggestion?")
.setColor("Danger")
.setInverted(true)
- .send()
- if (confirmation.cancelled) return
+ .send();
+ if (confirmation.cancelled) return;
if (confirmation.success) {
- await (client.channels.cache.get('955161206459600976') as Discord.TextChannel).send({
+ await (client.channels.cache.get("955161206459600976") as Discord.TextChannel).send({
embeds: [
new EmojiEmbed()
- .setTitle(`Suggestion`)
+ .setTitle("Suggestion")
.setDescription(`**From:** ${renderUser(interaction.member.user)}\n**Suggestion:**\n> ${suggestion}`)
.setStatus("Danger")
.setEmoji("NUCLEUS.LOGO")
]
- })
+ });
await interaction.editReply({embeds: [new EmojiEmbed()
.setEmoji("ICONS.ADD")
- .setTitle(`Suggest`)
+ .setTitle("Suggest")
.setDescription("Your suggestion was sent successfully")
.setStatus("Success")
- ], components: []})
+ ], components: []});
} else {
await interaction.editReply({embeds: [new EmojiEmbed()
.setEmoji("ICONS.OPP.ADD")
- .setTitle(`Suggest`)
+ .setTitle("Suggest")
.setDescription("No changes were made")
.setStatus("Danger")
- ], components: []})
+ ], components: []});
}
-}
+};
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
-}
+};
export { command };
export { callback };