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