GuildEmoji
Signature
export declare class GuildEmoji extends EmojiProperties
12Methods
9Properties
readonly guildId: string;user: When<T, UserStructure>;id: string;createdTimestampGetterget createdTimestamp(): number;Create a timestamp for the current object.
createdAtGetterget createdAt(): Date;createdAt gets the creation Date instace of the current object.
readonly client: UsingClient;roles?: string[] | undefined;name: string | null;available?: boolean | undefined;requireColons?: boolean | undefined;managed?: boolean | undefined;animated?: boolean | undefined;Methods
constructorConstructorconstructor(client: UsingClient, data: APIEmoji, guildId: string);guild(mode?: 'rest' | 'flow'): Promise<GuildStructure<'cached' | 'api'>>;guild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;edit(body: RESTPatchAPIGuildEmojiJSONBody, reason?: string): Promise<GuildEmojiStructure>;delete(reason?: string): Promise<void>;fetch(force?: boolean): Promise<GuildEmojiStructure>;static methods({ client, guildId }: MethodContext<{ guildId: string;}>): { edit: (emojiId: string, body: RESTPatchAPIGuildEmojiJSONBody, reason?: string) => Promise<GuildEmojiStructure>; create: (body: Parameters<EmojiShorter["create"]>[1]) => Promise<GuildEmojiStructure>; fetch: (emojiId: string, force?: boolean) => Promise<GuildEmojiStructure>; list: (force?: boolean) => Promise<GuildEmojiStructure[]>;};url(options?: BaseCDNUrlOptions): string;toString(): `<:${string}:${string}>` | `<a:${string}:${string}>`;Returns a string representation of an object.
toJSON(): { id: string; name: string | null; animated: boolean;};