DefaultReaction
Implementation of a discord default reaction object as a luau builder.
An object that specifies the emoji to use as the default way to react to a forum post. Exactly one of emoji_id and emoji_name must be set.
https://discord.com/developers/docs/resources/channel#default-reaction-object
Summary
Properties
Section titled “Properties”emojiId
Section titled “emojiId”The id of a guild’s custom emoji.
emojiName
Section titled “emojiName”The unicode character of the emoji.
Methods
Section titled “Methods”DefaultReaction : build ( ) -> JSON
Responsible for buillding the default reaction object that the Discord API can understand.
Returns
| JSON |
Functions
Section titled “Functions”DefaultReaction . new ( resource ) -> DefaultReaction
Constructor for the Discord Default Reaction Builder.
local defaultReaction = DefaultReaction.new("000000000000000000", "secret-emoji"):build()Parameters
| resource: { emojiId: apiTypes.Snowflake?, emojiName: string?, } |
Returns
| DefaultReaction |