class Emoji
extends Base
import { Emoji } from "https://deno.land/x/harmony@v2.8.0/src/structures/emoji.ts";
Guild Emoji Object
Constructors
new
Emoji(client: Client, data: EmojiPayload)Methods
delete(): Promise<boolean>
Delete the given emoji. Requires the MANAGE_EMOJIS permission. Returns true
on success. Fires a Guild Emojis Update Gateway event.
edit(data: ModifyGuildEmojiParams): Promise<Emoji>
Modify the given emoji. Requires the MANAGE_EMOJIS permission. Returns the updated emoji object on success. Fires a Guild Emojis Update Gateway event.
emojiImageURL(format?: "png" | "gif" | "dynamic", size?: ImageSize): string | undefined
Gets emoji image URL
readFromData(data: EmojiPayload): void
toString(): string