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.

modules.cs 351 B

12345678910111213141516
  1. public class MyModule : InteractionModuleBase
  2. {
  3. private readonly MyService _service;
  4. public MyModule(MyService service)
  5. {
  6. _service = service;
  7. }
  8. [SlashCommand("things", "Shows things")]
  9. public async Task ThingsAsync()
  10. {
  11. var str = string.Join("\n", _service.Things)
  12. await RespondAsync(str);
  13. }
  14. }