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.
|
- class Program
- {
- private static DiscordBotClient _client;
- static void Main(string[] args)
- {
- var client = new DiscordClient(new DiscordClientConfig {
- //Warning: Debug mode should only be used for identifying problems. It _will_ slow your application down.
- LogLevel = LogMessageSeverity.Debug
- });
- client.LogMessage += (s, e) => Console.WriteLine($"[{e.Severity}] {e.Source}: {e.Message}");
-
- client.Run(async () =>
- {
- await client.Connect("discordtest@email.com", "Password123");
- if (!client.Servers.Any())
- await client.AcceptInvite("aaabbbcccdddeee");
- });
- }
- }
|