slash-help
discord-py-interactions slash command help
Join our Discord server to ask questions, report bugs, or suggest features!
Install:
pip install -U slash-help
Requirements (automatically installed when installing slash-help):
- discord-py-interactions (version 3.0.2)
- discord.py (version 1.7.3)
- dinteractions-Paginator
- thefuzz
- Levenshtein
Example:
Usage:
from discord_slash import SlashCommand
from discord.ext import commands
from slash_help import SlashHelp
bot = commands.Bot("your_prefix", help_command=None)
slash = SlashCommand(bot, sync_commands=True) # sync_commands=True preferred
help_slash = SlashHelp(bot, slash, "your_bot_token", dpy_command=True) # if you want a dpy command as well, and to show dpy commands in the help
# and its done!
More customized:
from discord_slash import SlashCommand
from discord.ext import commands
from slash_help import SlashHelp
bot = commands.Bot("your_prefix", help_command=None)
slash = SlashCommand(bot, sync_commands=True) # sync_commands=True preferred
help_slash = SlashHelp(bot, slash, "your_bot_token", dpy_command=True, auto_create=False)
@bot.command()
async def help(ctx, *, command=None):
await help_slash.send_help(ctx, command, prefix="your_prefix") # you can override the prefix here
# and also in SlashHelp()
@slash.slash(name="help")
async def _help(ctx, command=None):
await help_slash.send_help(ctx, command, guild_id=ctx.guild.id)
class SlashHelp
Arguments:
Required:
bot:Union[commands.Bot, discord.Client]- the bot variableslash:SlashCommand- the slash variabletoken:str- the bot token, required for fetching slash commands from Discord API
Optional:
guild_ids:Optional[List[int]] = None- a list of guild/server IDs to register the help slash commandguild_id:Optional[int] = None- what guild ID to use for getting guild commands
Keyword Arguments:
color:Optional[discord.Color] = discord.Color.default()- the color of the embedcolour- alias ofcolortimeout:Optional[int] = 60- the number of seconds till paginator timeout, specifyNonefor 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_name:Optional[str] = "No Category"- value for the No Category fieldno_category_description:Optional[str] = "No description"- value for the No Category description fieldextended_buttons:Optional[bool] = True- to use the first and last buttonsuse_select:Optional[bool] = True- whether to use the selectauthor_only:Optional[bool] = False- whether to have buttons work only for the authoruse_subcommand:Optional[bool] = False- to have a subcommand/help bot_namebot_name:Optional[str] = None- needed to useuse_subcommanddpy_command:Optional[bool] = False- whether to make a discord.py command as wellmax_search_results:Optional[int] = 12- maximum search resultssync_commands:Optional[bool] = False- if you want to get commands every single timeblacklist:Optional[List[str]] = None- commands or cogs to blacklist, case sensitiveprefix:Optional[str] = None- overridesbot.command_prefix
Metadata
Release files for slash-help 2.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slash_help-2.0.5.tar.gz | 21.4 kB | Without provenance | Details for slash_help-2.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slash_help-2.0.5-py3-none-any.whl | Python 3 | none | any | Details for slash_help-2.0.5-py3-none-any.whl |
Total release size: 41.6 kB
Release files / slash_help-2.0.5.tar.gz
| Download URL | slash_help-2.0.5.tar.gz |
|---|---|
| Size | 21.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95ad8eb1399d701d37424f7683600b67b47976823aa5bd699cce504c8d8dc0a9
|
|
BLAKE2b-256 checksum How to use checksums |
b161c852712de0d957931987b1463665f889d0d6acfca5febf2b7e2e25242244
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / slash_help-2.0.5-py3-none-any.whl
| Download URL | slash_help-2.0.5-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f54c0ddd886305a5a576a9111e28eabc3702df44d6bef923a739597e095b9293
|
|
BLAKE2b-256 checksum How to use checksums |
1b53790afefa0f332cc922993a5bf4140b487221bfbfda9e235a6b458d2f97fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for slash-help 2.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.