mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Fix support for guilds decorator with context menu commands
This commit is contained in:
parent
f9ead92239
commit
1bfe6b2bb1
@ -873,7 +873,7 @@ class ContextMenu:
|
||||
self._param_name = param
|
||||
self._annotation = annotation
|
||||
self.module: Optional[str] = callback.__module__
|
||||
self._guild_ids = guild_ids
|
||||
self._guild_ids = guild_ids or getattr(callback, '__discord_app_commands_default_guilds__', None)
|
||||
self.on_error: Optional[UnboundError] = None
|
||||
self.checks: List[Check] = getattr(callback, '__discord_app_commands_checks__', [])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user