Slash commands interaction response doesnt give message
Lumabots opened this issue · 1 comments
Lumabots commented
Summary
return None and not object message
Reproduction Steps
LIke in the minimal reproducible code
Can be fix using ctx.interaction.original_response
Minimal Reproducible Code
@commands.slash_command()
async def test(self, ctx: discord.ApplicationContext):
interaction = await ctx.respond(content="test")
print(interaction.message)
Expected Results
Should be a message object
Actual Results
None
Intents
all
System Information
py-cord 2.5
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
Additional Context
No response
Lulalaby commented
As per spec, initially responding to an interaction does not return a message / interaction object.
Create a response to an Interaction from the gateway. Body is an interaction response. Returns 204 No Content.
So this is intended