We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
interaction.message is a helper that attempts to get the message from cache. It isn't guaranteed to return anything.
interaction.message
Sorry, something went wrong.
What's the workaround for this in order to retrieve that message?
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: