aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpokesudenk <thisis@notarealema.il>2018-02-24 20:24:16 -0500
committerpokesudenk <thisis@notarealema.il>2018-02-24 20:24:16 -0500
commita88fb04b1c858d1fb18b031f73b7edde1c77af1f (patch)
tree9cb21086c26b79c73d250d0efd8b0ce7a81822ee
parentbaae38ff8e892b8458894981f8545d9a4fc402c1 (diff)
downloadPokeBot-a88fb04b1c858d1fb18b031f73b7edde1c77af1f.tar.gz
PokeBot-a88fb04b1c858d1fb18b031f73b7edde1c77af1f.tar.bz2
PokeBot-a88fb04b1c858d1fb18b031f73b7edde1c77af1f.zip
shove a pole up my as
-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(