assign_discord_role
Give a Discord member a role destructive
Description
Give one member of the brand's Discord server a role. userId is the member id (search_discord_members); role is its id or exact name. A role can unlock channels and powers, so call it WITHOUT confirm first: nothing changes and you get a sentence naming the member, what the role carries and how many members hold it. The role must sit below the Hermoso role. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
brand | string | WHICH PROFILE the post lives in, for THIS CALL ONLY: an id or exact name from list_brands, needed when it was published in a profile this connection is not pinned to. A name that matches no profile, or two, is REFUSED and nothing is done. |
discordServer | string | which Discord server (id or name) when the bot is in several |
userIdrequired | string | the member id (search_discord_members) |
rolerequired | string | the role id or exact name |
confirm | boolean | true only once the user agreed |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/assign_discord_role.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"assign_discord_role","arguments":{"userId":"<string>","role":"<string>"}}}
CLI
hermoso call assign_discord_role --json '{"userId":"<string>","role":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
search_discord_membersFind a Discord server memberdelete_discord_roleDelete a Discord roleremove_discord_roleTake a role away from a Discord memberupdate_discord_roleEdit a Discord rolelist_discord_membersList Discord server memberscreate_discord_roleCreate a Discord rolelist_discord_rolesList Discord roleslist_discord_pinsList pinned Discord messagessend_discord_dmSend a Discord direct messagepin_discord_messagePin a Discord message