import { RequestTypes } from 'detritus-client-rest'; import { ShardClient } from '../client'; import { BaseSet } from '../collections/baseset'; import { WebhookTypes } from '../constants'; import { UrlQuery } from '../utils'; import { BaseStructure, BaseStructureData } from './basestructure'; import { Channel } from './channel'; import { BaseGuild, Guild } from './guild'; import { User } from './user'; /** * Webhook Structure * @category Structure */ export declare class Webhook extends BaseStructure { readonly _keys: BaseSet; applicationId: null | string; avatar: null | string; channelId: string; discriminator: string; guildId: string; id: string; name: string; sourceChannel?: Channel; sourceGuild?: BaseGuild; token?: null | string; type: WebhookTypes; user?: null | User; constructor(client: ShardClient, data?: BaseStructureData, isClone?: boolean); get avatarUrl(): string; get channel(): Channel | null; get createdAt(): Date; get createdAtUnix(): number; get defaultAvatarUrl(): string; get guild(): Guild | null; get jumpLink(): string; get mention(): string; avatarUrlFormat(format?: string, query?: UrlQuery): string; createMessage(options: RequestTypes.ExecuteWebhook, compatibleType?: string): Promise; delete(options?: RequestTypes.DeleteWebhook): Promise; deleteMessage(messageId: string): Promise; edit(options?: RequestTypes.EditWebhook): Promise; editMessage(messageId: string, options?: RequestTypes.EditWebhookTokenMessage): Promise; execute(options: RequestTypes.ExecuteWebhook, compatibleType?: string): Promise; fetchMessage(messageId: string): Promise; mergeValue(key: string, value: any): void; toString(): string; }