Skip to content

Commit

Permalink
Added logging level and description localizations (#13)
Browse files Browse the repository at this point in the history
* fix: add description localizations to SlashOption
  • Loading branch information
KeenanOH authored Jun 16, 2022
1 parent 8bd3d21 commit 4323eba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snowfin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions snowfin/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 4323eba

Please sign in to comment.