From dec7e4b434b0668f77e8144dcecebf123ec3bc6f Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Thu, 29 Feb 2024 22:18:11 +1100 Subject: [PATCH] Clear role mention when poll ends --- src/commands/mp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/mp.ts b/src/commands/mp.ts index 634c34f..83a5571 100644 --- a/src/commands/mp.ts +++ b/src/commands/mp.ts @@ -164,7 +164,7 @@ export default class MP { }, null, 2)), {name: `pollResults-${msg.id}.json`}) ]}); - msg.edit({embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Voting has ended!').setDescription('The next map will be '+msg.embeds[0].description.split('\n')[msg.reactions.cache.map(x=>x.count).indexOf(Math.max(...msg.reactions.cache.map(x=>x.count)))].slice(3)).setFooter({text: `Poll ended by ${interaction.user.tag}`, iconURL: interaction.member.displayAvatarURL({extension: 'webp', size: 1024})})]}).then(()=>msg.reactions.removeAll()); + msg.edit({content: null, embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Voting has ended!').setDescription('The next map will be '+msg.embeds[0].description.split('\n')[msg.reactions.cache.map(x=>x.count).indexOf(Math.max(...msg.reactions.cache.map(x=>x.count)))].slice(3)).setFooter({text: `Poll ended by ${interaction.user.tag}`, iconURL: interaction.member.displayAvatarURL({extension: 'webp', size: 1024})})]}).then(()=>msg.reactions.removeAll()); await interaction.reply(`Successfully ended the [poll]() in <#${channels.announcements}>`) }, maps: async()=>{