Exemple #1
0
        public async Task ReplyMovieCollectionAsync(ulong chanId, string collectionName)
        {
            var search = await _client.SearchCollectionAsync(collectionName);

            if (search.Results.Count < 1)
            {
                await _discordMessage.SendDiscordMessageAsync(chanId, $"No Results Found for {collectionName}");

                return;
            }

            var collection = await _client.GetCollectionAsync(search.Results.First().Id);

            var embed = new DisukuEmbed
            {
                Title       = collection.Name,
                Description = collection.Overview,
                ImageUrl    = $"http://image.tmdb.org/t/p/w500{collection.BackdropPath}",
                Thumbnail   = $"http://image.tmdb.org/t/p/w500{collection.PosterPath}",
                Url         = $"https://www.themoviedb.org/collection/{collection.Id}",
                Footer      = $"Collection Size: {collection.Parts.Count}"
            };

            await _discordMessage.SendDiscordEmbedAsync(chanId, embed);
        }
 public async Task ReplyUserAsync(ulong chanId, DisukuUser user)
 {
     await _discordMessage.SendDiscordMessageAsync(chanId, user);
 }
Exemple #3
0
        public async Task ReplyGuildAsync(ulong chanId, DisukuGuild disukuGuild)
        {
            var guild = await _guildProvider.GetGuild(disukuGuild);

            await _discordMessage.SendDiscordMessageAsync(chanId, guild);
        }
Exemple #4
0
        public async Task Add(ulong chanId, Quote quote)
        {
            await _dataStore.Insert(quote, TableName);

            await _discordMessage.SendDiscordMessageAsync(chanId, "Quote should be added.");
        }