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(comamnds.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')

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.0.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

discake-0.0.4-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file discake-0.0.4.tar.gz.

File metadata

  • Download URL: discake-0.0.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for discake-0.0.4.tar.gz
Algorithm Hash digest
SHA256 466818516a39b175eabe3af0d499923c85355d8be8c02acfc882529e722ef8e6
MD5 889be9921c40980d192dc4a970dfae6e
BLAKE2b-256 701f425a7161803337f13f4bd38eeb167395bdc653c783e88bccd4f52a2d063e

See more details on using hashes here.

File details

Details for the file discake-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: discake-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for discake-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c9b44c2e6d6332c80774a140dbba3ae6a8be81ba29a7b9906dbc93e713dbaecc
MD5 99a4c8772f34b52ac3a01e87ccca381b
BLAKE2b-256 0e1ee7ce91da59c68ae52989085670537e46d6716f66e815d094731cba8d1952

See more details on using hashes here.

Supported by

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