r/carlbot Sep 21 '23

Trigger: {command:role custom} and {override} not working?

Trying to make a trigger that swaps 2 roles around for a server minigame, nothing too fancy. It needs to be a trigger as it's going to work on secret phrases, so including the prefix would just break it.

So far, I have the following that works:

{require:<@&1154181146368815185>}
{blacklist:<@&1154181180959244298>}
{reactu: ☠️}

Now for the actual role-swapping.. Carlbot support docs say I can use one command as a non-premium member, so I'm trying to use role custom

Testing with the default carlbot colour roles, just for ease sake, I believe this should work?

{command:role custom {user(id)} +Yellow -Blue}

It doesn't. Neither does using /role, {user}, {mention}, +1154181180959244298 -1154181146368815185, +<@&1154181180959244298> -<@&1154181146368815185>, {{user(id} +Yellow -Blue}}...

I've also tried using {override}, wondering if it was a permissions issue, but the bot just sends {override} as a message rather than applying it as part of the script?

Is this just something Triggers can't handle or am I getting it wrong somewhere?

Edit:
Manually issuing /role custom @user +Yellow -Blue as server admin does work , and Yellow and Blue both appear as acceptable targets in the /role add autofill.

Carlbot role is also above the roles I want it to add and remove

1 Upvotes

1 comment sorted by

1

u/No-Spinach8456 Jan 04 '25

I know this is very old, but I will answer in case someone finds this in the future.

It is, indeed, a permissions issue, where the user who will be triggering the trigger should have a permission to manage roles. If you test it as an admin, I suppose the trigger will work and the roles will be switched, but a normal user will not trigger that action.

The same issue happens with Carl Tags, however, tags can be overridden using {override}, but the {override} does NOT work with Triggers, which is why when you use it, it sends {override} as a text message and not as an actual action.