public static async Task MarkCmdFailedAsync(this SocketCommandContext context, string reason = "") { await context.Message.AddReactionAsync(new Emoji("⚠")).ConfigureAwait(false); if (!string.IsNullOrEmpty(reason)) { reason = $"(Reason: {reason})"; } var msg = $"{context.Guild}/{context.Channel}/{context.User.Username} '{context.Message.Content}' failed. {reason}"; await LoggingService.LogErrorAsync(msg, "Command").ConfigureAwait(false); #if !DEBUG await context.GetNotificationChannel().SendMessageAsync($"{context.GetOwner().Mention}\n{msg}").ConfigureAwait(false); #endif }