aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/Utility/userinfo.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/commands/Utility/userinfo.js b/commands/Utility/userinfo.js
index 3d36aaf..74b741a 100644
--- a/commands/Utility/userinfo.js
+++ b/commands/Utility/userinfo.js
@@ -1,7 +1,9 @@
exports.run = async (bot, msg) => {
- var user = msg.mentions.members.first();
- if (!user) {
- user = msg.author;
+
+ if (!mentions) {
+ var user = msg.author;
+ } else {
+ var user = msg.mentions.members.first();
};
const { RichEmbed } = require('discord.js');
msg.channel.send(