mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 15:57:47 +02:00
Cleaner Looking args
This commit is contained in:
@@ -8,16 +8,18 @@ module.exports = class ClearSettingCommand extends Command {
|
||||
memberName: 'clearsetting',
|
||||
description: 'Removes a custom-set Mod Channel, Member Channel, or Staff Role.',
|
||||
guildOnly: true,
|
||||
args: [{
|
||||
key: 'setting',
|
||||
prompt: 'What setting do you want to clear? `modLog`, `memberLog`, or `staffRole`?',
|
||||
type: 'string',
|
||||
validate: setting => {
|
||||
if (['modLog', 'memberLog', 'staffRole'].includes(setting))
|
||||
return true;
|
||||
return 'Please enter either `modLog`, `memberLog`, or `staffRole`.';
|
||||
args: [
|
||||
{
|
||||
key: 'setting',
|
||||
prompt: 'What setting do you want to clear? `modLog`, `memberLog`, or `staffRole`?',
|
||||
type: 'string',
|
||||
validate: setting => {
|
||||
if (['modLog', 'memberLog', 'staffRole'].includes(setting))
|
||||
return true;
|
||||
return 'Please enter either `modLog`, `memberLog`, or `staffRole`.';
|
||||
}
|
||||
}
|
||||
}]
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -8,11 +8,13 @@ module.exports = class MemberLogCommand extends Command {
|
||||
memberName: 'memberchannel',
|
||||
description: 'Sets the channel for the member logs to be sent.',
|
||||
guildOnly: true,
|
||||
args: [{
|
||||
key: 'channel',
|
||||
prompt: 'What is the channel you want to send logs to?',
|
||||
type: 'channel'
|
||||
}]
|
||||
args: [
|
||||
{
|
||||
key: 'channel',
|
||||
prompt: 'What is the channel you want to send logs to?',
|
||||
type: 'channel'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -8,11 +8,13 @@ module.exports = class ModChannelCommand extends Command {
|
||||
memberName: 'modchannel',
|
||||
description: 'Sets the channel for the mod logs to be sent.',
|
||||
guildOnly: true,
|
||||
args: [{
|
||||
key: 'channel',
|
||||
prompt: 'What is the channel you want to send logs to?',
|
||||
type: 'channel'
|
||||
}]
|
||||
args: [
|
||||
{
|
||||
key: 'channel',
|
||||
prompt: 'What is the channel you want to send logs to?',
|
||||
type: 'channel'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
const { RichEmbed } = require('discord.js');
|
||||
const { version } = require('../../package');
|
||||
const moment = require('moment');
|
||||
require('moment-duration-format');
|
||||
|
||||
@@ -14,11 +13,13 @@ module.exports = class ShardInfoCommand extends Command {
|
||||
group: 'util',
|
||||
memberName: 'shardinfo',
|
||||
description: 'Gives some bot info for the Shard you specify.',
|
||||
args: [{
|
||||
key: 'shard',
|
||||
prompt: 'Which Shard would you like to get data for?',
|
||||
type: 'integer'
|
||||
}]
|
||||
args: [
|
||||
{
|
||||
key: 'shard',
|
||||
prompt: 'Which Shard would you like to get data for?',
|
||||
type: 'integer'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -8,11 +8,13 @@ module.exports = class StaffRoleCommand extends Command {
|
||||
memberName: 'staffrole',
|
||||
description: 'Sets the role that can use Mod Commands without perms.',
|
||||
guildOnly: true,
|
||||
args: [{
|
||||
key: 'role',
|
||||
prompt: 'What role should be staff?',
|
||||
type: 'role'
|
||||
}]
|
||||
args: [
|
||||
{
|
||||
key: 'role',
|
||||
prompt: 'What role should be staff?',
|
||||
type: 'role'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user