Skip to content

Commit a0e00ff

Browse files
chore(deps): update actions/labeler action to v5 (#893)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Vlad Frangu <[email protected]>
1 parent 45e2d17 commit a0e00ff

30 files changed

+204
-138
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
- Using welcoming and inclusive language
18-
- Being respectful of differing viewpoints and experiences
19-
- Gracefully accepting constructive criticism
20-
- Focusing on what is best for the community
21-
- Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
- The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
- Trolling, insulting/derogatory comments, and personal or political attacks
28-
- Public or private harassment
29-
- Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
- Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

.github/COMMIT_CONVENTION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ The scope could be anything specifying the place of the commit change. For examp
7474

7575
The subject contains a succinct description of the change:
7676

77-
- use the imperative, present tense: "change" not "changed" nor "changes"
78-
- don't capitalize the first letter
79-
- no dot (.) at the end
77+
- use the imperative, present tense: "change" not "changed" nor "changes"
78+
- don't capitalize the first letter
79+
- no dot (.) at the end
8080

8181
### Body
8282

.github/CONTRIBUTING.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,39 @@
22

33
**The issue tracker is only for bug reports and enhancement suggestions. If you have a question, please ask it in the [Discord server](https://discord.gg/djs) instead of opening an issue, or on [GitHub Discussions](https://github.com/discordjs/discord-api-types/discussions) – you will get redirected there anyway.**
44

5-
- [Code of Conduct](https://github.com/discordjs/discord-api-types/blob/main/.github/CODE_OF_CONDUCT.md)
6-
- [Pull Request Guidelines](#pull-request-guidelines)
7-
- [Development Setup](#development-setup)
8-
- [Project Structure](#project-structure)
9-
- [Contributing Tests](#contributing-tests)
5+
- [Code of Conduct](https://github.com/discordjs/discord-api-types/blob/main/.github/CODE_OF_CONDUCT.md)
6+
- [Pull Request Guidelines](#pull-request-guidelines)
7+
- [Development Setup](#development-setup)
8+
- [Project Structure](#project-structure)
9+
- [Contributing Tests](#contributing-tests)
1010

1111
## Pull Request Guidelines
1212

13-
- Checkout a topic branch from a base branch, e.g. `main`, and merge back against that branch.
13+
- Checkout a topic branch from a base branch, e.g. `main`, and merge back against that branch.
1414

15-
- If adding a new feature:
15+
- If adding a new feature:
1616

17-
- Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first and have it approved before working on it.
17+
- Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first and have it approved before working on it.
1818

19-
- If fixing a bug:
19+
- If fixing a bug:
2020

21-
- If you are resolving a special issue, add `fix/close #xxxx[,#xxxx]` (#xxxx is the issue id) in your PR body for a better release log, e.g.
21+
- If you are resolving a special issue, add `fix/close #xxxx[,#xxxx]` (#xxxx is the issue id) in your PR body for a better release log, e.g.
2222

23-
```
24-
fix(Guild): handle events correctly
23+
```
24+
fix(Guild): handle events correctly
2525
26-
close #28
27-
```
26+
close #28
27+
```
2828
29-
- Provide a detailed description of the bug in the PR. Live demo preferred.
29+
- Provide a detailed description of the bug in the PR. Live demo preferred.
3030
31-
- It's OK to have multiple small commits as you work on the PR - GitHub can automatically squash them before merging.
31+
- It's OK to have multiple small commits as you work on the PR - GitHub can automatically squash them before merging.
3232
33-
- Make sure tests pass!
33+
- Make sure tests pass!
3434
35-
- Commit messages must follow the [commit message convention](./COMMIT_CONVENTION.md) so that changelogs can be automatically generated. Commit messages are automatically validated before commit (by invoking [Git Hooks](https://git-scm.com/docs/githooks) via [husky](https://github.com/typicode/husky)).
35+
- Commit messages must follow the [commit message convention](./COMMIT_CONVENTION.md) so that changelogs can be automatically generated. Commit messages are automatically validated before commit (by invoking [Git Hooks](https://git-scm.com/docs/githooks) via [husky](https://github.com/typicode/husky)).
3636
37-
- No need to worry about code style as long as you have installed the dev dependencies - modified files are automatically formatted with Prettier on commit (by invoking [Git Hooks](https://git-scm.com/docs/githooks) via [husky](https://github.com/typicode/husky)).
37+
- No need to worry about code style as long as you have installed the dev dependencies - modified files are automatically formatted with Prettier on commit (by invoking [Git Hooks](https://git-scm.com/docs/githooks) via [husky](https://github.com/typicode/husky)).
3838
3939
## Development Setup
4040
@@ -48,6 +48,6 @@ $ npm i # install the dependencies of the project
4848

4949
A high level overview of tools used:
5050

51-
- [TypeScript](https://www.typescriptlang.org/) as the development language
52-
- [ESLint](https://eslint.org/) for code-style
53-
- [Prettier](https://prettier.io/) for code formatting
51+
- [TypeScript](https://www.typescriptlang.org/) as the development language
52+
- [ESLint](https://eslint.org/) for code-style
53+
- [Prettier](https://prettier.io/) for code formatting

.github/labeler.yml

Lines changed: 57 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,84 @@
11
chore:
2-
- any: ['*']
3-
all:
4-
[
5-
'!deno/**/*',
6-
'!gateway/**/*',
7-
'!payloads/**/*',
8-
'!rest/**/*',
9-
'!rpc/**/*',
10-
'!tests/**/*',
11-
'!utils/**/*',
12-
'!voice/**/*',
13-
]
2+
- all:
3+
- changed-files:
4+
- all-globs-to-any-file:
5+
- '*'
6+
- '!deno/**/*'
7+
- '!gateway/**/*'
8+
- '!payloads/**/*'
9+
- '!rest/**/*'
10+
- '!rpc/**/*'
11+
- '!tests/**/*'
12+
- '!utils/**/*'
13+
- '!voice/**/*'
1414

1515
ci:
16-
- .github/**/*
17-
- .husky/**/*
18-
- scripts/actions/**/*
16+
- changed-files:
17+
- any-glob-to-any-file:
18+
- .github/**/*
19+
- .husky/**/*
20+
- scripts/actions/**/*
1921

2022
dependencies:
21-
- package.json
22-
- package-lock.json
23-
- website/package.json
24-
- website/package-lock.json
23+
- changed-files:
24+
- any-glob-to-any-file:
25+
- package.json
26+
- package-lock.json
27+
- website/package.json
28+
- website/package-lock.json
2529

2630
'topic:deno':
27-
- scripts/deno.mjs
28-
- scripts/actions/report-deno-not-ran.mjs
31+
- changed-files:
32+
- any-glob-to-any-file:
33+
- scripts/deno.mjs
34+
- scripts/actions/report-deno-not-ran.mjs
2935

3036
'topic:gateway':
31-
- gateway/**/*
37+
- changed-files:
38+
- any-glob-to-any-file:
39+
- gateway/**/*
3240

3341
'topic:payloads':
34-
- payloads/**/*
42+
- changed-files:
43+
- any-glob-to-any-file:
44+
- payloads/**/*
3545

3646
'topic:rest':
37-
- rest/**/*
47+
- changed-files:
48+
- any-glob-to-any-file:
49+
- rest/**/*
3850

3951
'topic:rpc':
40-
- rpc/**/*
52+
- changed-files:
53+
- any-glob-to-any-file:
54+
- rpc/**/*
4155

4256
'topic:scripts':
43-
- scripts/**/*
57+
- changed-files:
58+
- any-glob-to-any-file:
59+
- scripts/**/*
4460

4561
'topic:tests':
46-
- tests/**/*
62+
- changed-files:
63+
- any-glob-to-any-file:
64+
- tests/**/*
4765

4866
'topic:utils':
49-
- utils/**/*
67+
- changed-files:
68+
- any-glob-to-any-file:
69+
- utils/**/*
5070

5171
'topic:voice':
52-
- voice/**/*
72+
- changed-files:
73+
- any-glob-to-any-file:
74+
- voice/**/*
5375

5476
'topic:globals':
55-
- globals.ts
77+
- changed-files:
78+
- any-glob-to-any-file:
79+
- globals.ts
5680

5781
'topic:website':
58-
- website/**/*
82+
- changed-files:
83+
- any-glob-to-any-file:
84+
- website/**/*

.github/workflows/pr-automation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Automatically label PR
14-
uses: actions/labeler@v4
14+
uses: actions/labeler@v5
1515
with:
1616
repo-token: '${{ secrets.GITHUB_TOKEN }}'
1717
sync-labels: true

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ website/build
1919
# Miscellaneous
2020
CODEOWNERS
2121
renovate.json
22+
CHANGELOG.md
2223

2324
# Format all of scripts
2425
!scripts/**/*
26+
!.prettierrc.mjs

.prettierrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

.prettierrc.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import sapphirePrettierConfig from '@sapphire/prettier-config';
2+
3+
export default {
4+
...sapphirePrettierConfig,
5+
printWidth: 120,
6+
useTabs: true,
7+
singleQuote: true,
8+
quoteProps: 'as-needed',
9+
trailingComma: 'all',
10+
endOfLine: 'lf',
11+
experimentalTernaries: true,
12+
};

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,25 +77,25 @@ import { APIUser } from 'https://cdn.skypack.dev/discord-api-types/v10?dts';
7777

7878
The exports of each API version is split into three main parts:
7979

80-
- Everything exported with the `API` prefix represents a payload you may get from the REST API _or_ the Gateway.
80+
- Everything exported with the `API` prefix represents a payload you may get from the REST API _or_ the Gateway.
8181

82-
- Everything exported with the `Gateway` prefix represents data that ONLY comes from or is directly related to the Gateway.
82+
- Everything exported with the `Gateway` prefix represents data that ONLY comes from or is directly related to the Gateway.
8383

84-
- Everything exported with the `REST` prefix represents data that ONLY comes from or is directly related to the REST API.
84+
- Everything exported with the `REST` prefix represents data that ONLY comes from or is directly related to the REST API.
8585

86-
- For endpoint options, they will follow the following structure: `REST<HTTP Method><Type><Query|(JSON|FormData)Body|Result>` where the type represents what it will return.
86+
- For endpoint options, they will follow the following structure: `REST<HTTP Method><Type><Query|(JSON|FormData)Body|Result>` where the type represents what it will return.
8787

88-
- For example, `RESTPostAPIChannelMessageJSONBody` or `RESTGetAPIGatewayBotInfoResult`.
88+
- For example, `RESTPostAPIChannelMessageJSONBody` or `RESTGetAPIGatewayBotInfoResult`.
8989

90-
- Some exported types (specifically OAuth2 related ones) may not respect this entire structure due to the nature of the fields. They will start with either `RESTOAuth2` or with something similar to `REST<HTTP Method>OAuth2`
90+
- Some exported types (specifically OAuth2 related ones) may not respect this entire structure due to the nature of the fields. They will start with either `RESTOAuth2` or with something similar to `REST<HTTP Method>OAuth2`
9191

92-
- If a type ends with `Result`, then it represents the expected result by calling its accompanying route.
92+
- If a type ends with `Result`, then it represents the expected result by calling its accompanying route.
9393

94-
- Types that are exported as `never` usually mean the result will be a `204 No Content`, so you can safely ignore it. This does **not** account for errors.
94+
- Types that are exported as `never` usually mean the result will be a `204 No Content`, so you can safely ignore it. This does **not** account for errors.
9595

96-
- Anything else that is miscellaneous will be exported based on what it represents (for example the `REST` route object).
96+
- Anything else that is miscellaneous will be exported based on what it represents (for example the `REST` route object).
9797

98-
- There may be types exported that are identical for all versions. These will be exported as is and can be found in the `globals` file. They will still be prefixed accordingly as described above.
98+
- There may be types exported that are identical for all versions. These will be exported as is and can be found in the `globals` file. They will still be prefixed accordingly as described above.
9999

100100
**A note about how types are documented**: This package will add types only for known and documented properties that are present in Discord's [API Documentation repository](https://github.com/discord/discord-api-docs),
101101
that are mentioned in an open pull request, or known through other means _and have received the green light to be used_.

deno/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,25 +77,25 @@ import { APIUser } from 'https://cdn.skypack.dev/discord-api-types/v10?dts';
7777

7878
The exports of each API version is split into three main parts:
7979

80-
- Everything exported with the `API` prefix represents a payload you may get from the REST API _or_ the Gateway.
80+
- Everything exported with the `API` prefix represents a payload you may get from the REST API _or_ the Gateway.
8181

82-
- Everything exported with the `Gateway` prefix represents data that ONLY comes from or is directly related to the Gateway.
82+
- Everything exported with the `Gateway` prefix represents data that ONLY comes from or is directly related to the Gateway.
8383

84-
- Everything exported with the `REST` prefix represents data that ONLY comes from or is directly related to the REST API.
84+
- Everything exported with the `REST` prefix represents data that ONLY comes from or is directly related to the REST API.
8585

86-
- For endpoint options, they will follow the following structure: `REST<HTTP Method><Type><Query|(JSON|FormData)Body|Result>` where the type represents what it will return.
86+
- For endpoint options, they will follow the following structure: `REST<HTTP Method><Type><Query|(JSON|FormData)Body|Result>` where the type represents what it will return.
8787

88-
- For example, `RESTPostAPIChannelMessageJSONBody` or `RESTGetAPIGatewayBotInfoResult`.
88+
- For example, `RESTPostAPIChannelMessageJSONBody` or `RESTGetAPIGatewayBotInfoResult`.
8989

90-
- Some exported types (specifically OAuth2 related ones) may not respect this entire structure due to the nature of the fields. They will start with either `RESTOAuth2` or with something similar to `REST<HTTP Method>OAuth2`
90+
- Some exported types (specifically OAuth2 related ones) may not respect this entire structure due to the nature of the fields. They will start with either `RESTOAuth2` or with something similar to `REST<HTTP Method>OAuth2`
9191

92-
- If a type ends with `Result`, then it represents the expected result by calling its accompanying route.
92+
- If a type ends with `Result`, then it represents the expected result by calling its accompanying route.
9393

94-
- Types that are exported as `never` usually mean the result will be a `204 No Content`, so you can safely ignore it. This does **not** account for errors.
94+
- Types that are exported as `never` usually mean the result will be a `204 No Content`, so you can safely ignore it. This does **not** account for errors.
9595

96-
- Anything else that is miscellaneous will be exported based on what it represents (for example the `REST` route object).
96+
- Anything else that is miscellaneous will be exported based on what it represents (for example the `REST` route object).
9797

98-
- There may be types exported that are identical for all versions. These will be exported as is and can be found in the `globals` file. They will still be prefixed accordingly as described above.
98+
- There may be types exported that are identical for all versions. These will be exported as is and can be found in the `globals` file. They will still be prefixed accordingly as described above.
9999

100100
**A note about how types are documented**: This package will add types only for known and documented properties that are present in Discord's [API Documentation repository](https://github.com/discord/discord-api-docs),
101101
that are mentioned in an open pull request, or known through other means _and have received the green light to be used_.

deno/rest/v10/mod.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,9 @@ export const Routes = {
473473

474474
parts.push('threads');
475475

476-
return parts.join('/') as `/channels/${Snowflake}/messages/${Snowflake}/threads` | `/channels/${Snowflake}/threads`;
476+
return parts.join('/') as
477+
| `/channels/${Snowflake}/messages/${Snowflake}/threads`
478+
| `/channels/${Snowflake}/threads`;
477479
},
478480

479481
/**

deno/rest/v10/oauth2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,5 @@ export interface RESTPostOAuth2AccessTokenWithBotAndWebhookIncomingScopeResult {
196196
}
197197

198198
export type RESTPostOAuth2AccessTokenWithBotAndGuildsAndWebhookIncomingScopeResult =
199-
RESTPostOAuth2AccessTokenWithBotAndGuildsScopeResult & RESTPostOAuth2AccessTokenWithBotAndWebhookIncomingScopeResult;
199+
RESTPostOAuth2AccessTokenWithBotAndGuildsScopeResult &
200+
RESTPostOAuth2AccessTokenWithBotAndWebhookIncomingScopeResult;

deno/rest/v6/guild.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,14 @@ export type RESTGetAPIGuildChannelsResult = APIChannel[];
142142
export type RESTPostAPIGuildChannelJSONBody = Partial<
143143
Pick<
144144
APIChannel,
145-
'bitrate' | 'nsfw' | 'parent_id' | 'permission_overwrites' | 'rate_limit_per_user' | 'topic' | 'type' | 'user_limit'
145+
| 'bitrate'
146+
| 'nsfw'
147+
| 'parent_id'
148+
| 'permission_overwrites'
149+
| 'rate_limit_per_user'
150+
| 'topic'
151+
| 'type'
152+
| 'user_limit'
146153
>
147154
> &
148155
Required<Pick<APIChannel, 'name'>>;

deno/rest/v6/oauth2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,5 @@ export interface RESTPostOAuth2AccessTokenWithBotAndWebhookIncomingScopeResult {
191191
* @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8.
192192
*/
193193
export type RESTPostOAuth2AccessTokenWithBotAndGuildsAndWebhookIncomingScopeResult =
194-
RESTPostOAuth2AccessTokenWithBotAndGuildsScopeResult & RESTPostOAuth2AccessTokenWithBotAndWebhookIncomingScopeResult;
194+
RESTPostOAuth2AccessTokenWithBotAndGuildsScopeResult &
195+
RESTPostOAuth2AccessTokenWithBotAndWebhookIncomingScopeResult;

deno/rest/v8/oauth2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,5 @@ export interface RESTPostOAuth2AccessTokenWithBotAndWebhookIncomingScopeResult {
236236
* @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
237237
*/
238238
export type RESTPostOAuth2AccessTokenWithBotAndGuildsAndWebhookIncomingScopeResult =
239-
RESTPostOAuth2AccessTokenWithBotAndGuildsScopeResult & RESTPostOAuth2AccessTokenWithBotAndWebhookIncomingScopeResult;
239+
RESTPostOAuth2AccessTokenWithBotAndGuildsScopeResult &
240+
RESTPostOAuth2AccessTokenWithBotAndWebhookIncomingScopeResult;

0 commit comments

Comments
 (0)