{"id":16160782,"url":"https://github.com/kenny2github/discord-ext-slash","last_synced_at":"2025-03-18T22:30:28.984Z","repository":{"id":52423872,"uuid":"326769936","full_name":"Kenny2github/discord-ext-slash","owner":"Kenny2github","description":"UNMAINTAINED, use discord.py - Support slash commands with an extension to Rapptz/discord.py","archived":true,"fork":false,"pushed_at":"2025-02-03T23:39:19.000Z","size":161,"stargazers_count":15,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-12T21:44:30.207Z","etag":null,"topics":["discord","discord-bot","discord-py","slash-commands"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/discord-ext-slash/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kenny2github.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-04T18:13:40.000Z","updated_at":"2025-02-03T23:39:33.000Z","dependencies_parsed_at":"2022-09-11T22:01:28.251Z","dependency_job_id":null,"html_url":"https://github.com/Kenny2github/discord-ext-slash","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny2github%2Fdiscord-ext-slash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny2github%2Fdiscord-ext-slash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny2github%2Fdiscord-ext-slash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny2github%2Fdiscord-ext-slash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kenny2github","download_url":"https://codeload.github.com/Kenny2github/discord-ext-slash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244318094,"owners_count":20433834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-bot","discord-py","slash-commands"],"created_at":"2024-10-10T02:04:42.778Z","updated_at":"2025-03-18T22:30:28.979Z","avatar_url":"https://github.com/Kenny2github.png","language":"Python","readme":"⚠️ Archived\n============\nPlease use the native features available in discord.py.\n\n----\n\nSupport slash commands.\n\nExample Usage\n~~~~~~~~~~~~~\n\n.. code-block:: python\n\n    from discord.ext import slash\n    client = slash.SlashBot(\n        # normal arguments to commands.Bot()\n        command_prefix='.', description=\"whatever\",\n        # special option: modify all global commands to be\n        # actually guild commands for this guild instead,\n        # for the purposes of testing. Remove this argument\n        # or set it to None to make global commands be\n        # properly global - note that they take 1 hour to\n        # propagate. Useful because commands have to be\n        # re-registered if their API definitions are changed.\n        debug_guild=staging_guild_id\n    )\n\n    msg_opt = slash.Option(\n        # description of option, shown when filling in\n        description='Message to send',\n        # this means that the slash command will not be invoked\n        # if this argument is not specified\n        required=True)\n\n    @client.slash_cmd() # global slash command\n    async def repeat( # command name\n        ctx: slash.Context, # there MUST be one argument annotated with Context\n        message: msg_opt\n    ):\n        \"\"\"Make the bot repeat what you say\"\"\" # description of command\n        # respond to the interaction, must be done within 3 seconds\n        await ctx.respond(message) # string (or str()able) message\n\n    client.run(token)\n\nNotes\n~~~~~\n\n* ``discord.ext.slash.Context`` emulates\n  ``discord.ext.commands.Context``, but only to a certain extent.\n  Notably, ``ctx.message`` does not exist, because slash commands can be run\n  completely without the involvement of messages. However, channel and author\n  information is still available.\n* All descriptions are **required**.\n* You must grant the bot ``applications.commands`` permissions in the OAuth2 section of the developer dashboard.\n\nSee the `docs \u003chttps://discord-ext-slash.rtfd.io\u003e`_.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenny2github%2Fdiscord-ext-slash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenny2github%2Fdiscord-ext-slash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenny2github%2Fdiscord-ext-slash/lists"}