tgstation-server 6.5.0
The /tg/station 13 server suite
|
ChatConnectionStringBuilder for ChatProvider.Discord. More...
Public Member Functions | |
DiscordConnectionStringBuilder () | |
Initializes a new instance of the DiscordConnectionStringBuilder class. More... | |
DiscordConnectionStringBuilder (string connectionString) | |
Initializes a new instance of the DiscordConnectionStringBuilder class. More... | |
override string | ToString () |
Gets the ChatBotSettings.ConnectionString associated with the ChatConnectionStringBuilder.
| |
abstract override string | ToString () |
Gets the ChatBotSettings.ConnectionString associated with the ChatConnectionStringBuilder. More... | |
Properties | |
override bool | Valid [get] |
string? | BotToken [get, set] |
The Discord bot token. More... | |
bool | DeploymentBranding [get, set] |
If the tgstation-server logo is shown in deployment embeds. More... | |
DiscordDMOutputDisplayType | DMOutputDisplay [get, set] |
The DiscordDMOutputDisplayType. More... | |
Properties inherited from Tgstation.Server.Api.Models.Internal.ChatConnectionStringBuilder | |
abstract bool | Valid [get] |
If the ChatConnectionStringBuilder evaluates to a valid ChatBotSettings.ConnectionString. More... | |
Private Attributes | |
readonly bool | unusedFlag |
Currently unused. Note its origin in based meme before repurposing. More... | |
ChatConnectionStringBuilder for ChatProvider.Discord.
Definition at line 11 of file DiscordConnectionStringBuilder.cs.
Tgstation.Server.Api.Models.DiscordConnectionStringBuilder.DiscordConnectionStringBuilder | ( | ) |
Initializes a new instance of the DiscordConnectionStringBuilder class.
Definition at line 40 of file DiscordConnectionStringBuilder.cs.
Tgstation.Server.Api.Models.DiscordConnectionStringBuilder.DiscordConnectionStringBuilder | ( | string | connectionString | ) |
Initializes a new instance of the DiscordConnectionStringBuilder class.
connectionString | The connection string. |
Definition at line 48 of file DiscordConnectionStringBuilder.cs.
References Tgstation.Server.Api.Models.DiscordConnectionStringBuilder.BotToken, Tgstation.Server.Api.Models.DiscordConnectionStringBuilder.DeploymentBranding, Tgstation.Server.Api.Models.DiscordConnectionStringBuilder.DMOutputDisplay, and Tgstation.Server.Api.Models.DiscordConnectionStringBuilder.unusedFlag.
|
virtual |
Gets the ChatBotSettings.ConnectionString associated with the ChatConnectionStringBuilder.
Implements Tgstation.Server.Api.Models.Internal.ChatConnectionStringBuilder.
|
private |
Currently unused. Note its origin in based meme before repurposing.
Definition at line 35 of file DiscordConnectionStringBuilder.cs.
Referenced by Tgstation.Server.Api.Models.DiscordConnectionStringBuilder.DiscordConnectionStringBuilder().
|
getset |
The Discord bot token.
See https://discordapp.com/developers/docs/topics/oauth2#bots
Definition at line 20 of file DiscordConnectionStringBuilder.cs.
Referenced by Tgstation.Server.Api.Models.DiscordConnectionStringBuilder.DiscordConnectionStringBuilder().
|
getset |
If the tgstation-server logo is shown in deployment embeds.
Definition at line 25 of file DiscordConnectionStringBuilder.cs.
Referenced by Tgstation.Server.Api.Models.DiscordConnectionStringBuilder.DiscordConnectionStringBuilder().
|
getset |
The DiscordDMOutputDisplayType.
Definition at line 30 of file DiscordConnectionStringBuilder.cs.
Referenced by Tgstation.Server.Api.Models.DiscordConnectionStringBuilder.DiscordConnectionStringBuilder().
|
get |
Definition at line 14 of file DiscordConnectionStringBuilder.cs.