Пример #1
0
 private Task OnMessageSent(IReplyContext context, IUserMessage message)
 {
     lock (InstanceCommandLock)
     {
         HasReplied = true;
         if (AwaitMessage != null)
         {
             AwaitMessage.DeleteAsync().Wait();
             AwaitMessage = null;
         }
     }
     return(Task.CompletedTask);
 }
Пример #2
0
 public ReplyContainer(IReplyContext context)
 {
     this.context = context;
 }