Skip to content

Verify channel constants on startup #393

@Numerlor

Description

@Numerlor

Description

The bot should check that there are no channels missing from the guild which are present in the bot constants.

Reasoning

As discussed in #342 this will help prevent issues like #335 and has already been implemented for bot.

Proposed Implementation

With the current implementation of the constants as simple classes (not sure why they're NamedTuples) without any annotations or being an object that holds more info about itself, we can check their contents through the vars function and handling any non private names

Another potentially cleaner solution would be changing the classes to something like enums which are iterable and gives us only the values we want without any filtering

Would you like to implement this yourself?

  • I'd like to implement this feature myself
  • Anyone can implement this feature

Paging @neonSea as they expressed interest in #342

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: planningDiscussing detailstype: featureRelating to the functionality of the application.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions