private async Task <CommandResponse> FailCommandAsync(Message message, string reason) { _responseBuilder.Clear(); _responseBuilder.FailWithDescription(reason) .WithFooter(_config.Footer); var response = _responseBuilder.Build(); await message.Channel.ReplyToAsync(message, response).ConfigureAwait(false); return(response); }
protected async Task <CommandResponse> FailCommandAsync(Message message, string reason, Discord.Color color, string title = null) { _responseBuilder.Clear(); _responseBuilder.WithFooter(_config.Footer) .FailWithDescription(reason) .WithColor(color); if (title != null) { _responseBuilder.WithTitle(title); } var response = _responseBuilder.Build(); await message.Channel.ReplyToAsync(message, response).ConfigureAwait(false); return(response); }