andersfylling / disgord

Go module for interacting with the documented Discord's bot interface; Gateway, REST requests and voice
BSD 3-Clause "New" or "Revised" License
502 stars 71 forks source link

MessageReference is discarded when creating a Message #412

Closed kittcodes closed 2 years ago

kittcodes commented 2 years ago

Describe the bug When attempting to create a Reply (message reference), the MessageReference isn't captured by the CreateMessageParams.

Expected behavior MessageReference would exist on the newly-created reply

Desktop (please complete the following information):

Additional context This is corrected by capturing params.MessageReference = m.MessageReference anywhere that's appropriate for creating / sending messages