Skip to content

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

Open
transicle wants to merge 1 commit into
cppdiscord:mainfrom
transicle:patch-2
Open

fix: auto-delete the "no text" suggestion message after 5s#44
transicle wants to merge 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.

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.

1 participant