public async Task <bool> OnAccept(SessionContext context) { if (await Message.Channel.GetMessageAsync(Message.Id) is IUserMessage msg) { await msg.DeleteAsync(); } using (var mdb = new Database.ManagmentContext(_config)) { var info = await Moderation.MuteUserAysnc(User, MuteRole, null, UserRole, mdb, (Fun.GetRandomValue(365) * 24) + 24, "Chciał to dostał :)"); await Moderation.NotifyAboutPenaltyAsync(User, NotifChannel, info, "Sanakan"); await Message.Channel.SendMessageAsync("", embed : $"{User.Mention} został wyciszony.".ToEmbedMessage(EMType.Success).Build()); } return(true); }