Fix in Strawpoll

This commit is contained in:
Daniel Odendahl Jr
2017-04-11 13:47:15 +00:00
parent 9d970553fa
commit c731de338a
+1 -1
View File
@@ -37,7 +37,7 @@ module.exports = class StrawpollCommand extends Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
const title = args.title;
const choices = args.choices.split(' | ');
const choices = args.choices;
if (choices.length < 2) return message.say(':x: Error! You provided less than two choices!');
if (choices.length > 31) return message.say(':x: Error! You provided more than thirty choices!');
try {