mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Remove 'list' from validators
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = class SoundBoardCommand extends commando.Command {
|
||||
prompt: 'What sound do you want me to play?',
|
||||
type: 'string',
|
||||
validate: sound => {
|
||||
if (sounds.avaliable[sound.toLowerCase()] || sound.toLowerCase() === 'list') {
|
||||
if (sounds.avaliable[sound.toLowerCase()]) {
|
||||
return true;
|
||||
}
|
||||
return 'Sound not found. Use `;help soundboard` to view a list of sounds.';
|
||||
|
||||
Reference in New Issue
Block a user