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

DefaultReaction.emojiId  :: string?

The id of a guild’s custom emoji.

DefaultReaction.emojiName  :: string?

The unicode character of the emoji.

DefaultReaction : build ( )  -> JSON

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

Returns

JSON
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