We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15a72cd commit d29a03fCopy full SHA for d29a03f
interactions/ext/hybrid_commands/hybrid_slash.py
@@ -327,6 +327,10 @@ def slash_to_prefixed(cmd: HybridSlashCommand) -> _HybridToPrefixedCommand: # n
327
if cmd.aliases:
328
prefixed_cmd.aliases.extend(cmd.aliases)
329
330
+ # copy over binding from slash command, if any
331
+ # can't be done in init due to how _binding works
332
+ prefixed_cmd._binding = cmd._binding
333
+
334
if not cmd.dm_permission:
335
prefixed_cmd.add_check(guild_only())
336
0 commit comments