Skip to content

Account

Implementation of the Discord Integration Account class in Luau

https://discord.com/developers/docs/resources/guild#integration-account-object

Properties

id

Account.id  :: string

The unique identifier for this integration account

name

Account.name  :: string

The name of the integration account

Methods

The Account instance has no set methods!

Functions

sync

Account . sync (

     self: Account
     accountData: apiTypes.IntegrationAccountObject
)  -> ()

Responsible for syncing data to this account object. This is typically called by the API when this object is created or updated.

new

Account . new (

     accountData: apiTypes.IntegrationAccountObject
)  -> ()

Responsible for constructing this class.