Skip to content

Centralized caching of discord guild, channels and roles. #545

@RohanJnr

Description

@RohanJnr

Description

Cache guild, channels, and roles during the bot start and before any cog loads in.
This is going to make accessing channels and roles easier in the cogs/code without getting/fetching them in the cog.
This will also avoid repetitively getting or fetching the same channel/role in multiple cogs.

By doing this, we can make sure that all required channels and roles are loaded and present.

Additional

The bot should stop even if one channel/role is found to be None or not present with appropriate logging.

Would you like to implement this yourself?

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

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