DiscordRestApi.this

Creates an API client.

class DiscordRestApi
this
(
string botToken
,
string yourBotUrl
,)

Parameters

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