mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = class NameRaterCommand extends Command {
|
||||
type: 'string',
|
||||
max: 25,
|
||||
default: msg => msg.author.username,
|
||||
validate: name => {
|
||||
validate: async name => {
|
||||
const matches = name.match(/^(?:<@!?)?([0-9]+)>?$/);
|
||||
if (matches) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user