From 0bf0616d183aa8592d6d3b54e22e6afeee42da42 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 5 Dec 2017 18:15:03 +0000 Subject: [PATCH] ID Command --- commands/info/id.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 commands/info/id.js diff --git a/commands/info/id.js b/commands/info/id.js new file mode 100644 index 00000000..d9da23d8 --- /dev/null +++ b/commands/info/id.js @@ -0,0 +1,25 @@ +const { Command } = require('discord.js-commando'); + +module.exports = class IDCommand extends Command { + constructor(client) { + super(client, { + name: 'id', + aliases: ['user-id', 'member-id'], + group: 'info', + memberName: 'id', + description: 'Responds with a user\'s ID.', + args: [ + { + key: 'user', + prompt: 'Which user do you want to get the ID of?', + type: 'user', + default: msg => msg.author + } + ] + }); + } + + run(msg, { user }) { + return msg.say(`${user.username}'s ID is ${user.id}.`); + } +};