/dpyecm

A library to add more context menus that can be used in discord.py 2.0.

Primary LanguagePythonMIT LicenseMIT

PyPI PyPI - Python Version PyPI - Downloads PyPI - License Discord Buy Me a Coffee

dpyecm

A library to add more context menus that can be used in discord.py 2.0.
It is implemented by creating a context menu that displays a select box for selecting a context menu.

Example

...

from dpyecm import ExtendContextMenu

...

ecm = ExtendContextMenu(tree, discord.AppCommandType.user)

@discord.app_commands.context_menu()
async def show_id(interaction: discord.Interaction, member: discord.Member):
    await interaction.response.send_message(
        f"This member's id is `{member.id}`.", ephemeral=True
    )
ecm.add_context(test)

...

dpyecm

Documentation

Documentation is avaliable at here

License

MiT License