mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
ID Command
This commit is contained in:
@@ -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}.`);
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user