Пример #1
0
 public async Task StopTriviaAsync()
 {
     if (!(await(triviaService?.StopTriviaAsync(new DiscordId(Context.Guild.Id, Context.Channel.Id, null))).ConfigureAwait(false)))
     {
         await ReplyAsync($"No trivia is running! Use {commandManager.GetPrefixAsync(Context.Guild)}trivia start to create a new one.").ConfigureAwait(false);
     }
 }
Пример #2
0
 public async Task StopTriviaAsync(CommandContext ctx)
 {
     if (!await(_triviaService?.StopTriviaAsync(ctx.Guild.Id, ctx.Channel.Id)))
     {
         await ctx.ErrorAsync($"No trivia is running! Use {ctx.Prefix}trivia to create a new one.");
     }
 }