π°Reactions
They're great to add a bit of personality to messages and are easy to deal with!
client.on("interactionCreate", async interaction => {
if (!(interaction instanceof CommandInteraction)) return;
if (interaction.data.name === "hi") {
const message = await interaction.createMessage({ content: "Hi!" });
await message.createReaction(90001206) // wave emoji;
}
});// We assume that you have a declared "message" constant in this scope
await message.deleteReaction(90001206) // removes the wave emoji;// We assume that you have a declared "message" constant in this scope
await message.deleteReaction(90001206, "their user id") // removes the wave emoji;Last updated