Skip to content

[BUG] Fix ctx.send("", delete_after) for ephemeral message #1465

@BigChungus888

Description

@BigChungus888

Library Version

5.7.0

Describe the Bug

ValueError("Cannot delete ephemeral message without interaction context parameter")

Steps to Reproduce

ctx is SlashContext

await ctx.send("some", delete_after=2)

Expected Results

Delete the interaction message after 2 seconds.

Minimal Reproducible Code

await ctx.send("some", delete_after=2)

Traceback

ValueError("Cannot delete ephemeral message without interaction context parameter")

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.
  • I have attempted to debug this myself, and I believe this issue is with the library

Additional Information

I think it can be fixed if a context is passed. Perhaps add a way to pass context or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions