This commit is contained in:
Dragon Fire
2020-04-11 11:29:40 -04:00
parent dfe8c0a5e0
commit fe3a92a76e
13 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class UserCommand extends Command {
• Discord Join Date: ${moment.utc(user.createdAt).format('MM/DD/YYYY h:mm A')}
${user.bot ? 'Bot' : 'Not a Bot'}
`;
if (msg.channel.type === 'text') {
if (msg.guild) {
try {
const member = await msg.guild.members.fetch(user.id);
const defaultRole = msg.guild.roles.cache.get(msg.guild.id);