Add example of emojiID to MessageReactionAdd (#798)

This commit is contained in:
Ceriath 2022-04-08 00:23:20 +02:00 committed by GitHub
parent 79784e28e8
commit fb0692b08d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2310,7 +2310,7 @@ func (s *Session) WebhookMessageDelete(webhookID, token, messageID string) (err
// MessageReactionAdd creates an emoji reaction to a message.
// channelID : The channel ID.
// messageID : The message ID.
// emojiID : Either the unicode emoji for the reaction, or a guild emoji identifier.
// emojiID : Either the unicode emoji for the reaction, or a guild emoji identifier in name:id format (e.g. "hello:1234567654321")
func (s *Session) MessageReactionAdd(channelID, messageID, emojiID string) error {
// emoji such as #⃣ need to have # escaped