From 333357e1c91856e443d494558a7acd1796527c49 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Fri, 25 Mar 2022 23:48:29 -0500 Subject: [PATCH] Allow the user to get info by user ID --- commands/uinfo.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/uinfo.js b/commands/uinfo.js index 0cb944f..7f568c4 100644 --- a/commands/uinfo.js +++ b/commands/uinfo.js @@ -2,10 +2,10 @@ module.exports = { name: "uinfo", description: "Gets info about an user, such as ID, Discord Join date and more", syntax: "", - execute(client, message, args) { - const {footerTxt} = require('../config.json'); - let user = message.mentions.users.first() || args[0] - if (!user) user = message.author + execute(client, message, args, footerTxt) { + console.log(args[0]) + let user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author + // if (!user) user = message.author const embed = { "title": "Everything you've ever wanted to know about " + user.username + "!", "color": 9442302,