mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Fix in Strawpoll
This commit is contained in:
@@ -37,7 +37,7 @@ module.exports = class StrawpollCommand extends Command {
|
|||||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||||
}
|
}
|
||||||
const title = args.title;
|
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 < 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!');
|
if (choices.length > 31) return message.say(':x: Error! You provided more than thirty choices!');
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user