Discord
Initialize and set Discord activity.
🗿Static Class
This is a Static Class. Access it's methods directly with
.
. It's not possible to spawn new instances.💂Authority
This static class can be accessed only on 🟧 Client side.
Static Functions​
Returns | Name | Description | |
---|---|---|---|
Initialize | Initializes the Discord Integration with your custom client_id | ||
SetActivity | Communicates with Discord and sets a custom user status |
Initialize
​
Initializes the Discord Integration with your custom client_id
Discord.Initialize(client_id)
Type | Parameter | Default | Description |
---|---|---|---|
integer | client_id |
SetActivity
​
Communicates with Discord and sets a custom user status
Discord.SetActivity(state, details, large_image, large_text, reset_time?)
Type | Parameter | Default | Description |
---|---|---|---|
string | state | ||
string | details | ||
string | large_image | ||
string | large_text | ||
string | reset_time? | false | Whether or not to reset current activity elapsed time |