yourWaifu / sleepy-discord

C++ library for the Discord chat client. Please use Rust for new bots
https://yourWaifu.github.io/sleepy-discord/
MIT License
708 stars 93 forks source link

How to reply to a message or mention the message author? #247

Closed zZDOCZz closed 2 years ago

zZDOCZz commented 2 years ago

title.

yourWaifu commented 2 years ago

I'm not sure it's in the master version but in the develop version, you can set the message reference value. As for mentioning use the Discord message format in the message.content string

yourWaifu commented 2 years ago

https://yourwaifu.dev/sleepy-discord/docs/reference/Classes/struct_sleepy_discord_1_1_message#variable-messagereference https://discord.com/developers/docs/reference#message-formatting

zZDOCZz commented 2 years ago

i found a way to mention the message author idk how but i just wanted to test this and it worked lol

sendMessage(message.channelID, "<@!"+message.author.ID+">");

yourWaifu commented 2 years ago

Yeah that's the Discord message format