Closed slayernominee closed 1 year ago
I used a slash command and got an interaction but it doesnt include the message
command = 'balance' async for cmd in channel.slash_commands(query=command): if cmd.name == command and cmd.application_id == dank_memer_id: interaction = await cmd() print(interaction.message)
return a discord.Message Type
return None
No response
interaction.message is a helper that attempts to get the message from cache. It isn't guaranteed to return anything.
interaction.message
What's the workaround for this in order to retrieve that message?
Summary
I used a slash command and got an interaction but it doesnt include the message
Reproduction Steps
command = 'balance' async for cmd in channel.slash_commands(query=command): if cmd.name == command and cmd.application_id == dank_memer_id: interaction = await cmd() print(interaction.message)
Code
Expected Results
return a discord.Message Type
Actual Results
return None
System Information
Checklist
Additional Information
No response