Intents
Implementation of discord intents as a luau builder.
https://discord.com/developers/docs/topics/gateway#list-of-intents
Properties
Section titled “Properties”intents
Section titled “intents” Intents.intents :: Intent }
An array of intent flags that determine which gateway events your client will receive.
Methods
Section titled “Methods”addIntent
Section titled “addIntent”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 |
Functions
Section titled “Functions”Intents . new ( intents ) -> Intents
Constructs a new intents builder.
Intents.new() :addIntent("GuildMembers") :addIntent("GuildMessages") :build()Parameters
| intents: {}? |
Returns
| Intents |