mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
+2
-2
@@ -6,12 +6,12 @@ module.exports = class CodeArgumentType extends ArgumentType {
|
|||||||
super(client, 'code');
|
super(client, 'code');
|
||||||
}
|
}
|
||||||
|
|
||||||
async validate(value) {
|
validate(value) {
|
||||||
if (!value) return false;
|
if (!value) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
parse(value, msg) {
|
async parse(value, msg) {
|
||||||
if (!value) return null;
|
if (!value) return null;
|
||||||
if (/^[0-9]+$/.test(value)) {
|
if (/^[0-9]+$/.test(value)) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user