Emoji
Implementation of discords Emoji object as a Luau builder.
https://discord.com/developers/docs/resources/emoji#emoji-object
Summary
Properties
Section titled “Properties”emojiId
Section titled “emojiId”The ID of the emoji.
emojiName
Section titled “emojiName”The name of the emoji.
Methods
Section titled “Methods”Emoji : setId ( emojiId ) -> Emoji
Set the ID of the emoji to use.
Parameters
| emojiId: string |
Returns
| Emoji |
setName
Section titled “setName”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 |
Functions
Section titled “Functions”Emoji . new ( resource ) -> Emoji
Responsible for creating a new Emoji.
local emoji = Emoji.new({ emojiId = "123456789", emojiName = "my-emoji"})