コード例 #1
0
        public async Task Queue()
        {
            var guildId = ((SocketGuildChannel)Context.Channel).Guild.Id;

            var queueItems = _queueFactory.GetByGuildId(guildId).ToList();

            var embedBuilder = new EmbedBuilder()
            {
                Color  = EmbedConstants.EmbedColor,
                Title  = $"Queue items in {((SocketGuildChannel)Context.Channel).Guild.Name}",
                Fields = await PrepareEmbedFieldBuilders(queueItems),
                Footer = PrepareFooterBuilder(queueItems.LongCount())
            };

            await ReplyAsync("", false, embedBuilder.Build());
        }