I can't seem to get the bot to send the message of the poll without the '_poll'. What am I missing?
Code sample below:
module.exports = (client) => {
const command = require('./command');
command(client, 'poll', async (message) => {
const tag = `<@${message.author.id}>`;
message.content.replace('_poll', ' ');
const sentMessage = await message.channel.send(
`${tag} started a poll: **${message.content}**`
);
sentMessage.react('');
sentMessage.react('');
});
};