Skip to content

Commit d29a03f

Browse files
authored
fix: pass binding for prefixed variant of hybrid cmd (#1573)
1 parent 15a72cd commit d29a03f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

interactions/ext/hybrid_commands/hybrid_slash.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ def slash_to_prefixed(cmd: HybridSlashCommand) -> _HybridToPrefixedCommand: # n
327327
if cmd.aliases:
328328
prefixed_cmd.aliases.extend(cmd.aliases)
329329

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+
330334
if not cmd.dm_permission:
331335
prefixed_cmd.add_check(guild_only())
332336

0 commit comments

Comments
 (0)