SendMessage
SendMessage API
const { osiris } = require("../../api/osiris");
// Inside the command
// The XSessionToken is an argument for the "execute" function,
// so you automatically have it whenever creating a command
const Channel = data.ChannelId;
osiris.sendMessage(XSessionToken, Channel, "Message").then((message) => {
console.log("[REVOLT]: SENT!");
})Last updated