Skip to content

IntentsBuilder

IntentsBuilder is used to construct intents for a Discord bot, specifying which events the bot will receive.

Usage:

local DiscordLuau = require("../Submodules/DiscordLuau")
local IntentsBuilder = DiscordLuau.IntentsBuilder.fromAll()
local DiscordSettings = DiscordLuau.DiscordSettings.new("BOT TOKEN", IntentsBuilder)

Properties

The IntentsBuilder instance has no set properties!

Methods

The IntentsBuilder instance has no set methods!

Functions

new

IntentsBuilder . new (

     intentList: { string }
)  -> ()

Creates a new instance of IntentsBuilder with the specified intents.

fromDefault

IntentsBuilder . fromDefault ()  -> ()

Creates a new instance of IntentsBuilder with the default intents.

fromAll

IntentsBuilder . fromAll ()  -> ()

Creates a new instance of IntentsBuilder with all available intents.