File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -162,15 +162,15 @@ normal name (for instance `UserFlags`).
162
162
#### ` rest `
163
163
164
164
This folder holds all the types that are related to Discord's REST API. Just like [ ` payloads ` ] ( #payloads ) , it is split
165
- into folders that have an ` index.ts ` file. from the structure in [ ` Discord's API Documentation ` ] ( https://discord.dev ) ,
165
+ into folders that have an ` index.ts ` file, from the structure in [ ` Discord's API Documentation ` ] ( https://discord.dev ) ,
166
166
under the ` Resources ` category.
167
167
168
168
:::info
169
169
170
170
Types created here must start with the ` REST ` prefix (for instance ` RESTGetAPIUserResult ` ) unless they are objects or
171
171
enums (for instance ` Routes ` ).
172
172
173
- They must also follow the following structure: ` REST{http_method}{type_name}{Query|(JSON|FormData)|Result} ` , where:
173
+ They must also follow the following structure: ` REST{http_method}{type_name}{Query|(JSON|FormData)Body |Result} ` , where:
174
174
175
175
- ` http_method ` is the PascalCase HTTP method name (for instance ` Get ` , ` Post ` , and so on)
176
176
- ` type_name ` is the actual name of the type it returns (for instance ` APIUser ` )
Original file line number Diff line number Diff line change @@ -162,15 +162,15 @@ normal name (for instance `UserFlags`).
162
162
#### ` rest `
163
163
164
164
This folder holds all the types that are related to Discord's REST API. Just like [ ` payloads ` ] ( #payloads ) , it is split
165
- into folders that have an ` index.ts ` file. from the structure in [ ` Discord's API Documentation ` ] ( https://discord.dev ) ,
165
+ into folders that have an ` index.ts ` file, from the structure in [ ` Discord's API Documentation ` ] ( https://discord.dev ) ,
166
166
under the ` Resources ` category.
167
167
168
168
:::info
169
169
170
170
Types created here must start with the ` REST ` prefix (for instance ` RESTGetAPIUserResult ` ) unless they are objects or
171
171
enums (for instance ` Routes ` ).
172
172
173
- They must also follow the following structure: ` REST{http_method}{type_name}{Query|(JSON|FormData)|Result} ` , where:
173
+ They must also follow the following structure: ` REST{http_method}{type_name}{Query|(JSON|FormData)Body |Result} ` , where:
174
174
175
175
- ` http_method ` is the PascalCase HTTP method name (for instance ` Get ` , ` Post ` , and so on)
176
176
- ` type_name ` is the actual name of the type it returns (for instance ` APIUser ` )
Original file line number Diff line number Diff line change @@ -162,15 +162,15 @@ normal name (for instance `UserFlags`).
162
162
#### ` rest `
163
163
164
164
This folder holds all the types that are related to Discord's REST API. Just like [ ` payloads ` ] ( #payloads ) , it is split
165
- into folders that have an ` index.ts ` file. from the structure in [ ` Discord's API Documentation ` ] ( https://discord.dev ) ,
165
+ into folders that have an ` index.ts ` file, from the structure in [ ` Discord's API Documentation ` ] ( https://discord.dev ) ,
166
166
under the ` Resources ` category.
167
167
168
168
:::info
169
169
170
170
Types created here must start with the ` REST ` prefix (for instance ` RESTGetAPIUserResult ` ) unless they are objects or
171
171
enums (for instance ` Routes ` ).
172
172
173
- They must also follow the following structure: ` REST{http_method}{type_name}{Query|(JSON|FormData)|Result} ` , where:
173
+ They must also follow the following structure: ` REST{http_method}{type_name}{Query|(JSON|FormData)Body |Result} ` , where:
174
174
175
175
- ` http_method ` is the PascalCase HTTP method name (for instance ` Get ` , ` Post ` , and so on)
176
176
- ` type_name ` is the actual name of the type it returns (for instance ` APIUser ` )
Original file line number Diff line number Diff line change @@ -162,15 +162,15 @@ normal name (for instance `UserFlags`).
162
162
#### ` rest `
163
163
164
164
This folder holds all the types that are related to Discord's REST API. Just like [ ` payloads ` ] ( #payloads ) , it is split
165
- into folders that have an ` index.ts ` file. from the structure in [ ` Discord's API Documentation ` ] ( https://discord.dev ) ,
165
+ into folders that have an ` index.ts ` file, from the structure in [ ` Discord's API Documentation ` ] ( https://discord.dev ) ,
166
166
under the ` Resources ` category.
167
167
168
168
:::info
169
169
170
170
Types created here must start with the ` REST ` prefix (for instance ` RESTGetAPIUserResult ` ) unless they are objects or
171
171
enums (for instance ` Routes ` ).
172
172
173
- They must also follow the following structure: ` REST{http_method}{type_name}{Query|(JSON|FormData)|Result} ` , where:
173
+ They must also follow the following structure: ` REST{http_method}{type_name}{Query|(JSON|FormData)Body |Result} ` , where:
174
174
175
175
- ` http_method ` is the PascalCase HTTP method name (for instance ` Get ` , ` Post ` , and so on)
176
176
- ` type_name ` is the actual name of the type it returns (for instance ` APIUser ` )
Original file line number Diff line number Diff line change @@ -162,15 +162,15 @@ normal name (for instance `UserFlags`).
162
162
#### ` rest `
163
163
164
164
This folder holds all the types that are related to Discord's REST API. Just like [ ` payloads ` ] ( #payloads ) , it is split
165
- into folders that have an ` index.ts ` file. from the structure in [ ` Discord's API Documentation ` ] ( https://discord.dev ) ,
165
+ into folders that have an ` index.ts ` file, from the structure in [ ` Discord's API Documentation ` ] ( https://discord.dev ) ,
166
166
under the ` Resources ` category.
167
167
168
168
:::info
169
169
170
170
Types created here must start with the ` REST ` prefix (for instance ` RESTGetAPIUserResult ` ) unless they are objects or
171
171
enums (for instance ` Routes ` ).
172
172
173
- They must also follow the following structure: ` REST{http_method}{type_name}{Query|(JSON|FormData)|Result} ` , where:
173
+ They must also follow the following structure: ` REST{http_method}{type_name}{Query|(JSON|FormData)Body |Result} ` , where:
174
174
175
175
- ` http_method ` is the PascalCase HTTP method name (for instance ` Get ` , ` Post ` , and so on)
176
176
- ` type_name ` is the actual name of the type it returns (for instance ` APIUser ` )
You can’t perform that action at this time.
0 commit comments