mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
This is going to error so bad
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user