معرفی شرکت ها


discord-class-commands-1.1.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A discord.py extension module to facilitate class-based creation of application commands.
ویژگی مقدار
سیستم عامل -
نام فایل discord-class-commands-1.1.0
نام discord-class-commands
نسخه کتابخانه 1.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Dolfies
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/dolfies/discord-class-commands
آدرس اینترنتی https://pypi.org/project/discord-class-commands/
مجوز MIT
discord-class-commands ======================= .. image:: https://discord.com/api/guilds/514232441498763279/embed.png :target: https://discord.gg/TvqYBrGXEm :alt: Discord server invite .. image:: https://img.shields.io/pypi/v/discord-class-commands.svg :target: https://pypi.python.org/pypi/discord-class-commands :alt: PyPI version info .. image:: https://img.shields.io/pypi/pyversions/discord-class-commands.svg :target: https://pypi.python.org/pypi/discord-class-commands :alt: PyPI supported Python versions An extension module for discord.py that facilitates class-based creation of Discord application commands. Credits ------- - `discord.py <https://github.com/Rapptz/discord.py>`_: Docs and various code snippets. - `IAmTomahawkx <https://github.com/IAmTomahawkx>`_: Initial idea and design. Key Features ------------- - Modern Pythonic API using ``async`` and ``await``. - Proper rate limit handling. - Optimised in both speed and memory. - Fully compatible with discord.py's application command implementation without monkey-patching. Installing ---------- **Python 3.8 or higher is required** To install the extension, you can just run the following command: .. code:: sh # Linux/macOS python3 -m pip install -U discord-class-commands # Windows py -3 -m pip install -U discord-class-commands To install the development version, do the following: .. code:: sh $ git clone https://github.com/dolfies/discord-class-commands $ cd discord.py $ python3 -m pip install -U . This extension depends on version 2.0 of discord.py or a compatible fork. Quick Example -------------- .. code:: py import discord from discord.ext import class_commands client = discord.Client(intents=discord.Intents.default()) tree = discord.app_commands.CommandTree(client) @client.event async def setup_hook(): await tree.sync() class Ping(class_commands.SlashCommand): async def callback(self): await self.send(f'Pong!') tree.add_command(Ping) client.run('token') You can find more examples in the examples directory. Links ------ - `Documentation <https://discord-class-commands.readthedocs.io/en/latest/index.html>`_ - `discord.py Documentation <https://discordpy.readthedocs.io/en/latest/index.html>`_ - `Official Discord Server <https://discord.gg/TvqYBrGXEm>`_ - `Discord API <https://discord.gg/discord-api>`_


نیازمندی

مقدار نام
==4.4.0 sphinx
==1.1.2 sphinxcontrib-trio
- sphinxcontrib-websupport
- typing-extensions


زبان مورد نیاز

مقدار نام
>=3.8.0 Python


نحوه نصب


نصب پکیج whl discord-class-commands-1.1.0:

    pip install discord-class-commands-1.1.0.whl


نصب پکیج tar.gz discord-class-commands-1.1.0:

    pip install discord-class-commands-1.1.0.tar.gz