From ff98e902ff3a4031b004eb4cee8d073a0f8b007e Mon Sep 17 00:00:00 2001 From: shtlrs Date: Fri, 14 Jul 2023 10:42:34 +0100 Subject: 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. --- pydis_core/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pydis_core/settings.py') 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>") -- cgit v1.2.3