#Remove role
17 messages · Page 1 of 1 (latest)
Try using author.roles instead of member.roles js .then((entry) => { author = entry.executor; author.roles.remove(Role); })
Do you get an error or smth ?
try console.log(author) in the then(entry) and see what u got
Try a console.log right after the client.on to see if the event is even fetched
Add some string in the brackets like "Channel deleted" or whatever
So you see in the console whether the event was fired
@spiral ice where is this code located?
In ur index.js?
Then why are you making a new client insurance?
Instance*
You need to use the logged in client in ur main index.js
Idk why people do this
Also, author is a User, User’s don’t have roles, GuildMember’s do
And I also don’t see where member is defined here