Role management requires your bot to have admin permissions in the space. All role operations are onchain transactions that require gas.
Creating Roles
CreateRoleParams
Token-Gated Roles
Create roles that require users to hold specific tokens using theRules API:
bot.addRoleToChannel(channelId, roleId). This will gate the channel to only users who hold the required tokens.