yourWaifu/sleepy-discord

[ASK] HOW TO REPLY A MESSAGE?

codeszsoft opened this issue · 1 comments

How to reply a message?

There's more than a few ways to do an inline reply.
First way is by using slash commands.
2nd way is by using the SleepyDiscord::SendMessageParams class

SleepyDiscord::SendMessageParams params;
params.content = "Hello there";
params.channelID = message.channelID;
// Set inline reply data
params.messageReference.messageID = message.ID;
params.messageReference.channelID = message.channelID;
params.messageReference.serverID = message.serverID;
params.allowedMentions = {{}}; // Do not mention anyone
// Send the message
client.sendMessage(params);