From 77d98f238dee5aaa836ed6985d7f04913f6e44b5 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Tue, 5 Sep 2023 01:18:37 +1000 Subject: [PATCH] Fix embed title when starting the poll --- src/commands/poll.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/poll.ts b/src/commands/poll.ts index cd2dfd7..68b433a 100644 --- a/src/commands/poll.ts +++ b/src/commands/poll.ts @@ -16,7 +16,7 @@ export default { const msg = await (interaction.guild.channels.cache.get(channelId) as Discord.TextChannel).send({embeds: [ new client.embed() .setColor(client.config.embedColor) - .setTitle('Voting for next map!') + .setTitle('Vote for next map!') .setDescription(map_names.map((map,i)=>`${i+1}. **${map}**`).join('\n')) .setFooter({text: `Poll started by ${interaction.user.tag}`, iconURL: interaction.member.displayAvatarURL({extension: 'webp', size: 1024})}) ]}); @@ -29,7 +29,7 @@ export default { const msg = await (interaction.guild.channels.cache.get(channelId) as Discord.TextChannel).messages.fetch(interaction.options.getString('message_id', true)); if (!msg) return interaction.reply('Message not found, please make sure you have the correct message ID.'); - if (msg.embeds[0].title !== 'Voting for next map!') return interaction.reply('This message is not a poll!'); + if (msg.embeds[0].title !== 'Vote for next map!') return interaction.reply('This message is not a poll!'); if (msg.embeds[0].footer?.text?.startsWith('Poll ended by')) return interaction.reply('This poll has already ended!'); if (msg.reactions.cache.size < 2) return interaction.reply('This poll has not been voted on yet!');