Skip to content

How to use slash commands to make the bot post a "Only you can see this" message in a channel #1138

Discussion options

You must be logged in to vote

The answer is yes, you can replicate this in DiscordGo!
While it's not shown in the example, InteractionResponse has a Flags field, also you can use int(discordgo.MessageFlagsEphemeral) (currently you must convert flag to an integer, I think we'll fix that in the next release) instead of 64.

Additionally I would recommend going through the documentation, since examples might not showcase all the new features.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by StateGovernment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants