Query
query WorkspaceDiscordChannelInstallationInfo($redirectUrl: String!) {
workspaceDiscordChannelInstallationInfo(redirectUrl: $redirectUrl) {
installationUrl
}
}Variables
{
"redirectUrl": "string"
}Response
{
"data": {
"workspaceDiscordChannelInstallationInfo": {
"installationUrl": "string"
}
}
}Queries
workspaceDiscordChannelInstallationInfo
Returns the Discord OAuth installation URL needed to connect a Discord server (guild) to this workspace.
Redirect the user to the returned URL to begin the OAuth flow; after authorization Discord will redirect back to the provided redirectUrl with an authCode you can pass to createWorkspaceDiscordChannelIntegration.
QUERY
workspaceDiscordChannelInstallationInfo(redirectUrl: String!): WorkspaceDiscordChannelInstallationInfo!Arguments
redirectUrl
String!
required
installationUrl
String!
Query
query WorkspaceDiscordChannelInstallationInfo($redirectUrl: String!) {
workspaceDiscordChannelInstallationInfo(redirectUrl: $redirectUrl) {
installationUrl
}
}Variables
{
"redirectUrl": "string"
}Response
{
"data": {
"workspaceDiscordChannelInstallationInfo": {
"installationUrl": "string"
}
}
}Was this page helpful?

