#Remove role

17 messages · Page 1 of 1 (latest)

opaque prism
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

last relic
#

Try using author.roles instead of member.roles js .then((entry) => { author = entry.executor; author.roles.remove(Role); })

last relic
#

Do you get an error or smth ?

limber egret
#

What version of d.js are you using

#

Is the event even fired?

last relic
#

try console.log(author) in the then(entry) and see what u got

limber egret
#

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

quiet edge
#

@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

quiet edge
#

And I also don’t see where member is defined here