Class DiscordTokens
Contains the discord token and IDs.
Inheritance
Implements
Inherited Members
Namespace: Color_Chan.Discord.Core
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordTokens : IEquatable<DiscordTokens>
Constructors
| Improve this Doc View SourceDiscordTokens(String, String, UInt64)
Initializes a new instance of DiscordTokens.
Declaration
public DiscordTokens(string botToken, string publicToken, ulong applicationId)
Parameters
Type | Name | Description |
---|---|---|
System.String | botToken | The bot token of your application. This can be found at https://discord.com/developers/applications/APPLICATION_ID/bot |
System.String | publicToken | The public token of your application. This can be found at https://discord.com/developers/applications/APPLICATION_ID/information |
System.UInt64 | applicationId | The ID of your application. This can be found at https://discord.com/developers/applications/APPLICATION_ID/information |
Properties
| Improve this Doc View SourceApplicationId
The ID of your application. This can be found at https://discord.com/developers/applications/APPLICATION_ID/information
Declaration
public ulong ApplicationId { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
BotToken
The bot token of your application. This can be found at https://discord.com/developers/applications/APPLICATION_ID/bot
Declaration
public string BotToken { get; }
Property Value
Type | Description |
---|---|
System.String |
PublicToken
The public token of your application. This can be found at https://discord.com/developers/applications/APPLICATION_ID/information
Declaration
public string PublicToken { get; set; }
Property Value
Type | Description |
---|---|
System.String |