Option
Implementation of discords Option object as a Luau builder.
https://discord.com/developers/docs/resources/guild#guild-onboarding-object-prompt-option-structure
Properties
The Option instance has no set properties!
Methods
The Option instance has no set methods!
Functions
addChannelId
Option . addChannelId () -> ()
self: Option
channelId: string
Add a Channel to this option
addRoleId
Option . addRoleId () -> ()
self: Option
roleId: string
Add a Role to this option
setEmoji
Option . setEmoji () -> ()
self: Option
emojiId: string
emojiName: string
isAnimated: boolean?
Sets the emoji of this option.
setTitle
Option . setTitle () -> ()
self: Option
title: string
Sets the title of this option.
setDescription
Option . setDescription () -> ()
self: Option
description: string
Sets the description of this option.
build
Option . build () -> ()
self: Option
Responsible for building the OptionObject JSON that can be parsed by the Discord API.
new
Option . new () -> ()
resource: {
{ channelIds: { string } }
Responsible for creating a new Option.