Skip to main content

Overview

Button roles attach clickable buttons to a message. A member clicks one, gets the role, clicks again to drop it. Common uses are pronoun pickers, ping opt-ins, and verification gates.
Buttons can only be attached to messages confine sent. Discord doesn’t allow bots to edit other users’ messages, so point these commands at an embed you built with confine. See Embed Scripting for building one.
You need Manage Roles to run these commands, and confine needs it too.

Adding a button

Targeting the message

Two formats work:

Styles

Pick one of green, blurple, gray, or red. This is purely visual — it doesn’t change what the button does.

Labels and emojis

Labels cap at 80 characters. Emojis can be standard Unicode or a custom emoji, as long as it’s one confine has access to.

Limits

Roles confine won’t accept

Some roles are blocked on purpose:
A self-assignable role that grants moderation power is a security hole, so confine rejects any role carrying one of these:administrator, manage_guild, manage_channels, manage_messages, kick_members, ban_members, moderate_members, manage_roles, manage_threads, view_audit_log, manage_webhooks, manage_expressions, mention_everyone
Confine can’t assign a role positioned higher than its own. Drag confine’s role above it in your server settings.
Unless you’re the server owner, you can’t set up a button for a role that sits at or above your highest role.
@everyone and roles tied to bots, boosts, or integrations can’t be used.

Removing buttons

A single button

Run ,buttonrole list first to find the number you want.

Every button on one message

Every button in the server

Confine asks you to confirm with a button first — the prompt only listens to whoever ran it and expires after 30 seconds. On confirmation it strips the components from every affected message, not just the database entries. ,buttonrole clear does the same thing.

Viewing what’s configured

,buttonrole list pages through every button role in the server with its message link, role, label, emoji, and style.