SinisterRectus / Discordia

Discord API library written in Lua for the Luvit runtime environment
MIT License
688 stars 144 forks source link

Make "message:reply" reply to the user instead of doing "self._parent:send" #385

Closed hmm-what25 closed 1 year ago

hmm-what25 commented 1 year ago

Can you change message:reply to reply to the user instead of just sending the message to the current channel that the user's message is in? image This is what I found in the Message class, I don't know why you decided to make it so it just sends a message instead of replying to the user.

RiskoZoSlovenska commented 1 year ago

Discordia was designed long before message replies were a thing in Discord, and as such, Message:reply() did the next best thing: send a message in the same channel. Changing the behaviour now is a breaking change and most likely isn't something that's going to happen in 2.x. However, this should be "fixed" in 3.0.

Bilal2453 commented 1 year ago

This is what I found in the Message class, I don't know why you decided to make it so it just sends a message instead of replying to the user.

Welcome to Discord... where replies have been added only recently!

This was in Discordia well before Discord added their new reply system, so it was just a shortcut to Member.channel:send().

If you want to reply, which is called "reference message" in the Discord API, use the reference field documented here https://github.com/SinisterRectus/Discordia/wiki/Managing-messages#reference.

hmm-what25 commented 1 year ago

Ok thanks.