This is going to error so bad

This commit is contained in:
Dragon Fire
2020-02-11 15:40:49 -05:00
parent 085284821c
commit db7bb7f49f
9 changed files with 16 additions and 12 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ module.exports = class UserCommand extends Command {
if (msg.channel.type === 'text') {
try {
const member = await msg.guild.members.fetch(user.id);
const defaultRole = msg.guild.roles.get(msg.guild.id);
const defaultRole = msg.guild.roles.cache.get(msg.guild.id);
const roles = member.roles
.filter(role => role.id !== defaultRole.id)
.sort((a, b) => b.position - a.position)