You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using Discord;
-
- public class Program
- {
- // Note: This is the light client, it only supports REST calls.
- private DiscordClient _client;
- static void Main(string[] args) => new Program().Start().GetAwaiter().GetResult();
-
- public async Task Start()
- {
- _client = new DiscordClient(new DiscordConfig() {
- LogLevel = LogSeverity.Info
- });
-
- _client.Log += (message) => Console.WriteLine($"{message.ToString()}");
-
- await _client.LoginAsync(TokenType.Bot, "bot token");
- }
- }
|