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
496 stars 70 forks source link

Fixes #412 #413

Closed kittcodes closed 3 years ago

kittcodes commented 3 years ago

CreateMessageParams that are automatically created (via .Send, .SendMsg, and .Reply) should now respect Message.MessageReference where appropriate. This was previously not included so it wasn't very intuitive for how to quickly reply to a message and include that original message as a reference.

Description

Included code that copies MessageReference from the Message object to the CreateMessageParams object when other params are copied.

Type of change

Benchmarks

N/A

Checklist: