You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we have two use cases we can already implement the role-management.ts with, that being the focus-mode and using the role manager to create new roles based on a new channel creation within a category, based on specific channel name nomenclature.
Implementation
In order to build this out, we create an additional function to check when discordClient.on("channelCreate") event is fired and match if the channel.name has the format ext-*-audit, then create a new role matching the new channel name format and assign role access to this channel.
This should also send message events to the newly created channel giving notification of the role creation and users with access to it.
If we run an additional checks, we can also monitor discordClient.on("channelDelete") events to remove the roles automatically when a channel is deleted.
Linking with Invites
We can also link this role creation event to the invite-management which generates a new invite based on channel / role criteria set in the above implementation example.
The text was updated successfully, but these errors were encountered:
Introduction
Currently we have two use cases we can already implement the role-management.ts with, that being the focus-mode and using the role manager to create new roles based on a new channel creation within a category, based on specific channel name nomenclature.
Implementation
In order to build this out, we create an additional function to check when
discordClient.on("channelCreate")
event is fired and match if thechannel.name
has the formatext-*-audit
, then create a new role matching the new channel name format and assign role access to this channel.This should also send message events to the newly created channel giving notification of the role creation and users with access to it.
If we run an additional checks, we can also monitor
discordClient.on("channelDelete")
events to remove the roles automatically when a channel is deleted.Linking with Invites
We can also link this role creation event to the
invite-management
which generates a new invite based on channel / role criteria set in the above implementation example.The text was updated successfully, but these errors were encountered: