mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
Remove Valid ID Checks
This commit is contained in:
@@ -15,11 +15,7 @@ module.exports = class UnbanCommand extends Command {
|
||||
{
|
||||
key: 'id',
|
||||
prompt: 'What member do you want to unban? Please enter the ID of the user.',
|
||||
type: 'string',
|
||||
validate: id => {
|
||||
if (id.length === 18) return true;
|
||||
return 'Invalid ID.';
|
||||
}
|
||||
type: 'string'
|
||||
},
|
||||
{
|
||||
key: 'reason',
|
||||
|
||||
@@ -13,11 +13,7 @@ module.exports = class StarCommand extends Command {
|
||||
{
|
||||
key: 'id',
|
||||
prompt: 'What is the ID of the message you wish to star?',
|
||||
type: 'string',
|
||||
validate: id => {
|
||||
if (id.length === 18) return true;
|
||||
return 'Invalid ID.';
|
||||
}
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "21.1.3",
|
||||
"version": "21.1.4",
|
||||
"description": "A Discord Bot",
|
||||
"main": "Shard.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user