diff --git a/src/commands/help.ts b/src/commands/help.ts index 580e21c..f6b1cf9 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -30,6 +30,6 @@ export const cmd: Command = { embed.addField('!' + cmd.name, resp.join('\n')); } - return e.reply({ embeds: [embed] }); + await e.reply({ embeds: [embed] }); }, }; diff --git a/src/commands/members.ts b/src/commands/members.ts index 24c9f7a..3929ad5 100644 --- a/src/commands/members.ts +++ b/src/commands/members.ts @@ -8,7 +8,7 @@ export const cmd: Command = { const memes = await e.guild?.members.fetch().then((r) => r.toJSON()); if (!memes) return; - return e.reply({ + await e.reply({ embeds: [ { title: `${memes.length} total members!`, diff --git a/src/commands/ping.ts b/src/commands/ping.ts index 689861a..4fe9825 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -5,6 +5,6 @@ export const cmd: Command = { desc: 'Shows the ping of the bot', aliases: ['test'], exec: async (e) => { - return await e.reply(`${e.client.ws.ping}ms`); + await e.reply(`${e.client.ws.ping}ms`); }, }; diff --git a/src/commands/stars.ts b/src/commands/stars.ts index 97b3406..f074514 100644 --- a/src/commands/stars.ts +++ b/src/commands/stars.ts @@ -8,7 +8,7 @@ export const cmd: Command = { const count = await fetch('https://api.github.com/repos/PolyMC/PolyMC') .then((r) => r.json() as Promise<{ stargazers_count: number }>) .then((j) => j.stargazers_count); - return e.reply({ + await e.reply({ embeds: [ { title: `⭐ ${count} total stars!`, diff --git a/src/commands/tags.ts b/src/commands/tags.ts index 2570b85..6c1e539 100644 --- a/src/commands/tags.ts +++ b/src/commands/tags.ts @@ -22,6 +22,6 @@ export const cmd: Command = { } em.addField(tag.name, text); } - return e.reply({ embeds: [em] }); + await e.reply({ embeds: [em] }); }, }; diff --git a/src/index.ts b/src/index.ts index 98858fd..31afc78 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,7 +25,7 @@ export interface Command { exec( m: Message, p: SuccessfulParsedMessage> - ): Promise | Promise | any; + ): Promise | void; } type Commands = Array; @@ -80,7 +80,7 @@ client.once('ready', async () => { ) ); - const POLYMC_GUILD = await client.guilds.fetch(BuildConfig.GUILD_ID); + // const POLYMC_GUILD = await client.guilds.fetch(BuildConfig.GUILD_ID); client.on('messageCreate', async (e) => { if (!e.content) return; diff --git a/src/tags.json b/src/tags.json index cc5f2c1..2fe3295 100644 --- a/src/tags.json +++ b/src/tags.json @@ -64,7 +64,7 @@ }, { "name": "eta", - "text": "Sometime" + "text": "Sometime", "aliases": ["wen", "when"] }, {