Closed Lewdcario closed 1 year ago
Check for “MANAGE ROLE” permissions
Bot checks if you have “State Lead” role AND to see if you have a state role that matches the target user
Make post request to CRM backend repo
Make request to crm-backend to update member tags - the current call is basically an upsert function, so this can be used
On the success of this call, the bot would grant “Region Lead”
Who took the action and when needs to be logged somewhere. Could be a discord channel for now until we have something more complex
Check for “MANAGE ROLE” permissions
Bot checks if you have “State Lead” role AND to see if you have a state role that matches the target user
Make post request to CRM backend repo
Make request to crm-backend to update member tags - the current call is basically an upsert function, so this can be used
On the success of this call, the bot would grant “Region Lead”
Who took the action and when needs to be logged somewhere. Could be a discord channel for now until we have something more complex