The channel reference
The channel options
manager.on(SelfRoleManagerEvents.channelRegister, (channel, options) => {});
Emitted when a channel is unregistered. SelfRoleManager#channelUnregister
The channel reference
The channel options
manager.on(SelfRoleManagerEvents.channelUnregister, (channel, options) => {});
Emitted when an error occurs. SelfRoleManager#error
The error object, if applicable
The message of the error
The possible arguments in case of error when adding/removing a role
manager.on(SelfRoleManagerEvents.error, (error, message, args) => {});
Emitted when an interaction is made. SelfRoleManager#interaction
The role to emoji data
The interaction
manager.on(SelfRoleManagerEvents.interaction, (rte, interaction) => {});
Emitted when the maximum of roles is reached for the member. SelfRoleManager#maxRolesReach
The guild member
The user action
The number of current roles assigned to the user
The maximum roles assignable to the user
manager.on(SelfRoleManagerEvents.maxRolesReach, (member, userAction, nbRoles, maximumRoles, role) => {});
Emitted when a message is created. SelfRoleManager#messageCreate
The message
manager.on(SelfRoleManagerEvents.messageCreate, (message) => {});
Emitted when a message is deleted. SelfRoleManager#messageDelete
The message
manager.on(SelfRoleManagerEvents.messageDelete, (message) => {});
Emitted when a message is retrieved. SelfRoleManager#messageRetrieve
The message
manager.on(SelfRoleManagerEvents.messageRetrieve, (message) => {});
Emitted when a reaction is added. SelfRoleManager#reactionAdd
The role to emoji data
The message
manager.on(SelfRoleManagerEvents.reactionAdd, (rte, message) => {});
Emitted when a reaction is removed. SelfRoleManager#reactionRemove
The role to emoji data
The message
manager.on(SelfRoleManagerEvents.reactionRemove, (rte, message) => {});
Emitted when the user wants a role but does not have the required roles to apply for it. SelfRoleManager#requiredRolesMissing
The guild member
The user action
The role to add
The required roles to pass the conditions
manager.on(SelfRoleManagerEvents.requiredRolesMissing, (member, userAction, role, requiredRoles) => {});
Emitted when a role is added. SelfRoleManager#roleAdd
The role
The guild member
The user action
manager.on(SelfRoleManagerEvents.roleAdd, (role, member, userAction) => {});
Emitted when a role is removed. SelfRoleManager#roleRemove
The role
The guild member
The user action. When null, it means the bot detected a required role removal and thus removes whatever role is related
manager.on(SelfRoleManagerEvents.roleRemove, (role, member, userAction) => {});
Emitted when a channel is registered. SelfRoleManager#channelRegister