public async Task DeleteModule(ulong id) { try { if (!Privileg.CheckById(Context.User.Id, Privileg.owner)) { await Context.Channel.SendMessageAsync(embed : Classes.Embed.New(Context.Message.Author, Field.CreateFieldBuilder("warning", "You are not my god!"), Colors.warning)); Log.Warning($"command - data vote delete - user:{Context.User.Id} channel:{Context.Channel.Id} privileg to low"); return; } Log.Information($"command - data vote delete - start user:{Context.User.Id} channel:{Context.Channel.Id} command:{Context.Message.Content}"); try { await Context.Channel.SendMessageAsync(embed : Classes.Embed.New(Context.Message.Author, Field.CreateFieldBuilder("vote", $"rows affected: {Vote.DeleteById(id)}"), Colors.information)); } catch (Exception e) { await Context.Channel.SendMessageAsync(embed : Classes.Embed.New(Context.Message.Author, Field.CreateFieldBuilder("error", e.Message), Colors.error)); throw e; } } catch (Exception ex) { Log.Error($"command - data vote delete - user:{Context.User.Id} channel:{Context.Channel.Id} error:{ex.Message}"); } }