Skip to content

Emoji

Implementation of discords Emoji object as a Luau builder.

https://discord.com/developers/docs/resources/emoji#emoji-object

Emoji.emojiId  :: string?

The ID of the emoji.

Emoji.emojiName  :: string?

The name of the emoji.

Emoji : setId ( emojiId )  -> Emoji

Set the ID of the emoji to use.

Parameters

emojiId: string

Returns

Emoji
Emoji : setName ( emojiName )  -> Emoji

Set the name of the emoji to use.

Parameters

emojiName: string

Returns

Emoji
Emoji : build ( )  -> JSON

Responsible for building the Emoji JSON that can be parsed by the Discord API.

Returns

JSON
Emoji . new ( resource )  -> Emoji

Responsible for creating a new Emoji.

local emoji = Emoji.new({
emojiId = "123456789",
emojiName = "my-emoji"
})

Parameters

resource: {
emojiId: string,
emojiName: string,
}

Returns

Emoji