Get replied message on MessageEvent using discordgo

Viewed 276

I am creating a Discord bot that should accept commands that react to a replied message.

What I mean is:

  1. the user would reply to message A with a command (let this be message B replying to A)
  2. the bot would get message B and find out message A's ID so it can later analyse it.

I'm using the discordgo library for Golang. Tried MessageReference without any luck.

All I've found so far was Message.Type which is indeed equals to MessageType.MessageTypeReply. So I know if a message is a reply but I can't get the ID of the replied message.

0 Answers
Related