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); }
public DialogueBoxCallback( InteractiveService interactive, SocketCommandContext sourceContext, DialogueBox Dialogue, ICriterion <SocketReaction> criterion = null) { Interactive = interactive; Context = sourceContext; Criterion = criterion ?? new EmptyCriterion <SocketReaction>(); _dialogue = Dialogue; }