Deprecated
API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
import { type RESTOAuth2AdvancedBotAuthorizationQuery } from "https://deno.land/x/discord_api_types@0.37.18/rest/v8/oauth2.ts";
Properties
client_id: Snowflake
scope:
| OAuth2Scopes.Bot
| `${string}${" " | "%20"}${OAuth2Scopes.Bot}`
| `${OAuth2Scopes.Bot}${" " | "%20"}${string}`
| `${string}${" " | "%20"}${OAuth2Scopes.Bot}${string}${" " | "%20"}`
This assumes you include the bot
scope alongside others (like identify
for example)
optional
permissions: PermissionsThe required permissions bitfield, stringified
optional
guild_id: Snowflake