Slash commands help for discord-interactions
Project description
slash-help
discord-py-interactions v3 slash command help
Join our Discord server to ask questions, report bugs, or suggest features!
Example:
Usage:
from discord_slash import SlashCommand
from discord.ext import commands
from slash_help import SlashHelp
bot = commands.Bot("/")
slash = SlashCommand(bot, sync_commands=True) # sync_commands=True preferred
slash_help = SlashHelp(bot, slash)
# and its done!
Install:
pip install -U slash-help
class SlashHelp
Arguments:
Required:
bot
:Union[commands.Bot, discord.Client]
- the bot variableslash
:SlashCommand
- the slash variable
Optional:
guild_ids
:Optional[List[int]] = None
- a list of guild/server IDs to register /help
Kwargs:
color
:Optional[discord.Color] = discord.Color.default()
- the color of the embedcolour
- alias ofcolor
timeout
:Optional[int] = 60
- the number of seconds till paginator timeout, specifyNone
for no timeoutfields_per_embed
:Optional[int] = 4
- the number of fields per embedfooter
:Optional[str] = None
- footer for the embedsfront_description
:Optional[str] = None
- description in the first embedno_category_description
:Optional[str] = "No description"
- value for the No Category fieldextended_buttons
:Optional[bool] = True
- to use the first and last buttonsuse_select
:Optional[bool] = True
- whether to use the selectuse_subcommand
:Optional[bool] = False
- to have a subcommand/help bot_name
bot_name
:Optional[str] = None
- needed to useuse_subcommand
dpy_command
:Optional[bool] = False
- whether to make a discord.py command as well
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slash_help-1.3.0.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for slash_help-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00c40cc43745f55b21802db4e74a9c53d6b0433b289f11bfbd4c7948de538d21 |
|
MD5 | 31b9ca67a04ae8fa28d19cef2d980b07 |
|
BLAKE2b-256 | 3786f71df1ede2bfc042e3ceadf64c8686084ce4e206424ea5f9ad88110edb07 |