Still in alpha stages, and rapid production. Feel free to suggest something via Discord.
Support
---------------------------
For support using Buttons, please join the official `support server
<http://discord.gg/JhW28zp>`_ on `Discord <https://discordapp.com/>`_.
Installation
---------------------------
**Buttons requires Python 3.6 or higher.**
**Windows**
.. code:: sh
py -version -m pip install buttons
**Linux**
.. code:: sh
python3 -m pip install buttons
Getting Started
----------------------------
A quick and easy paginator example:
.. code:: py
from discord.ext import commands
from discord.ext import buttons
class MyPaginator(buttons.Paginator):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@buttons.button(emoji='\u23FA')
async def record_button(self, ctx):
await ctx.send('This button sends a silly message! But could be programmed to do much more.')
@buttons.button(emoji='my_custom_emoji:1234567890')
async def silly_button(self, ctx):
await ctx.send('Beep boop...')
bot = commands.Bot(command_prefix='??')
@bot.command()
async def test(ctx):
pagey = MyPaginator(title='Silly Paginator', colour=0xc67862, embed=True, timeout=90, use_defaults=True,
entries=[1, 2, 3], length=1, format='**')
await pagey.start(ctx)
@bot.event
async def on_ready():
print('Ready!')
bot.run('TOKEN')
Metadata
Release files for buttons 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| buttons-0.0.4.tar.gz | 5.9 kB | Without provenance | Details for buttons-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| buttons-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for buttons-0.0.4-py3-none-any.whl |
Total release size: 11.7 kB
Security for buttons 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.