mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
String Changes, Don't register tons of defaults
This commit is contained in:
@@ -10,8 +10,8 @@ module.exports = class SendDMCommand extends commando.Command {
|
||||
],
|
||||
group: 'util',
|
||||
memberName: 'senddm',
|
||||
description: "Sends a DM to a user ID.",
|
||||
examples: [";senddm 278305350804045834 This is a DM."],
|
||||
description: 'Sends a DM to a user ID.',
|
||||
examples: [';senddm 278305350804045834 This is a DM.'],
|
||||
args: [{
|
||||
key: 'userid',
|
||||
prompt: 'What is the User ID of the user you wish to contact?',
|
||||
@@ -20,7 +20,7 @@ module.exports = class SendDMCommand extends commando.Command {
|
||||
if (userID.length === 18) {
|
||||
return true;
|
||||
}
|
||||
return "Invalid ID.";
|
||||
return 'Invalid ID.';
|
||||
}
|
||||
}, {
|
||||
key: 'content',
|
||||
|
||||
@@ -9,8 +9,8 @@ module.exports = class ServersCommand extends commando.Command {
|
||||
],
|
||||
group: 'util',
|
||||
memberName: 'servers',
|
||||
description: "Sends a list of all server names and IDs to the log.",
|
||||
examples: [";servers"]
|
||||
description: 'Sends a list of all server names and IDs to the log.',
|
||||
examples: [';servers']
|
||||
});
|
||||
}
|
||||
hasPermission(msg) {
|
||||
@@ -23,8 +23,8 @@ module.exports = class ServersCommand extends commando.Command {
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const guildCount = this.client.guilds.size;
|
||||
const guildNames = this.client.guilds.map(g => `${g.name} (${g.id})`).join(", ");
|
||||
const guildNames = this.client.guilds.map(g => `${g.name} (${g.id})`).join(', ');
|
||||
console.log(`${guildCount} Servers: ${guildNames}`);
|
||||
return message.say("Sent the information to the console!");
|
||||
return message.say('Sent the information to the console!');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user