Skip to content
New issue

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

Interaction.message #388

Closed
3 tasks done
slayernominee opened this issue Sep 27, 2022 · 2 comments
Closed
3 tasks done

Interaction.message #388

slayernominee opened this issue Sep 27, 2022 · 2 comments
Labels
wontfix This will not be worked on

Comments

@slayernominee
Copy link

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

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)

Expected Results

return a discord.Message Type

Actual Results

return None

System Information

  • Python v3.10.6-final
  • discord.py-self v2.0.0-alpha
    • discord.py-self pkg_resources: v2.0.0a2
  • aiohttp v3.8.1
  • system info: Linux 5.18.19-3-MANJARO ✨ add trusted users kwarg to bot class #1 SMP PREEMPT_DYNAMIC Tue Aug 23 15:56:13 UTC 2022

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

@slayernominee slayernominee added the unconfirmed bug Unconfirmed bug label Sep 27, 2022
@dolfies
Copy link
Owner

dolfies commented Oct 23, 2022

interaction.message is a helper that attempts to get the message from cache. It isn't guaranteed to return anything.

@dolfies dolfies closed this as completed Oct 23, 2022
@dolfies dolfies closed this as not planned Won't fix, can't repro, duplicate, stale Oct 23, 2022
@dolfies dolfies added wontfix This will not be worked on and removed unconfirmed bug Unconfirmed bug labels Oct 23, 2022
@njho
Copy link

njho commented Nov 5, 2023

What's the workaround for this in order to retrieve that message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants