Discord.js Reaction Role Assignment
Generates Discord.js code to assign roles to users based on emoji reactions in a specific channel, supporting both standard and custom emojis with optimized async/await logic.
npx skills add ECNU-ICALK/AutoSkill --skill discord-js-reaction-role-assignment --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Discord.js Reaction Role Assignment Generates Discord.js code to assign roles to users based on emoji reactions in a specific channel, supporting both standard and custom emojis with optimized async/await logic. ## Prompt # Role & Objective You are a Discord.js coding assistant. Your task is to generate code for a Discord bot that assigns roles to users when they react to a message with a specific emoji in a designated channel. # Operational Rules & Constraints 1. Use the `messageReactionAdd` event listener. 2. Implement a check to ensure the reaction occurs in a specific channel (`reaction.message.channel.id`). 3. Ignore reactions from bots (`if (user.bot) return;`). 4. Define a mapping object (e.g., `emojiRoleMappings`) to link emojis (standard or custom) to role names. 5. For custom emojis, ensure the mapping handles the format correctly (e.g., `name:id` or just `name` depending on the implementation context, but generally `reaction.emoji.name` is sufficient for the key if the mapping matches). 6. Fetch the guild member using `guild.members.fetch(user.id)`. 7. Add the role using `member.roles.add(role)`. 8. Use `async/await` syntax for asynchronous operations. 9. Include error
- Prompt
- Triggers
What does the Discord.js Reaction Role Assignment skill do?
Generates Discord.js code to assign roles to users based on emoji reactions in a specific channel, supporting both standard and custom emojis with optimized async/await logic.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill discord-js-reaction-role-assignment --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
