discord-ext-help

A discord.py extension that automatically generates interaction help commands.


Keywords
discord, discord-py
License
MIT
Install
pip install discord-ext-help==1.0.1

Documentation

discord.ext.help

Note

The specification has changed from the legacy version (0.x), and this library now only supports help generation for application commands.

A discord.py extension that automatically generates interaction help commands.

Dependency

This library is not guaranteed to be compatible with the discord.py fork (Because the reactionmenu used in this library is probably dedicated to discord.py).

Also, for pycord, you can reproduce the behavior of this library by using discord.ext.pages.

How To Use

Install

pip install discord-ext-help

example

import discord
from discord.ext import commands
from discord_ext_help.help import extension as helpext

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())
deh = helpext(bot)

@bot.event
async def setup_hook():
    command = await bot.tree.sync()
    await deh.regist_ids(command)

@bot.tree.command(
    name="help", description="show help"
)
async def help(interaction: discord.Interaction):
    await interaction.response.defer()
    await generate(interaction)

bot.run(token)