コード例 #1
0
ファイル: VoiceModule.cs プロジェクト: Zackattak01/BullyBot
 public async Task TeamspeakAsync()
 {
     if (teamspeakService.Enabled)
     {
         _ = teamspeakService.Disable();
         await Context.Channel.SendMessageAsync("Teamspeak was disabled");
     }
     else
     {
         _ = teamspeakService.Enable();
         await Context.Channel.SendMessageAsync("Teamspeak was enabled");
     }
 }