diff options
author | 2023-07-14 10:42:34 +0100 | |
---|---|---|
committer | 2023-07-14 10:42:34 +0100 | |
commit | ff98e902ff3a4031b004eb4cee8d073a0f8b007e (patch) | |
tree | e4b5f0b872ed2553d646a7d925c0e49f6d91eef2 /pydis_core/settings.py | |
parent | specify `emojis__pagination_` as env_prefix for pagination emojis (diff) |
override env name for the delete emoji
This way we can preserve the same behavior for botstrap, and we can have the Emojis class pick it up too.
Diffstat (limited to 'pydis_core/settings.py')
-rw-r--r-- | pydis_core/settings.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pydis_core/settings.py b/pydis_core/settings.py index 6388201a..6f735a82 100644 --- a/pydis_core/settings.py +++ b/pydis_core/settings.py @@ -5,7 +5,7 @@ By default, the values defined in the classes are used, these can be overridden `.env` and `.env.server` files are used to populate env vars, if present. """ -from pydantic import BaseSettings +from pydantic import BaseSettings, Field class EnvConfig(BaseSettings): @@ -21,10 +21,10 @@ class EnvConfig(BaseSettings): class _PaginationEmojis(EnvConfig): - EnvConfig.Config.env_prefix = "emojis__pagination_" + EnvConfig.Config.env_prefix = "emojis_" first: str = "\u23EE" left: str = "\u2B05" right: str = "\u27A1" last: str = "\u23ED" - delete: str = "<:trashcan:637136429717389331>" + delete: str = Field(env="emojis_trashcan", default="<:trashcan:637136429717389331>") |