معرفی شرکت ها


discord-ext-slash-1.0.0b3


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Support slash commands with discord.py.
ویژگی مقدار
سیستم عامل -
نام فایل discord-ext-slash-1.0.0b3
نام discord-ext-slash
نسخه کتابخانه 1.0.0b3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده kenny2discord
ایمیل نویسنده kenny2minecraft@gmail.com
آدرس صفحه اصلی https://github.com/Kenny2github/discord-ext-slash
آدرس اینترنتی https://pypi.org/project/discord-ext-slash/
مجوز MIT
Support slash commands. Example Usage ~~~~~~~~~~~~~ .. code-block:: python from discord.ext import slash client = slash.SlashBot( # normal arguments to commands.Bot() command_prefix='.', description="whatever", # special option: modify all global commands to be # actually guild commands for this guild instead, # for the purposes of testing. Remove this argument # or set it to None to make global commands be # properly global - note that they take 1 hour to # propagate. Useful because commands have to be # re-registered if their API definitions are changed. debug_guild=staging_guild_id ) msg_opt = slash.Option( # description of option, shown when filling in description='Message to send', # this means that the slash command will not be invoked # if this argument is not specified required=True) @client.slash_cmd() # global slash command async def repeat( # command name ctx: slash.Context, # there MUST be one argument annotated with Context message: msg_opt ): """Make the bot repeat what you say""" # description of command # respond to the interaction, must be done within 3 seconds await ctx.respond(message) # string (or str()able) message client.run(token) Notes ~~~~~ * ``discord.ext.slash.Context`` emulates ``discord.ext.commands.Context``, but only to a certain extent. Notably, ``ctx.message`` does not exist, because slash commands can be run completely without the involvement of messages. However, channel and author information is still available. * All descriptions are **required**. * You must grant the bot ``applications.commands`` permissions in the OAuth2 section of the developer dashboard. See the `docs <https://discord-ext-slash.rtfd.io>`_.


نیازمندی

مقدار نام
<1.8,>=1.5 discord.py


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

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


نحوه نصب


نصب پکیج whl discord-ext-slash-1.0.0b3:

    pip install discord-ext-slash-1.0.0b3.whl


نصب پکیج tar.gz discord-ext-slash-1.0.0b3:

    pip install discord-ext-slash-1.0.0b3.tar.gz