Closed codeszsoft closed 2 years ago
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);
How to reply a message?