AbstractCreates an instance of SelfRoleManager.
Optionalclient: ClientThe client that instantiated this Manager
Optionaloptions: SelfRoleOptions = ...ReadonlychannelsThe collection of registered channels.
ReadonlyclientThe client that instantiated this Manager
ReadonlyoptionsThe options of the manager.
ProtectedgenerateProtectedgetReturns the RTE (and its role) based on the emoji provided.
the button component or message reaction
the channel options
Optionalemoji: null | GuildEmoji | ReactionEmoji | APIMessageComponentEmojithe emoji clicked
The proper RoteToEmojiData
Protected AbstracthandleHandle the behaviour once a user adds a reaction or clicks on a button.
the user action, whether it is a reaction or a button interaction
Optionaluser: null | User | PartialUserthe user who did the action
OptionalisReactionRemoval: null | booleaninvert the logic of the action (only for reactions)
Registers a channel. When a user reacts to the message in it, a role will be given/removed.
Protected AbstractsendsHandle the registering of a channel, sending the main message for the automated role-giver system.
ProtecteduserProtecteduserProtecteduserProtecteduser
The manager handling assignation and removal of roles based on user interactions/reactions.
Export
SelfRoleManager