@discord-types/builders/emoji
API reference for @discord-types/builders/emoji
@discord-types/builders/emoji
Types
Emoji
Raw Type
type Emoji = Emoji.Prototype, & {
emojiId: string?,
emojiName: string?
}
Intersection with variants:
JSON
Raw Type
type JSON = Emoji.Prototype.build(nil :: any),
Functions
Emoji.Prototype.setId
[[ Set the ID of the emoji to use. ]]
Function Signature
--[[
Set the ID of the emoji to use.
]]
function Emoji.Prototype.setId(self: Emoji, emojiId: string) -> Emoji end
Arguments
emojiId
Returns
ret1
Emoji.Prototype.setName
[[ Set the name of the emoji to use. ]]
Function Signature
--[[
Set the name of the emoji to use.
]]
function Emoji.Prototype.setName(self: Emoji, emojiName: string) -> Emoji end
Arguments
emojiName
Returns
ret1
Emoji.Prototype.build
[[ Responsible for building the Emoji JSON that can be parsed by the Discord API. ]]
Function Signature
--[[
Responsible for building the Emoji JSON that can be parsed by the Discord API.
]]
function Emoji.Prototype.build(self: Emoji) -> JSON end
Returns
ret1
Emoji.Interface.new
[[ Responsible for creating a new Emoji.
```lua
``` ]]
Function Signature
--[[
Responsible for creating a new Emoji.
\`\`\`lua
\`\`\`
]]
function Emoji.Interface.new(resource: {
emojiId: string,
emojiName: string
}?) -> Emoji end
Arguments
resource
This field is optional and may not be specified
{emojiId: string, emojiName: string}?
Returns
ret1
Last updated on