Skip to main content
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
This page is auto-generated! The Functions, Properties and Events described here are defined in our GitHub's API Repository! Feel free to commit suggestions and changes to the source .json API files!

๐Ÿ—ฟย 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 Required parameter No description provided

SetActivity

Communicates with Discord and sets a custom user status

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

๐Ÿš€ย Eventsโ€‹

This class doesn't have own events.