Skip to content

Emoji

Implementation of discords Emoji object as a Luau builder.

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

Properties

The Emoji instance has no set properties!

Methods

The Emoji instance has no set methods!

Functions

setId

Emoji . setId (

     self: Emoji
     emojiId: string
)  -> ()

Set the ID of the emoji to use.

setName

Emoji . setName (

     self: Emoji
     emojiName: string
)  -> ()

Set the name of the emoji to use.

build

Emoji . build (

     self: Emoji
)  -> ()

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

new

Emoji . new (

     resource: {
       emojiId: string,
       emojiName: string,
    }
)  -> ()

Responsible for creating a new Emoji.

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