diff options
| author | pokesudenk <thisis@notarealema.il> | 2018-02-24 20:24:16 -0500 |
|---|---|---|
| committer | pokesudenk <thisis@notarealema.il> | 2018-02-24 20:24:16 -0500 |
| commit | a88fb04b1c858d1fb18b031f73b7edde1c77af1f (patch) | |
| tree | 9cb21086c26b79c73d250d0efd8b0ce7a81822ee /commands | |
| parent | baae38ff8e892b8458894981f8545d9a4fc402c1 (diff) | |
| download | PokeBot-a88fb04b1c858d1fb18b031f73b7edde1c77af1f.tar.gz PokeBot-a88fb04b1c858d1fb18b031f73b7edde1c77af1f.tar.bz2 PokeBot-a88fb04b1c858d1fb18b031f73b7edde1c77af1f.zip | |
shove a pole up my as
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/Utility/userinfo.js | 8 |
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( |
