artibot
Version:
Modern, fast and modular open-source Discord bot
17 lines • 646 B
JavaScript
import { PermissionsBitField } from "discord.js";
/** Add reaction to message */
export default async function execute(interaction, { localizer }) {
if (interaction.inGuild() && !interaction.memberPermissions.has(PermissionsBitField.Flags.ManageMessages)) {
await interaction.reply({
content: localizer._("You do not have the permission to execute this command!"),
ephemeral: true
});
return;
}
await interaction.targetMessage.react("✅");
await interaction.reply({
content: localizer._("Reaction added"),
ephemeral: true
});
}
//# sourceMappingURL=react.js.map