Skip to content

Specify channel for broadcast types #45

@fatfingers23

Description

@fatfingers23

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 guilds model, such as disallowed_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 in broadcast_channel of the same model.

example of possible data in the new column(sub doc)

{
  "specific_broadcast_channels":
  [
    {
      "type": "Pk",
      "chanel_id": 123
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions