Skip to content

TGX-Salim/go-discord-role-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Go Role API

Env Variables:

  • DISCORD_TOKEN - Discord Bot Token
  • GUILD_ID - Discord Server/Guild ID
  • API_SECRET - API Key

API Routes

/api/role/add/{userID}/{roleID} - Add role to user

/api/role/remove/{userID}/{roleID} - Remove role from user

X-API-Key is required if API_SECRET env variable is set.


Developed by @akatiggerx04