Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for sending message reply #842

Merged
merged 1 commit into from
Nov 22, 2020
Merged

Conversation

Zabqer
Copy link
Contributor

@Zabqer Zabqer commented Nov 20, 2020

Added the ability to send messages with a response (replying to another message). According to the message_reference field in API

https://discord.com/developers/docs/resources/channel#create-message-params

Code example:

session.ChannelMessageSendComplex(channelID, &discordgo.MessageSend{
	Content:   "Test",
	Reference: message.Reference(),
})

Or:

session.ChannelMessageSendReply(channelID, "Test", message.Reference())

@FedorLap2006
Copy link
Collaborator

Great idea. It will be really useful!

@CarsonHoffman
Copy link
Collaborator

Thank you for the addition; the reply feature is very cool!

@CarsonHoffman CarsonHoffman merged commit 31f70d4 into bwmarrin:master Nov 22, 2020
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.

None yet

4 participants