UNPKG

detritus-client

Version:

A Typescript NodeJS library to interact with Discord's API, both Rest and Gateway.

48 lines (47 loc) 1.7 kB
import { RequestTypes } from 'detritus-client-rest'; import { BaseCollection } from '../collections/basecollection'; import { BaseSet } from '../collections/baseset'; import { ShardClient } from '../client'; import { ImageFormats } from '../constants'; import { UrlQuery } from '../utils'; import { BaseStructure, BaseStructureData } from './basestructure'; import { Guild } from './guild'; import { Role } from './role'; import { User } from './user'; /** * Emoji Structure * @category Structure */ export declare class Emoji extends BaseStructure { readonly _keys: BaseSet<string>; readonly _keysMerge: BaseSet<string>; _roles?: Array<string>; animated: boolean; available?: boolean; guildId?: string; id: null | string; managed?: boolean; name: string; requireColons?: boolean; user?: User; constructor(client: ShardClient, data: BaseStructureData, isClone?: boolean); get createdAt(): Date | null; get createdAtUnix(): null | number; get endpointFormat(): string; get format(): string; get guild(): Guild | null; get roles(): BaseCollection<string, null | Role>; get url(): string; urlFormat(format?: ImageFormats | null, query?: UrlQuery): string; edit(options: RequestTypes.EditGuildEmoji): Promise<Emoji>; delete(options?: RequestTypes.DeleteGuildEmoji): Promise<any>; fetchData(options?: { format?: ImageFormats | null; query?: UrlQuery; }): Promise<any>; difference(key: string, value: any): [boolean, any]; hasDifference(key: string, value: any): boolean; mergeValue(key: string, value: any): void; toString(): string; toJSON(withRoles?: boolean): any; }