aboutsummaryrefslogtreecommitdiff
path: root/commands/Utility
diff options
context:
space:
mode:
Diffstat (limited to 'commands/Utility')
-rw-r--r--commands/Utility/userinfo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/Utility/userinfo.js b/commands/Utility/userinfo.js
index 6a0d442..851dc01 100644
--- a/commands/Utility/userinfo.js
+++ b/commands/Utility/userinfo.js
@@ -1,6 +1,6 @@
exports.run = async (bot, msg) => {
const { RichEmbed } = require('discord.js');
- if (!msg.mentions) {
+ if (!msg.mentions.users.first()) {
var user = msg.author;
} else {
var user = msg.mentions.members.first();