示例#1
0
        public async Task <IUserMessage> SendDialogueBoxAsync(SocketCommandContext context,
                                                              DialogueBox dialogue,
                                                              ICriterion <SocketReaction> criterion = null)
        {
            var callback = new DialogueBoxCallback(this, context, dialogue, criterion);
            await callback.DisplayAsync().ConfigureAwait(false);

            return(callback.Message);
        }
示例#2
0
 public DialogueBoxCallback(
     InteractiveService interactive,
     SocketCommandContext sourceContext,
     DialogueBox Dialogue,
     ICriterion <SocketReaction> criterion = null)
 {
     Interactive = interactive;
     Context     = sourceContext;
     Criterion   = criterion ?? new EmptyCriterion <SocketReaction>();
     _dialogue   = Dialogue;
 }