Skip to main content
Module

x/discord_api_types/v8.ts>RESTOAuth2BotAuthorizationQuery

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface RESTOAuth2BotAuthorizationQuery
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { type RESTOAuth2BotAuthorizationQuery } from "https://deno.land/x/discord_api_types@0.37.11/v8.ts";

Properties

client_id: Snowflake

Your app's client id

scope:
| OAuth2Scopes.Bot
| `${string}${" " | "%20"}${OAuth2Scopes.Bot}`
| `${OAuth2Scopes.Bot}${" " | "%20"}${string}`
| `${string}${" " | "%20"}${OAuth2Scopes.Bot}${string}${" " | "%20"}`

Needs to include bot for the bot flow

optional
permissions: Permissions

The permissions you're requesting

See https://discord.com/developers/docs/topics/permissions

optional
guild_id: Snowflake

Pre-fills the dropdown picker with a guild for the user

optional
disable_guild_select: boolean

true or false—disallows the user from changing the guild dropdown