Esempio n. 1
0
 public Task GetCurrentTournamentAsync()
 {
     // DoReadActionOnCurrentTournament will not run the action if the tournament is null. It'll send an
     // error message to the user instead.
     return(this.DoReadActionOnCurrentTournamentAsync(
                currentTournament => this.SendUserMessageAsync(
                    BotStrings.CurrentTournamentInGuild(this.Context.Guild.Name, currentTournament.Name))));
 }