import { APIGlobalInvite } from "../api"; import { Client } from "../Client"; import { Attachment } from "./Attachment"; import { BaseObject } from "./BaseObject"; export interface GlobalInviteServer { id: string; name: string; icon: Attachment | null; banner: Attachment | null; members: number; } export declare class GlobalInvite extends BaseObject { /** Invites don't have a creation date. */ get createdAt(): number; constructor(client: Client, data: APIGlobalInvite); get type(): "Group" | "Server"; get creator(): { name: string; avatar: Attachment; }; get channel(): { id: string; name: string; description: string; }; get server(): GlobalInviteServer; accept(): Promise; }