Skip to content

fix: auto-delete the "no text" suggestion message after 5s - #44

Merged
ebcq merged 1 commit into
cppdiscord:mainfrom
transicle:patch-2
Aug 25, 2026
Merged

fix: auto-delete the "no text" suggestion message after 5s#44
ebcq merged 1 commit into
cppdiscord:mainfrom
transicle:patch-2

Conversation

@transicle

Copy link
Copy Markdown
Contributor

The fix I applied was simply deleting the message after 5 seconds, giving the user plenty of time to read the sentence, and understanding how to fix their suggestion.

The reason the message failed to be an ephemeral message was because it did not originate from an interaction. If you really wanted ephemeral, you would need your own /suggestion command (or something similar).

image

Both messages shown have been automatically deleted by the bot.

@ebcq ebcq left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx!

@ebcq
ebcq merged commit fa3c815 into cppdiscord:main Aug 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants