mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
24 lines
937 B
TypeScript
24 lines
937 B
TypeScript
// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/gateway/identify.ts
|
|
|
|
|
|
import { IdentifyConnectionProperties } from "./identify_connection_properties.ts";
|
|
import { StatusUpdate } from "./status_update.ts";
|
|
|
|
/** https://discord.com/developers/docs/topics/gateway#identify */
|
|
export interface Identify {
|
|
/** Authentication token */
|
|
token: string;
|
|
/** Connection properties */
|
|
properties: IdentifyConnectionProperties;
|
|
/** Whether this connection supports compression of packets */
|
|
compress?: boolean;
|
|
/** Value between 50 and 250, total number of members where the gateway will stop sending offline members in the guild member list */
|
|
largeThreshold?: number;
|
|
/** Used for Guild Sharding */
|
|
shard?: [shardId: number, numberOfShards: number];
|
|
/** Presence structure for initial presence information */
|
|
presence?: StatusUpdate;
|
|
/** The Gateway Intents you wish to receive */
|
|
intents: number;
|
|
}
|