diff --git a/package.json b/package.json index 0d758c43..ae9b2045 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "would-you", - "version": "1.4.12", + "version": "1.4.13", "description": "Would you rather die or use this bot. You got the choice", "main": "dist/cluster.js", "scripts": { diff --git a/src/buttons/gamesActivities/dare.ts b/src/buttons/gamesActivities/dare.ts index 687d7e74..2ec13c1d 100644 --- a/src/buttons/gamesActivities/dare.ts +++ b/src/buttons/gamesActivities/dare.ts @@ -18,7 +18,9 @@ const button: Button = { name: "dare", execute: async (interaction: any, client, guildDb) => { if (interaction.guild) { - await interaction.message.edit({ components: [] }); + await interaction.message.edit({ + components: [], + }); if (interaction.channel.isThread()) { if ( !interaction.channel @@ -46,7 +48,9 @@ const button: Button = { } } - const userDb = await UserModel.findOne({ userID: interaction.user?.id }) as IUserModel; + const userDb = (await UserModel.findOne({ + userID: interaction.user?.id, + })) as IUserModel; let Dare = await getDare( guildDb?.language != null ? guildDb.language : userDb.language, diff --git a/src/buttons/gamesActivities/higherlower.ts b/src/buttons/gamesActivities/higherlower.ts index 4c8b02f3..4461f2ff 100644 --- a/src/buttons/gamesActivities/higherlower.ts +++ b/src/buttons/gamesActivities/higherlower.ts @@ -21,7 +21,9 @@ const button: Button = { name: "higherlower", execute: async (interaction: any, client, guildDb) => { if (interaction.guild) { - await interaction.message.edit({ components: [] }); + await interaction.message.edit({ + components: [], + }); if (interaction.channel.isThread()) { if ( !interaction.channel @@ -50,7 +52,9 @@ const button: Button = { } await interaction.deferReply(); - const userDb = await UserModel.findOne({ userID: interaction.user?.id }) as IUserModel; + const userDb = (await UserModel.findOne({ + userID: interaction.user?.id, + })) as IUserModel; const initembed = new HigherLowerEmbed(interaction, client, guildDb); diff --git a/src/buttons/gamesActivities/neverhaveiever.ts b/src/buttons/gamesActivities/neverhaveiever.ts index a3c1df3c..e5005d21 100644 --- a/src/buttons/gamesActivities/neverhaveiever.ts +++ b/src/buttons/gamesActivities/neverhaveiever.ts @@ -17,7 +17,7 @@ const button: Button = { name: "neverhaveiever", execute: async (interaction: any, client, guildDb) => { if (interaction.guild) { - await interaction.message.edit({ components: [] }); + await interaction.message.edit({ components: [interaction.message.components[0]] }); if (interaction.channel.isThread()) { if ( !interaction.channel @@ -45,7 +45,9 @@ const button: Button = { } } - const userDb = await UserModel.findOne({ userID: interaction.user?.id }) as IUserModel; + const userDb = (await UserModel.findOne({ + userID: interaction.user?.id, + })) as IUserModel; let { Funny, Basic, Young, Food, RuleBreak } = await getNeverHaveIEver( guildDb?.language != null ? guildDb.language : userDb.language, diff --git a/src/buttons/gamesActivities/random.ts b/src/buttons/gamesActivities/random.ts index 2331395e..d694b4ac 100644 --- a/src/buttons/gamesActivities/random.ts +++ b/src/buttons/gamesActivities/random.ts @@ -16,7 +16,9 @@ const button: Button = { name: "random", execute: async (interaction: any, client, guildDb) => { if (interaction.guild) { - await interaction.message.edit({ components: [] }); + await interaction.message.edit({ + components: [], + }); if (interaction.channel.isThread()) { if ( !interaction.channel diff --git a/src/buttons/gamesActivities/truth.ts b/src/buttons/gamesActivities/truth.ts index 59f20b37..887db83c 100644 --- a/src/buttons/gamesActivities/truth.ts +++ b/src/buttons/gamesActivities/truth.ts @@ -16,7 +16,9 @@ const button: Button = { name: "truth", execute: async (interaction: any, client, guildDb) => { if (interaction.guild) { - await interaction.message.edit({ components: [] }); + await interaction.message.edit({ + components: [], + }); if (interaction.channel.isThread()) { if ( !interaction.channel diff --git a/src/buttons/gamesActivities/wouldyourather.ts b/src/buttons/gamesActivities/wouldyourather.ts index 430b8e03..3dab23b0 100644 --- a/src/buttons/gamesActivities/wouldyourather.ts +++ b/src/buttons/gamesActivities/wouldyourather.ts @@ -16,7 +16,7 @@ const button: Button = { name: "wouldyourather", execute: async (interaction: any, client, guildDb) => { if (interaction.guild) { - await interaction.message.edit({ components: [] }); + await interaction.message.edit({ components: [interaction.message.components[0]] }); if (interaction.channel.isThread()) { if ( !interaction.channel