Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify channel for broadcast types #45

Open
fatfingers23 opened this issue Oct 28, 2024 · 0 comments
Open

Specify channel for broadcast types #45

fatfingers23 opened this issue Oct 28, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@fatfingers23
Copy link
Owner

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
    }
  ]
}
@fatfingers23 fatfingers23 added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant