import type { DiscordIntegration, DiscordIntegrationApplication } from '@discordeno/types'; import Base from '../../Base.js'; import type { IntegrationOptions } from '../../typings.js'; import User from '../users/User.js'; import type Guild from './Guild.js'; export declare class GuildIntegration extends Base { /** The guild where this integration exists. */ guild: Guild; /** The name of the integration. */ name: string; /** The type of integration. */ type: string; /** The user connected to the integration. */ user?: User; /** Whether the integration is syncing or not. */ syncing?: boolean; /** THe Unix timestamp of last integration sync. */ syncedAt?: number; /** The number of subscribers. */ subscriberCount?: number; /** The role id of the role connected to the integration. */ roleID?: string; /** WHether or not the application was revoked. */ revoked?: boolean; /** Whether integration emoticons are enabled or not. */ enableEmoticons?: boolean; /** Behavior of expired subscriptions */ expireBehavior?: number; /** Grace period for expired subscriptions. */ expireGracePeriod?: number; /** Whether the integration is enabled or not. */ enabled?: boolean; /** The bot/oauth2 application for integration. */ application?: DiscordIntegrationApplication; /** Info on the integration account */ account: { /** The id of the integration account. */ id: string; /** The name of the integration account. */ name: string; }; constructor(data: DiscordIntegration, guild: Guild); update(data: DiscordIntegration): void; /** Delete the guild integration */ delete(): Promise; /** Edit the guild integration */ edit(options: IntegrationOptions): Promise; /** Force the guild integration to sync */ sync(): Promise; toJSON(props?: string[]): Record; } export default GuildIntegration; //# sourceMappingURL=Integration.d.ts.map