refactor: remove unnecessary =None calls
@@ -413,9 +413,7 @@ class Client:
commands: List[ApplicationCommand] = command(
type=ApplicationCommandType.MESSAGE,
name=name,
- description=None,
scope=scope,
- options=None,
default_permission=default_permission,
)
@@ -467,17 +465,12 @@ class Client:
commands: List[ApplicationCommand] = command(
type=ApplicationCommandType.USER,
name=name,
- description=None,
scope=scope,
- options=None,
default_permission=default_permission,
)
if self.automate_sync:
- [
- self.loop.run_until_complete(self.synchronize(command))
- for command in commands
- ]
+ [self.loop.run_until_complete(self.synchronize(command)) for command in commands]
return self.event(coro, name=f"command_{name}")
