From 74bdd8cfffcca1ab697edfcf6c5b1da08b3925cc Mon Sep 17 00:00:00 2001 From: WubzyGD <63122940+WubzyGD@users.noreply.github.com> Date: Sun, 11 Oct 2020 19:02:05 -0400 Subject: [PATCH] Smol n?ui bugfix --- commands/userinfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/userinfo.js b/commands/userinfo.js index a56cd11..2e8be40 100644 --- a/commands/userinfo.js +++ b/commands/userinfo.js @@ -13,7 +13,7 @@ module.exports = { let tu = await UserData.findOne({uid: person.id}); let infoembed= new Discord.MessageEmbed() .setTitle(`User Info for ${name}`) - .setDescription(`Requested by ${name}`) + .setDescription(`Requested by ${message.guild ? message.member.displayName : message.author.username}`) .setThumbnail(client.users.cache.get(person.id).avatarURL({size: 2048})) .addField("Account Created", moment(client.users.cache.get(person.id).createdAt).fromNow(), true) .addField("Bot User?", client.users.cache.get(person.id).bot ? "Is a bot" : "Is not a bot", true)