@hunteroi/discord-selfrole
    Preparing search index...

    Enumeration SelfRoleManagerEvents

    Index

    Events

    channelRegister: "channelRegister"

    Emitted when a channel is registered. SelfRoleManager#channelRegister

    The channel reference

    The channel options

    manager.on(SelfRoleManagerEvents.channelRegister, (channel, options) => {});
    
    channelUnregister: "channelUnregister"

    Emitted when a channel is unregistered. SelfRoleManager#channelUnregister

    The channel reference

    The channel options

    manager.on(SelfRoleManagerEvents.channelUnregister, (channel, options) => {});
    
    error: "error"

    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) => {});
    
    interaction: "interaction"

    Emitted when an interaction is made. SelfRoleManager#interaction

    The role to emoji data

    The interaction

    manager.on(SelfRoleManagerEvents.interaction, (rte, interaction) => {});
    
    maxRolesReach: "maxRolesReach"

    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) => {});
    
    messageCreate: "messageCreate"

    Emitted when a message is created. SelfRoleManager#messageCreate

    The message

    manager.on(SelfRoleManagerEvents.messageCreate, (message) => {});
    
    messageDelete: "messageDelete"

    Emitted when a message is deleted. SelfRoleManager#messageDelete

    The message

    manager.on(SelfRoleManagerEvents.messageDelete, (message) => {});
    
    messageRetrieve: "messageRetrieve"

    Emitted when a message is retrieved. SelfRoleManager#messageRetrieve

    The message

    manager.on(SelfRoleManagerEvents.messageRetrieve, (message) => {});
    
    reactionAdd: "reactionAdd"

    Emitted when a reaction is added. SelfRoleManager#reactionAdd

    The role to emoji data

    The message

    manager.on(SelfRoleManagerEvents.reactionAdd, (rte, message) => {});
    
    reactionRemove: "reactionRemove"

    Emitted when a reaction is removed. SelfRoleManager#reactionRemove

    The role to emoji data

    The message

    manager.on(SelfRoleManagerEvents.reactionRemove, (rte, message) => {});
    
    requiredRolesMissing: "requiredRolesMissing"

    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) => {});
    
    roleAdd: "roleAdd"

    Emitted when a role is added. SelfRoleManager#roleAdd

    The role

    The guild member

    The user action

    manager.on(SelfRoleManagerEvents.roleAdd, (role, member, userAction) => {});
    
    roleRemove: "roleRemove"

    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) => {});