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.

Program.cs 898 B

1234567891011121314151617181920212223242526
  1. /*
  2. * This project, is at this moment used for testing and debugging the new and experimental Slash Commands.
  3. * After all testing has been done, and the project is ready to be integrated into the main Discord.Net ecosystem
  4. * this project should be re-made into one that could be used as an example usage of the new Slash Command Service.
  5. */
  6. using System;
  7. using System.Threading.Tasks;
  8. using Discord;
  9. using Discord.Commands;
  10. using Discord.SlashCommands;
  11. using Discord.WebSocket;
  12. namespace SlashCommandsExample
  13. {
  14. class Program
  15. {
  16. static void Main(string[] args)
  17. {
  18. Console.WriteLine("Hello World!");
  19. DiscordClient discordClient = new DiscordClient();
  20. // This could instead be handled in another thread, if for whatever reason you want to continue execution in the main Thread.
  21. discordClient.RunAsync().GetAwaiter().GetResult();
  22. }
  23. }
  24. }