Discord Developer Web site
Using the Discord Developer Web destination, developers can control and manage their particular Discord accounts. This includes the application tab, which offers a wealth of server statistics. Also, the Groups tab allows developers to regulate user accord.
The API is based in regards to persistent, secure WebSocket connection. The most common using of the API is for program access. Yet , it can be used pertaining to other needs as well.
There are two main layers for the Discord API: the HTTP/REST interface as well as the Gateway. Most API requests are made with HTTP. The Gateway allows applications to open a secure WebSocket interconnection and acquire server incidents.
The Discord API supports a process designed for limiting excessive requests. These kinds of restrictions limit the number of API calls plus the rate at which they can be directed. It also contains a list of close codes.
The API also has an intents section, in which developers can easily configure completely different how to turn on developer mode on discord components of information. These bits may be used to mark occasions, compress info, encoding, and sharding. You can read even more about these intents on the Gateway event records.
In order to acquire and reply to Gateway events, your Discord app must have an Identify (opcode 2) and an Update Abundant Presence (opcode 6) event. During the Discover event, Discord is first establishing a connection together with your app. After that, your software will begin receiving and mailing Gateway occasions automatically. Should your application fails to send an Identify event in time, it will be terminated and the interconnection will be closed.