Skip to content

Commit

Permalink
Fix new get_command
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum authored Nov 11, 2021
1 parent fac922c commit 0359234
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions discord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def get_command(self):
"""
# TODO: Do something like we did in self.commands for this
return self.get_application_command

def get_application_command(
self,
name: str,
Expand Down Expand Up @@ -188,8 +189,6 @@ def get_application_command(
return
return command

get_application_command = get_command

async def sync_commands(self) -> None:
"""|coro|
Expand Down

0 comments on commit 0359234

Please sign in to comment.