mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 07:02:28 +03:00
28 lines
1.0 KiB
TypeScript
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;
|
|
}
|