-
-
Notifications
You must be signed in to change notification settings - Fork 5
Specify channel for broadcast types #45
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
User Story
As a user,
I would like to have a discord command to specify which channel a specific broadcast type should be sent to,
So that I can have some broadcasts go to one channel, and others go to another.
Example
A user would like to be able to specify a different channel for pk broadcasts to go to.
Implementation
We need to add a new JSON column(sub doc) to the
guildsmodel, such asdisallowed_broadcast_types. If it finds in this array an object with the broadcast type and channel ID to send that type to, send the broadcast there; if not, then use the default one found inbroadcast_channelof the same model.example of possible data in the new column(sub doc)
{ "specific_broadcast_channels": [ { "type": "Pk", "chanel_id": 123 } ] }