这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

tasuren/dpyecm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI PyPI - Python Version PyPI - Downloads PyPI - License Discord

IMPORTANT

This project is no longer maintained. Please use the hybrid commands of discord.py.

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages