コード例 #1
0
 private async Task OnStartedAsync(SocketUserWaitContext arg)
 {
     StartMessage = await OutputChannel.SendMessageAsync($"**{Name}:** Type `{Format.Sanitize(Confirmation)}` to complete or type `cancel` to stop").ConfigureAwait(false);
 }
コード例 #2
0
 private async Task OnExpiredAsync(SocketUserWaitContext arg)
 {
     await OutputChannel.SendMessageAsync($"**{Name}:** Timed out!").ConfigureAwait(false);
 }
コード例 #3
0
 private async Task OnCanceledAsync(SocketUserWaitContext arg)
 {
     await OutputChannel.SendMessageAsync($"**{Name}:** Was canceled!").ConfigureAwait(false);
 }