Пример #1
0
    async def youtube(self, ctx, *, query: utils.Query(multi=False, type='video')):
        """Searches YouTube for your query.

        Unlike search this does not search for multiple videos.
        """

        await self.show_entries(ctx, query)
Пример #2
0
    async def search(self, ctx, *, params: utils.Query(type='video')):
        """Searches YouTube for your query.

        If you don't pass in a subcommand, this will search for a video.
        If your query starts with a number you must put it in quotes.
        """

        await self.show_entries(ctx, params)
Пример #3
0
    async def search_livestream(self, ctx, *, params: utils.Query(type='video', eventType='live')):
        """Searches YouTube for a livestream."""

        await self.show_entries(ctx, params)
Пример #4
0
    async def search_playlist(self, ctx, *, params: utils.Query(type='playlist')):
        """Searches YouTube for a playlist."""

        await self.show_entries(ctx, params)
Пример #5
0
    async def search_channel(self, ctx, *, params: utils.Query(type='channel')):
        """Searches YouTube for a channel."""

        await self.show_entries(ctx, params)