Пример #1
0
        public async Task GetMuteRoleAsync()
        {
            var roleId = _moderation.GetMutedRoleId(Context.Guild.Id);

            if (roleId == 0)
            {
                await ReplyAsync($"There is currently no muted role active.");

                return;
            }

            var role = Context.Guild.GetRole(roleId);

            await ReplyAsync("", false, new EmbedBuilder()
            {
                Title       = $"Muted Role",
                Description = $"{role.Mention} ({role.Id})",
                Color       = Color.DarkBlue
            }
                             .Build());
        }