From 4323ebab0d32682b484e7ca3a4ac3ae7689086e9 Mon Sep 17 00:00:00 2001 From: Shinobou <86394469+Shinobou@users.noreply.github.com> Date: Wed, 15 Jun 2022 19:32:22 -0500 Subject: [PATCH] Added logging level and description localizations (#13) * fix: add description localizations to SlashOption --- snowfin/client.py | 3 +++ snowfin/decorators.py | 1 + 2 files changed, 4 insertions(+) diff --git a/snowfin/client.py b/snowfin/client.py index 7f011bc..8d35f02 100644 --- a/snowfin/client.py +++ b/snowfin/client.py @@ -114,6 +114,9 @@ def __init__( # gather callbacks self._gather_callbacks() + # set logging level + logger.setLevel(logging_level) + # create some middleware for start and stop events @self.app.listener("after_server_start") async def on_start(app, loop): diff --git a/snowfin/decorators.py b/snowfin/decorators.py index 9b5cfab..5669e30 100644 --- a/snowfin/decorators.py +++ b/snowfin/decorators.py @@ -155,6 +155,7 @@ class SlashOption: required: bool = False autocomplete: bool = False name_localizations: Optional[Localization] = None + description_localizations: Optional[Localization] = None def to_dict(self): d = {