The OpenD Programming Language

DiscordGatewayConnection.this

Prepare a gateway connection. After you construct it, you still need to call connect.

class DiscordGatewayConnection
this
(
string token
,
string yourBotUrl
,)

Parameters

token string

the bot authorization token you got from Discord

yourBotUrl string

a URL for your bot, used to identify the user-agent. Discord says it should not be null, but that seems to work.

yourBotVersion string

version number (or whatever) for your bot, used as part of the user-agent. Should not be null according to the docs but it doesn't seem to matter in practice.

Meta