samp-discord-connector icon indicating copy to clipboard operation
samp-discord-connector copied to clipboard

Set role users

Open Isaht02 opened this issue 3 years ago • 1 comments

is there any function set role for users? i can't see any function for that. i wanna when user chat message bot will provide role for that user.

Isaht02 avatar Dec 14 '21 04:12 Isaht02

Broh, try this.

new DCC_Role:Role,
            DCC_Guild:Server;

Role = DCC_FindRoleById("Role ID");
Server = DCC_FindGuildById("Your Server ID");
DCC_AddGuildMemberRole(Server, USERID, Role);

In USER ID, put the user ID of the discord. I'm brazilian so my english is not perfect, but if you want help call me on discord ( blueN#2464 ).

devbluen avatar Jan 08 '22 14:01 devbluen