swc/crates/swc_bundler/tests/.cache/deno/048a424b4a0d2b5ef1753fb52fc81ba3d31d6656.ts
2021-11-09 20:42:49 +09:00

28 lines
1.0 KiB
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/users/connection.ts
import { Integration } from "../integrations/integration.ts";
import { DiscordVisibilityTypes } from "./visibility_types.ts";
/** https://discord.com/developers/docs/resources/user#connection-objecthttps://discord.com/developers/docs/resources/user#user-object-premium-types */
export interface Connection {
/** id of the connection account */
id: string;
/** The username of the connection account */
name: string;
/** The service of the connection (twitch, youtube) */
type: string;
/** Whether the connection is revoked */
revoked?: boolean;
/** An array of partial server integrations */
integrations?: Integration[];
/** Whether the connection is verified */
verified: boolean;
/** Whether friend sync is enabled for this connection */
friendSync: boolean;
/** Whether activities related to this connection will be shown in presence updates */
showActivity: boolean;
/** Visibility of this connection */
visibility: DiscordVisibilityTypes;
}