Exemplo n.º 1
0
        public virtual async Task ListAsync()
        {
            string result = await SocialMedia.ListSavedSocialMediaUsers(Context.Guild.Id, SocialMediaType, Context.Message.MentionedChannels.ElementAt(0).ToString());

            var embed = new EmbedBuilder()
                        .WithDescription(result)
                        .Build();

            await SendMessage(embed);
        }
Exemplo n.º 2
0
        public void ListSocialMediaUsers_Test_Success()
        {
            var result = _socialMedia.ListSavedSocialMediaUsers(123456789, SocialMediaEnum.Twitter).GetAwaiter().GetResult();

            Assert.Equal(string.Empty, result);
        }