Skip to main content

A discord py support library containing utilities.

Project description

Discord server invite PyPI version info PyPI supported Python versions

A discord py util library.

Key Features

  • Button Paginator

Installing

Python 3.8 or higher is required

# Linux/macOS
python3 -m pip install -U discake

# Windows
py -3 -m pip install -U discake

Quick Example

import discord
from discord import Embed, Intents
from discord.ext import commands
from discake import Paginator

class MyBot(commands.Bot):
    def __init__(self):
        super().__init__(command_prefix = '!')

    async def on_ready(self):
        print('Logged on as', self.user)

client = MyBot(intents=Intents.default())

@client.command(name = 'paginate', description = 'Pagination using the library')
async def _paginate(ctx):
    entry_list = []
    for i in range(0,20):
        embed = Embed(description = f'This is the {i}th page')
        entry_list.append(embed)
    paginate_object = Paginator(
            entries = entry_list,
            timeout = 10.0
    )
    await paginate_object.send(ctx)


client.run('TOKEN')

Author

Author Info

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discake-0.1.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

discake-0.1.0-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page