MessagesRoute
Defined in: packages/core/src/api.ts:85
A route that lists things and can follow its pages.
Extends
Section titled “Extends”MessagesRoute(
id):MessageNode
Defined in: packages/core/src/api.ts:86
A route that lists things and can follow its pages.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Properties
Section titled “Properties”bulkDelete
Section titled “bulkDelete”bulkDelete:
Route
Defined in: packages/core/src/api.ts:87
readonlypath:string
Defined in: packages/core/src/api.ts:58
The path this route stands for, such as /guilds/123/members.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”all(
options?):Promise<APIMessage[]>
Defined in: packages/core/src/api.ts:74
Collects pages into one array.
Parameters
Section titled “Parameters”options?
Section titled “options?”PageOptions<APIMessage> & object
Returns
Section titled “Returns”Promise<APIMessage[]>
Inherited from
Section titled “Inherited from”delete()
Section titled “delete()”delete<
R>(options?):Promise<R>
Defined in: packages/core/src/api.ts:63
Type Parameters
Section titled “Type Parameters”R = void
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<R>
Inherited from
Section titled “Inherited from”get<
R>(options?):Promise<R>
Defined in: packages/core/src/api.ts:59
Type Parameters
Section titled “Type Parameters”R = APIMessage[]
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<R>
Inherited from
Section titled “Inherited from”pages()
Section titled “pages()”pages(
options?):AsyncGenerator<APIMessage[],void>
Defined in: packages/core/src/api.ts:69
Yields one page at a time, following the cursor until the list ends.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”AsyncGenerator<APIMessage[], void>
Inherited from
Section titled “Inherited from”patch()
Section titled “patch()”patch<
R>(body?,options?):Promise<R>
Defined in: packages/core/src/api.ts:62
Type Parameters
Section titled “Type Parameters”R = APIMessage
Parameters
Section titled “Parameters”unknown
options?
Section titled “options?”Returns
Section titled “Returns”Promise<R>
Inherited from
Section titled “Inherited from”post()
Section titled “post()”post<
R>(body?,options?):Promise<R>
Defined in: packages/core/src/api.ts:60
Type Parameters
Section titled “Type Parameters”R = APIMessage
Parameters
Section titled “Parameters”unknown
options?
Section titled “options?”Returns
Section titled “Returns”Promise<R>
Inherited from
Section titled “Inherited from”put<
R>(body?,options?):Promise<R>
Defined in: packages/core/src/api.ts:61
Type Parameters
Section titled “Type Parameters”R = void
Parameters
Section titled “Parameters”unknown
options?
Section titled “options?”Returns
Section titled “Returns”Promise<R>