Skip to content

Commit c7aeb26

Browse files
committed
Fix for the fix
1 parent 5d6bf82 commit c7aeb26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

discord/commands/commands.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,9 @@ async def _invoke(self, ctx: ApplicationContext) -> None:
505505
<= SlashCommandOptionType.role.value
506506
):
507507
if ctx.guild is None and op.input_type.name == "user":
508-
arg = User(state=ctx.interaction._state, data=int(arg))
508+
_data = ctx.interaction.data["resolved"]["users"][arg]
509+
_data["id"] = int(arg)
510+
arg = User(state=ctx.interaction._state, data=_data)
509511
else:
510512
name = "member" if op.input_type.name == "user" else op.input_type.name
511513
arg = await get_or_fetch(ctx.guild, name, int(arg), default=int(arg))

0 commit comments

Comments
 (0)