Skip to content

Intents

Implementation of discord intents as a luau builder.

https://discord.com/developers/docs/topics/gateway#list-of-intents

Intents.intents  :: Intent }

An array of intent flags that determine which gateway events your client will receive.

Intents : addIntent ( intent )  -> Intents

Sets either the id of a guilds custom emoji, or a unicode character of an emoji.

Parameters

intent: Intent

Returns

Intents
Intents : build ( )  -> number

Responsible for building all intent permissions into an integer that the Discord API can parse

Returns

number
Intents . new ( intents )  -> Intents

Constructs a new intents builder.

Intents.new()
:addIntent("GuildMembers")
:addIntent("GuildMessages")
:build()

Parameters

intents: {}?

Returns

Intents