Passer au contenu principal
Version: bleeding-edge 🩸

☎️ 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.
🧑‍💻API Source
The methods, properties and events descriptions from this page are defined in our GitHub API Repository!

🗿 Static Functions

ReturnsNameDescription
InitializeInitializes the Discord Integration with your custom client_id
SetActivityCommunicates with Discord and sets a custom user status

Initialize

Initializes the Discord Integration with your custom client_id

Discord.Initialize(client_id)
TypeParameterDefaultDescription
integerclient_id

SetActivity

Communicates with Discord and sets a custom user status

Discord.SetActivity(state, details, large_image, large_text, reset_time?)
TypeParameterDefaultDescription
stringstate
stringdetails
stringlarge_image
stringlarge_text
stringreset_time?falseWhether or not to reset current activity elapsed time

🚀 Events

This class doesn't have own events.