Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When a role is returned as 'undefined' in DiscordJS, it means that the bot/server was unable to locate the specified role. This can happen when the role's name or ID was entered incorrectly or the bot does not have sufficient permissions to interact with that role.