Files
xiao/commands/info/id.js
T
Dragon Fire c61ae11679 Fix
2021-06-05 12:50:41 -04:00

26 lines
578 B
JavaScript

const Command = require('../../framework/Command');
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.reply(`${user.id === msg.author.id ? 'Your' : `${user.username}'s`} ID is ${user.id}.`);
}
};