mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Fix Disriminator Check
This commit is contained in:
@@ -18,7 +18,7 @@ module.exports = class DiscrimCommand extends commando.Command {
|
|||||||
prompt: 'Which discriminator would you like to search for?',
|
prompt: 'Which discriminator would you like to search for?',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
validate: discrim => {
|
validate: discrim => {
|
||||||
if (discrim.match(/^[0-9]+$/) || discrim.length === 4) {
|
if (discrim.match(/^[0-9]+$/) && discrim.length === 4) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return 'Invalid discriminator.';
|
return 'Invalid discriminator.';
|
||||||
|
|||||||
Reference in New Issue
Block a user