From 85f4ec00efb5c90cc2408e5bcc96bf01e3de2a10 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 20:27:58 -0500 Subject: FIXY FIXY --- commands/Fun/story.js | 8 ++++---- commands/Utility/userinfo.js | 30 +++++++++++++++--------------- 2 files changed, 19 insertions(+), 19 deletions(-) (limited to 'commands') diff --git a/commands/Fun/story.js b/commands/Fun/story.js index 3f29d38..4f421c5 100644 --- a/commands/Fun/story.js +++ b/commands/Fun/story.js @@ -13,10 +13,10 @@ exports.run = async (bot, msg) => { ]; const storySelected = [Math.floor(Math.random() * stories.length)]; const embed = new Discord.RichEmbed() - .setColor(0x00ae86) - .setTitle(`Pokebot Storytime`) - .setDescription(stories[storySelected]) - .setFooter('PokeBot Beta'); + .setColor(0x00ae86) + .setTitle('Pokebot Storytime') + .setDescription(stories[storySelected]) + .setFooter('PokeBot Beta'); msg.channel.send(embed); }); }; diff --git a/commands/Utility/userinfo.js b/commands/Utility/userinfo.js index b19339d..f834e2f 100644 --- a/commands/Utility/userinfo.js +++ b/commands/Utility/userinfo.js @@ -1,19 +1,19 @@ exports.run = async (bot, msg) => { - const { RichEmbed } = require('discord.js'); - const { mentions } = require('discord.js'); - if (!mentions) { - var user = msg.author; - } else { - var user = msg.mentions.members.first(); - }; - msg.channel.send( - new RichEmbed() - .setColor(0x00ae86) - .setTitle(`User Information`) - .addField('User ID', user.id) - .addField('Account Creation Date', user.user.createdAt) - .addField('Join Guild Date', user.joinedAt) - .addField('Names', 'Display Name: ' + user.displayName + `\nUsername: ${user.user.tag}`) + const { RichEmbed } = require('discord.js'); + let user; + if (!msg.mentions.members.first()) { + user = msg.author; + } else { + user = msg.mentions.members.first(); + } + msg.channel.send( + new RichEmbed() + .setColor(0x00ae86) + .setTitle('User Information') + .addField('User ID', user.id) + .addField('Account Creation Date', user.user.createdAt) + .addField('Join Guild Date', user.joinedAt) + .addField('Names', 'Display Name: ' + user.displayName + `\nUsername: ${user.user.tag}`) ); }; -- cgit v1.2.3 From f6c8e529eb06a3d1121feeebb5de6c97eefbc571 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 20:29:37 -0500 Subject: fixy --- commands/Utility/userinfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/Utility/userinfo.js b/commands/Utility/userinfo.js index f834e2f..d4ccb91 100644 --- a/commands/Utility/userinfo.js +++ b/commands/Utility/userinfo.js @@ -2,7 +2,7 @@ exports.run = async (bot, msg) => { const { RichEmbed } = require('discord.js'); let user; if (!msg.mentions.members.first()) { - user = msg.author; + user = msg.member; } else { user = msg.mentions.members.first(); } -- cgit v1.2.3