mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 15:57:47 +02:00
Fix
This commit is contained in:
@@ -18,7 +18,7 @@ module.exports = class PhoneCommand extends Command {
|
|||||||
default: '',
|
default: '',
|
||||||
validate: channelID => {
|
validate: channelID => {
|
||||||
if (channelID.toLowerCase() === 'count') return true;
|
if (channelID.toLowerCase() === 'count') return true;
|
||||||
return !/^[0-9]+$/.test(val);
|
return !/^[0-9]+$/.test(channelID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user