# Give or take roles when a ticket opens or closes (/tickets/ticket-roles)







A role action gives or takes a Discord role when something happens to a ticket. It always changes the roles of the member who opened the ticket, even when the event is a staff member claiming it. A common pair: add an Open Ticket role when the ticket opens, and remove it when it closes.

<Steps>
  <Step>
    ### Open the panel [#open-the-panel]

    Open your [dashboard](https://tickety.top/dashboard) and pick your server. In the sidebar, under **Tickets**, click **Ticket Panels**, then click the panel.

        <img alt="A panel on the Ticket Panels page" src="__img0" />
  </Step>

  <Step>
    ### Add an action [#add-an-action]

    Click the **Roles** tab under the page title. Under **Role Management**, press **Create an Action**. A new row appears.

        <img alt="Create an Action under Role Management" src="__img1" />
  </Step>

  <Step>
    ### Pick the role [#pick-the-role]

    Open &#x2A;*Select a role...** in the new row and pick the role. Roles shown in red sit above Tickety's own role in Discord, and Tickety cannot give or take them.
  </Step>

  <Step>
    ### Pick when it happens [#pick-when-it-happens]

    Open &#x2A;*Select an event...** and pick **On Create**, **On Close**, **On Claim** or **On Unclaim**.
  </Step>

  <Step>
    ### Pick add or remove [#pick-add-or-remove]

    Press **Add** to give the role, or **Remove** to take it away.
  </Step>

  <Step>
    ### Save [#save]

    Add more actions the same way, then press **Save Changes** in the bar at the bottom of the page. Actions also apply to tickets that are already open, from their next event on.
  </Step>
</Steps>

To delete an action, press the bin on its row, then **Delete Action**.

## It did not work? [#it-did-not-work]

<Accordions>
  <Accordion title="A message says the role sits higher than Tickety's own role">
    Discord only lets a bot hand out roles below its own. In Discord, open **Server Settings**, then **Roles**, and drag Tickety's role above that role.
  </Accordion>

  <Accordion title="Nothing happens and there is no error">
    Tickety needs the Manage Roles permission, and the role must still be below Tickety's role. Role actions fail silently when either is missing.
  </Accordion>

  <Accordion title="The staff member who claimed got no role">
    Role actions always change the member who opened the ticket, never the claimer.
  </Accordion>

  <Accordion title="A role is added and removed on the same event, and nothing happens">
    Adding and removing the same role on one event cancel each other out. Remove one of the two actions.
  </Accordion>
</Accordions>
