mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Update to latest
This commit is contained in:
@@ -23,10 +23,7 @@ module.exports = class BanCommand extends Command {
|
||||
key: 'reason',
|
||||
prompt: 'What do you want to set the reason as?',
|
||||
type: 'string',
|
||||
validate: reason => {
|
||||
if (reason.length < 140) return true;
|
||||
return 'Invalid reason, please keep the reason under 140 characters.';
|
||||
}
|
||||
max: 140
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -16,16 +16,17 @@ module.exports = class HackbanCommand extends Command {
|
||||
{
|
||||
key: 'id',
|
||||
prompt: 'What is the id of the member you want to hackban?',
|
||||
type: 'string'
|
||||
type: 'string',
|
||||
validate: id => {
|
||||
if (/^[0-9]+$/.test(id)) return true;
|
||||
return 'Invalid ID.';
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'reason',
|
||||
prompt: 'What do you want to set the reason as?',
|
||||
type: 'string',
|
||||
validate: reason => {
|
||||
if (reason.length < 140) return true;
|
||||
return 'Invalid reason, please keep the reason under 140 characters.';
|
||||
}
|
||||
max: 140
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -23,10 +23,7 @@ module.exports = class KickCommand extends Command {
|
||||
key: 'reason',
|
||||
prompt: 'What do you want to set the reason as?',
|
||||
type: 'string',
|
||||
validate: reason => {
|
||||
if (reason.length < 140) return true;
|
||||
return 'Invalid reason, please keep the reason under 140 characters.';
|
||||
}
|
||||
max: 140
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -21,10 +21,8 @@ module.exports = class PruneCommand extends Command {
|
||||
label: 'amount of messages',
|
||||
prompt: 'How many messages do you want to delete? Limit of up to 99.',
|
||||
type: 'integer',
|
||||
validate: count => {
|
||||
if (count < 100 && count > 0) return true;
|
||||
return 'Invalid count, please enter a number from 1-99.';
|
||||
}
|
||||
min: 1,
|
||||
max: 99
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -23,10 +23,7 @@ module.exports = class SoftbanCommand extends Command {
|
||||
key: 'reason',
|
||||
prompt: 'What do you want to set the reason as?',
|
||||
type: 'string',
|
||||
validate: reason => {
|
||||
if (reason.length < 140) return true;
|
||||
return 'Invalid reason, please keep the reason under 140 characters.';
|
||||
}
|
||||
max: 140
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -16,16 +16,17 @@ module.exports = class UnbanCommand extends Command {
|
||||
{
|
||||
key: 'id',
|
||||
prompt: 'What is the id of the member you want to unban?',
|
||||
type: 'string'
|
||||
type: 'string',
|
||||
validate: id => {
|
||||
if (/^[0-9]+$/.test(id)) return true;
|
||||
return 'Invalid ID.';
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'reason',
|
||||
prompt: 'What do you want to set the reason as?',
|
||||
type: 'string',
|
||||
validate: reason => {
|
||||
if (reason.length < 140) return true;
|
||||
return 'Invalid reason, please keep the reason under 140 characters.';
|
||||
}
|
||||
max: 140
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user