Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
make name and permission global
Browse files Browse the repository at this point in the history
  • Loading branch information
spookybear0 committed Oct 5, 2020
1 parent a8e7f02 commit 6c713a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gdpys/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ async def get_daily_level(self) -> DailyLevel:

def command(self, name: str=None, permission: Permissions=None):
"""Decorator to create commands"""
global name
global permission
def decorator(coro):
if not coro.__code__.co_flags & 0x0080 or getattr(coro, '_is_coroutine', False):
raise Exception("Function is not a coroutine function!")
Expand Down

0 comments on commit 6c713a7

Please sign in to comment.