mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/messages/get_messages.ts
|
|
|
|
|
|
/** https://discord.com/developers/docs/resources/channel#get-channel-messages-query-string-params */
|
|
export interface GetMessagesLimit {
|
|
/** Max number of messages to return (1-100) default 50 */
|
|
limit?: number;
|
|
}
|
|
|
|
/** https://discord.com/developers/docs/resources/channel#get-channel-messages-query-string-params */
|
|
export interface GetMessagesAround extends GetMessagesLimit {
|
|
/** Get messages around this message id */
|
|
around?: bigint;
|
|
}
|
|
|
|
/** https://discord.com/developers/docs/resources/channel#get-channel-messages-query-string-params */
|
|
export interface GetMessagesBefore extends GetMessagesLimit {
|
|
/** Get messages before this message id */
|
|
before?: bigint;
|
|
}
|
|
|
|
/** https://discord.com/developers/docs/resources/channel#get-channel-messages-query-string-params */
|
|
export interface GetMessagesAfter extends GetMessagesLimit {
|
|
/** Get messages after this message id */
|
|
after?: bigint;
|
|
}
|
|
|
|
/** https://discord.com/developers/docs/resources/channel#get-channel-messages-query-string-params */
|
|
export type GetMessages = GetMessagesLimit & GetMessagesAfter & GetMessagesBefore & GetMessagesAround;
|