Skip to content

Commit 1dd0759

Browse files
author
Vitor
committed
refactor: move webhook.incoming to OAuth2GuildScopes
1 parent f9a47ed commit 1dd0759

File tree

4 files changed

+20
-28
lines changed

4 files changed

+20
-28
lines changed

deno/payloads/v10/oauth2.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export enum OAuth2PublicUserScopes {
8383
}
8484

8585
/**
86-
* Applications can be added to a guild with these scopes by members with the `Manage Server` permission
86+
* Applications can be added to a guild with these scopes by members with the `Manage Server` permission, creating an [integration](https://discord.com/developers/docs/resources/guild#integration-object)
8787
*
8888
* See https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes-guild-scopes
8989
*/
@@ -98,11 +98,13 @@ export enum OAuth2GuildScopes {
9898
* For oauth2 bots, this puts the bot in the user's selected guild by default
9999
*/
100100
Bot = 'bot',
101+
/**
102+
* This generates a webhook that is returned in the oauth token response for authorization code grants
103+
*/
104+
WebhookIncoming = 'webhook.incoming',
101105
}
102106

103107
/**
104-
* These scopes can be used to do other actions with Discord's OAuth2 system
105-
*
106108
* See https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes-other-scopes
107109
*/
108110
export enum OAuth2OtherScopes {
@@ -112,10 +114,6 @@ export enum OAuth2OtherScopes {
112114
* See https://discord.com/developers/docs/interactions/application-commands
113115
*/
114116
ApplicationsCommandsUpdate = 'applications.commands.update',
115-
/**
116-
* This generates a webhook that is returned in the oauth token response for authorization code grants
117-
*/
118-
WebhookIncoming = 'webhook.incoming',
119117
}
120118

121119
/**

deno/payloads/v9/oauth2.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export enum OAuth2PublicUserScopes {
8383
}
8484

8585
/**
86-
* Applications can be added to a guild with these scopes by members with the `Manage Server` permission
86+
* Applications can be added to a guild with these scopes by members with the `Manage Server` permission, creating an [integration](https://discord.com/developers/docs/resources/guild#integration-object)
8787
*
8888
* See https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes-guild-scopes
8989
*/
@@ -98,11 +98,13 @@ export enum OAuth2GuildScopes {
9898
* For oauth2 bots, this puts the bot in the user's selected guild by default
9999
*/
100100
Bot = 'bot',
101+
/**
102+
* This generates a webhook that is returned in the oauth token response for authorization code grants
103+
*/
104+
WebhookIncoming = 'webhook.incoming',
101105
}
102106

103107
/**
104-
* These scopes can be used to do other actions with Discord's OAuth2 system
105-
*
106108
* See https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes-other-scopes
107109
*/
108110
export enum OAuth2OtherScopes {
@@ -112,10 +114,6 @@ export enum OAuth2OtherScopes {
112114
* See https://discord.com/developers/docs/interactions/application-commands
113115
*/
114116
ApplicationsCommandsUpdate = 'applications.commands.update',
115-
/**
116-
* This generates a webhook that is returned in the oauth token response for authorization code grants
117-
*/
118-
WebhookIncoming = 'webhook.incoming',
119117
}
120118

121119
/**

payloads/v10/oauth2.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export enum OAuth2PublicUserScopes {
8383
}
8484

8585
/**
86-
* Applications can be added to a guild with these scopes by members with the `Manage Server` permission
86+
* Applications can be added to a guild with these scopes by members with the `Manage Server` permission, creating an [integration](https://discord.com/developers/docs/resources/guild#integration-object)
8787
*
8888
* See https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes-guild-scopes
8989
*/
@@ -98,11 +98,13 @@ export enum OAuth2GuildScopes {
9898
* For oauth2 bots, this puts the bot in the user's selected guild by default
9999
*/
100100
Bot = 'bot',
101+
/**
102+
* This generates a webhook that is returned in the oauth token response for authorization code grants
103+
*/
104+
WebhookIncoming = 'webhook.incoming',
101105
}
102106

103107
/**
104-
* These scopes can be used to do other actions with Discord's OAuth2 system
105-
*
106108
* See https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes-other-scopes
107109
*/
108110
export enum OAuth2OtherScopes {
@@ -112,10 +114,6 @@ export enum OAuth2OtherScopes {
112114
* See https://discord.com/developers/docs/interactions/application-commands
113115
*/
114116
ApplicationsCommandsUpdate = 'applications.commands.update',
115-
/**
116-
* This generates a webhook that is returned in the oauth token response for authorization code grants
117-
*/
118-
WebhookIncoming = 'webhook.incoming',
119117
}
120118

121119
/**

payloads/v9/oauth2.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export enum OAuth2PublicUserScopes {
8383
}
8484

8585
/**
86-
* Applications can be added to a guild with these scopes by members with the `Manage Server` permission
86+
* Applications can be added to a guild with these scopes by members with the `Manage Server` permission, creating an [integration](https://discord.com/developers/docs/resources/guild#integration-object)
8787
*
8888
* See https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes-guild-scopes
8989
*/
@@ -98,11 +98,13 @@ export enum OAuth2GuildScopes {
9898
* For oauth2 bots, this puts the bot in the user's selected guild by default
9999
*/
100100
Bot = 'bot',
101+
/**
102+
* This generates a webhook that is returned in the oauth token response for authorization code grants
103+
*/
104+
WebhookIncoming = 'webhook.incoming',
101105
}
102106

103107
/**
104-
* These scopes can be used to do other actions with Discord's OAuth2 system
105-
*
106108
* See https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes-other-scopes
107109
*/
108110
export enum OAuth2OtherScopes {
@@ -112,10 +114,6 @@ export enum OAuth2OtherScopes {
112114
* See https://discord.com/developers/docs/interactions/application-commands
113115
*/
114116
ApplicationsCommandsUpdate = 'applications.commands.update',
115-
/**
116-
* This generates a webhook that is returned in the oauth token response for authorization code grants
117-
*/
118-
WebhookIncoming = 'webhook.incoming',
119117
}
120118

121119
/**

0 commit comments

Comments
 (0)