This commit is contained in:
Erik 2022-07-27 15:43:09 +03:00
parent f94f512a3d
commit 6eeb5aa6e1
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -34,7 +34,7 @@ class SelfroleCommand extends SlashCommand {
const { guild, member } = invoker;
const { selfrole } = await guild.settings();
if (!selfrole.roles.length) return { index: 'COMMAND_SELFROLE_NONE', emoji: 'failure' };
const me = await guild.resolveMemberr(this.client.user);
const me = await guild.resolveMember(this.client.user);
const ownHighest = me.roles.highest;
const memberRoles = member.roles.cache.map((r) => r.id);