Allow the user to get info by user ID
This commit is contained in:
parent
4f53a83b32
commit
333357e1c9
1 changed files with 4 additions and 4 deletions
|
@ -2,10 +2,10 @@ module.exports = {
|
||||||
name: "uinfo",
|
name: "uinfo",
|
||||||
description: "Gets info about an user, such as ID, Discord Join date and more",
|
description: "Gets info about an user, such as ID, Discord Join date and more",
|
||||||
syntax: "<User>",
|
syntax: "<User>",
|
||||||
execute(client, message, args) {
|
execute(client, message, args, footerTxt) {
|
||||||
const {footerTxt} = require('../config.json');
|
console.log(args[0])
|
||||||
let user = message.mentions.users.first() || args[0]
|
let user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author
|
||||||
if (!user) user = message.author
|
// if (!user) user = message.author
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": "Everything you've ever wanted to know about " + user.username + "!",
|
"title": "Everything you've ever wanted to know about " + user.username + "!",
|
||||||
"color": 9442302,
|
"color": 9442302,
|
||||||
|
|
Reference in a new issue