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)
...
Documentation
Documentation is avaliable at here
License
MiT License