Closed boylett closed 3 weeks ago
The method you are using is generating an authorisation URL (code grant) which you can see by visiting the documentation associated with the method.
It seems what you want is an application invite URL. That is governed by the RESTOAuth2BotAuthorizationQuery
type and is not in the core package as it is not an API method.
Sorry—closed by accident. Leaving open to see if anyone else has any thoughts just in case.
I made a mistake here so happy to close this issue. Sorry to waste your time.
FFR: To generate an authorization URL we should create it manually as per documentation. (Docs for bot link generation)
Which package is this bug report for?
core
Issue description
generateAuthorizationURL
on the OAuth2API instance, supplying apermissions
parameter for bot installationObject literal may only specify known properties, and 'permissions' does not exist in type 'RESTOAuth2AuthorizationQuery'.
Additionally, RESTOAuth2BotAuthorizationQuery is available in the documentation, but is not exported by
rest/v10/oauth2.ts
.Code sample
Versions
Issue priority
Low (slightly annoying)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
No Intents
I have tested this issue on a development release