Skip to main content
Module

x/harmony/src/structures/emoji.ts>Emoji

An easy to use Discord API Library for Deno.
Go to Latest
class Emoji
extends Base
import { Emoji } from "https://deno.land/x/harmony@v2.9.0/src/structures/emoji.ts";

Guild Emoji Object

Constructors

new
Emoji(client: Client, data: EmojiPayload)

Properties

optional
animated: boolean
optional
available: boolean
readonly
getEmojiString: string
optional
guild: Guild
id: string | null
optional
managed: boolean
name: string | null
optional
requireColons: boolean
optional
roles: string[]
readonly
snowflake: Snowflake | null
readonly
timestamp: Date | null
optional
user: User

Methods

delete(): Promise<boolean>

Delete the given emoji. Requires the MANAGE_EMOJIS permission. Returns true on success. Fires a Guild Emojis Update Gateway event.

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

toString(): string