Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

[BUG] Component response is not emphemeral #269

Closed
Kigstn opened this issue Feb 9, 2022 · 3 comments
Closed

[BUG] Component response is not emphemeral #269

Kigstn opened this issue Feb 9, 2022 · 3 comments
Assignees
Labels
Bug::Library A bug in the library

Comments

@Kigstn
Copy link
Member

Kigstn commented Feb 9, 2022

Describe the bug
A clear and concise description of what the bug is.
ephemeral=True is passed and the message flag is set, yet the message is not hidden.
image
image

To Reproduce
The code you used to produce this bug, must be in a code-block:
Respond to a ComponentContext with ctx.send("stuff", **ephemeral=True)**

Expected behaviour
A clear and concise description of what you expected to happen.
A hidden message appears

Additional information
Any other information about the problem.

@leestarb leestarb added the Bug::Library A bug in the library label Feb 10, 2022
@LordOfPolls
Copy link
Member

I cannot replicate this. Check you're not using AutoDefer

image
Code used:

@message_command()
async def send_button(ctx: MessageContext):
    await ctx.send("Test Button", components=Button(1, "Test Button", custom_id="Test1"))


@component_callback("Test1")
async def test_button_callback(ctx: ComponentContext):
    await ctx.send("stuff", ephemeral=True)

@LordOfPolls LordOfPolls added the On-Hold This is waiting for a condition to be met before more work can be done label Feb 11, 2022
@benwoo1110
Copy link
Contributor

@Kigstn I think it will be good if you can show the full code used to reproduce this issue.

@Kigstn
Copy link
Member Author

Kigstn commented Feb 17, 2022

Forgot to close this. Was my bad, I did not defer with ephemeral=True

@Kigstn Kigstn closed this as completed Feb 17, 2022
@leestarb leestarb removed the On-Hold This is waiting for a condition to be met before more work can be done label Feb 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug::Library A bug in the library
Projects
None yet
Development

No branches or pull requests

4 participants