Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Add User Name to errorembed
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Ray committed Oct 5, 2018
1 parent 1abb54c commit 28a95b1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions commands/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ exports.run = async (client, message, args) => {
const botuser = resolvedUser ? message.guild.members.get(resolvedUser.id) : message.member;
//Above constant adds the ability to get a game for a user by an ID instead of having to mention them.
//const botuser = message.mentions.users.first() ? message.guild.members.get(message.mentions.users.first().id) : message.member;
const errorembed = new Discord.RichEmbed()
.setColor(botuser.displayColor)
.setDescription('This user isn\'t playing anything.')
.setTimestamp()
.setFooter(`${client.user.username} | ID ${botuser.id} | Beta - Master`);
const errorembed = new Discord.RichEmbed();
errorembed.setAuthor(`${botuser.displayName}#${botuser.user.discriminator}`);
errorembed.setColor(botuser.displayColor);
errorembed.setDescription('This user isn\'t playing anything.');
errorembed.setTimestamp();
errorembed.setFooter(`${client.user.username} | ID ${botuser.id} | Beta - Master`);

if (!botuser.user.presence.game) return msg.edit(errorembed);
const embed = new Discord.RichEmbed()
Expand Down

0 comments on commit 28a95b1

Please sign in to comment.