API v9InterfacesRESTOAuth2AdvancedBotAuthorizationQueryVersion: 0.37.12On this pageRESTOAuth2AdvancedBotAuthorizationQuery https://discord.com/developers/docs/topics/oauth2#advanced-bot-authorizationIndex Propertiesclient_iddisable_guild_selectguild_idpermissionsredirect_uriresponse_typescopeProperties client_idclient_id: stringoptionaldisable_guild_selectdisable_guild_select?: booleanoptionalguild_idguild_id?: stringoptionalpermissionspermissions?: stringThe required permissions bitfield, stringifiedoptionalredirect_uriredirect_uri?: stringresponse_typeresponse_type: stringscopescope: `${string} bot` | `${string}%20bot` | `bot ${string}` | `bot%20${string}` | `${string} bot${string} ` | `${string} bot${string}%20` | `${string}%20bot${string} ` | `${string}%20bot${string}%20` | BotThis assumes you include the bot scope alongside others (like identify for example)
https://discord.com/developers/docs/topics/oauth2#advanced-bot-authorization