mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
[Docs] Fix driver docs showing twice (#3035)
* docs(config): fix doubled docs for drivers * enhance(drivers): add docstrings to enums that show in docs * chore(changelog): add towncrier entries
This commit is contained in:
@@ -18,9 +18,13 @@ __all__ = [
|
||||
|
||||
|
||||
class BackendType(enum.Enum):
|
||||
"""Represents storage backend type."""
|
||||
|
||||
#: JSON storage backend.
|
||||
JSON = "JSON"
|
||||
#: Postgres storage backend.
|
||||
POSTGRES = "Postgres"
|
||||
# Dead drivrs below retained for error handling.
|
||||
# Dead drivers below retained for error handling.
|
||||
MONGOV1 = "MongoDB"
|
||||
MONGO = "MongoDBV2"
|
||||
|
||||
|
||||
@@ -6,11 +6,19 @@ __all__ = ["BaseDriver", "IdentifierData", "ConfigCategory"]
|
||||
|
||||
|
||||
class ConfigCategory(str, enum.Enum):
|
||||
"""Represents config category."""
|
||||
|
||||
#: Global category.
|
||||
GLOBAL = "GLOBAL"
|
||||
#: Guild category.
|
||||
GUILD = "GUILD"
|
||||
#: Channel category.
|
||||
CHANNEL = "TEXTCHANNEL"
|
||||
#: Role category.
|
||||
ROLE = "ROLE"
|
||||
#: User category.
|
||||
USER = "USER"
|
||||
#: Member category.
|
||||
MEMBER = "MEMBER"
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user