Skip to content

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

Properties

The DefaultReaction instance has no set properties!

Methods

The DefaultReaction instance has no set methods!

Functions

build

DefaultReaction . build (

     self: DefaultReaction
)  -> ()

Responsible for buillding the default reaction object that the Discord API can understand.

new

DefaultReaction . new (

     resource: {
       emojiId: apiTypes.Snowflake?,
       emojiName: string?,
    }
)  -> ()

Constructor for the Discord Default Reaction Builder.

local defaultReaction = DefaultReaction.new("000000000000000000", "secret-emoji"):build()