mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
42 lines
1.6 KiB
TypeScript
42 lines
1.6 KiB
TypeScript
// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/integrations/integration.ts
|
|
|
|
|
|
import { User } from "../users/user.ts";
|
|
import { IntegrationAccount } from "./integration_account.ts";
|
|
import { IntegrationApplication } from "./integration_application.ts";
|
|
import { DiscordIntegrationExpireBehaviors } from "./integration_expire_behaviors.ts";
|
|
|
|
/** https://discord.com/developers/docs/resources/guild#integration-object-integration-structure */
|
|
export interface Integration {
|
|
/** Integration Id */
|
|
id: string;
|
|
/** Integration name */
|
|
name: string;
|
|
/** Integration type (twitch, youtube or discord) */
|
|
type: "twitch" | "youtube" | "discord";
|
|
/** Is this integration enabled */
|
|
enabled: boolean;
|
|
/** Is this integration syncing */
|
|
syncing?: boolean;
|
|
/** Role Id that this integration uses for "subscribers" */
|
|
roleId?: string;
|
|
/** Whether emoticons should be synced for this integration (twitch only currently) */
|
|
enableEmoticons?: boolean;
|
|
/** The behavior of expiring subscribers */
|
|
expireBehavior?: DiscordIntegrationExpireBehaviors;
|
|
/** The grace period (in days) before expiring subscribers */
|
|
expireGracePeriod?: number;
|
|
/** User for this integration */
|
|
user?: User;
|
|
/** Integration account information */
|
|
account: IntegrationAccount;
|
|
/** When this integration was last synced */
|
|
syncedAt?: string;
|
|
/** How many subscribers this integration has */
|
|
subscriberCount?: number;
|
|
/** Has this integration been revoked */
|
|
revoked?: boolean;
|
|
/** The bot/OAuth2 application for discord integrations */
|
|
application?: IntegrationApplication;
|
|
}
|