{"id":13410725,"url":"https://github.com/DisnakeDev/disnake","last_synced_at":"2025-03-14T16:33:00.767Z","repository":{"id":36959377,"uuid":"400763760","full_name":"DisnakeDev/disnake","owner":"DisnakeDev","description":"An API wrapper for Discord written in Python.","archived":false,"fork":false,"pushed_at":"2024-05-19T15:39:01.000Z","size":22242,"stargazers_count":701,"open_issues_count":94,"forks_count":135,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-05-20T13:27:56.733Z","etag":null,"topics":["application-commands","bot","context-menus","discord","discord-api","discord-bot","discord-py","hacktoberfest","interactions","message-components","python","slash-commands"],"latest_commit_sha":null,"homepage":"https://docs.disnake.dev","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/DisnakeDev.png","metadata":{"files":{"readme":"README.md","changelog":"changelog/1014.feature.rst","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-28T10:24:13.000Z","updated_at":"2024-05-29T23:12:54.325Z","dependencies_parsed_at":"2023-10-14T21:09:00.922Z","dependency_job_id":"fb42ceb1-729a-44fc-939f-d9e6781d50be","html_url":"https://github.com/DisnakeDev/disnake","commit_stats":{"total_commits":4497,"total_committers":390,"mean_commits":11.53076923076923,"dds":"0.48721369802090286","last_synced_commit":"f0ddf792ab9a21aaa967ece01e479463c21305c3"},"previous_names":[],"tags_count":95,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DisnakeDev%2Fdisnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DisnakeDev%2Fdisnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DisnakeDev%2Fdisnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DisnakeDev%2Fdisnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DisnakeDev","download_url":"https://codeload.github.com/DisnakeDev/disnake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242820747,"owners_count":20190633,"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":["application-commands","bot","context-menus","discord","discord-api","discord-bot","discord-py","hacktoberfest","interactions","message-components","python","slash-commands"],"created_at":"2024-07-30T20:01:08.689Z","updated_at":"2025-03-14T16:33:00.106Z","avatar_url":"https://github.com/DisnakeDev.png","language":"Python","readme":"\u003c!-- SPDX-License-Identifier: MIT --\u003e\n\n[![Disnake Banner](https://raw.githubusercontent.com/DisnakeDev/disnake/master/assets/banner.png)](https://disnake.dev/)\n\ndisnake\n=======\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/DisnakeDev/disnake/lint-test.yml?branch=master\u0026style=flat-square\"\u003e\u003c/img\u003e\n    \u003ca href=\"https://discord.gg/disnake\"\u003e\u003cimg src=\"https://img.shields.io/discord/808030843078836254?style=flat-square\u0026color=5865f2\u0026logo=discord\u0026logoColor=ffffff\u0026label=discord\" alt=\"Discord server invite\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/disnake/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/disnake.svg?style=flat-square\" alt=\"PyPI version info\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/disnake/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/pyversions/disnake.svg?style=flat-square\" alt=\"PyPI supported Python versions\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/DisnakeDev/disnake/commits\"\u003e\u003cimg src=\"https://img.shields.io/github/commit-activity/w/DisnakeDev/disnake.svg?style=flat-square\" alt=\"Commit activity\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nA modern, easy to use, feature-rich, and async-ready API wrapper for Discord written in Python.\n\nKey Features\n------------\n\n- Proper rate limit handling.\n- Type-safety measures.\n- [FastAPI](https://fastapi.tiangolo.com/)-like slash command syntax.\n\n\u003csup\u003eThe syntax and structure of `discord.py 2.0` is preserved.\u003c/sup\u003e\n\nInstalling\n----------\n\n**Python 3.8 or higher is required.**\n\nTo install the library without full voice support, you can just run the\nfollowing command:\n\n``` sh\n# Linux/macOS\npython3 -m pip install -U disnake\n\n# Windows\npy -3 -m pip install -U disnake\n```\n\nInstalling `disnake` with full voice support requires you to replace `disnake` here, with `disnake[voice]`. To learn more about voice support (or installing the development version), please visit [this section of our guide](https://guide.disnake.dev/prerequisites/installing-disnake/).\n\n(You can optionally install [PyNaCl](https://pypi.org/project/PyNaCl/) for voice support.)\n\nNote that voice support on Linux requires installation of `libffi-dev` and `python-dev` packages, via your preferred package manager (e.g. `apt`, `dnf`, etc.) before running the following commands.\n\nVersioning\n----------\n\nThis project does **not** quite follow semantic versioning; for more details, see [version guarantees](https://docs.disnake.dev/en/latest/version_guarantees.html).\n\nTo be on the safe side and avoid unexpected breaking changes, pin the dependency to a minor version (e.g. `disnake==a.b.*` or `disnake~=a.b.c`) or an exact version (e.g. `disnake==a.b.c`).\n\nQuick Example\n-------------\n\n### Slash Commands Example\n\n``` py\nimport disnake\nfrom disnake.ext import commands\n\nbot = commands.InteractionBot(test_guilds=[12345])\n\n@bot.slash_command()\nasync def ping(inter):\n    await inter.response.send_message(\"Pong!\")\n\nbot.run(\"BOT_TOKEN\")\n```\n\n### Context Menus Example\n\n``` py\nimport disnake\nfrom disnake.ext import commands\n\nbot = commands.InteractionBot(test_guilds=[12345])\n\n@bot.user_command()\nasync def avatar(inter, user):\n    embed = disnake.Embed(title=str(user))\n    embed.set_image(url=user.display_avatar.url)\n    await inter.response.send_message(embed=embed)\n\nbot.run(\"BOT_TOKEN\")\n```\n\n### Prefix Commands Example\n\n``` py\nimport disnake\nfrom disnake.ext import commands\n\nbot = commands.Bot(command_prefix=commands.when_mentioned)\n\n@bot.command()\nasync def ping(ctx):\n    await ctx.send(\"Pong!\")\n\nbot.run(\"BOT_TOKEN\")\n```\n\nYou can find more examples in the [examples directory](https://github.com/DisnakeDev/disnake/tree/master/examples).\n\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://docs.disnake.dev/\"\u003eDocumentation\u003c/a\u003e\n    ⁕\n    \u003ca href=\"https://guide.disnake.dev/\"\u003eGuide\u003c/a\u003e\n    ⁕\n    \u003ca href=\"https://discord.gg/disnake\"\u003eDiscord Server\u003c/a\u003e\n    ⁕\n    \u003ca href=\"https://discord.gg/discord-developers\"\u003eDiscord Developers\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n","funding_links":[],"categories":["API Libraries","Python","💻 API Libraries","Forks and Wrappers","Libraries"],"sub_categories":["Miscellaneous","Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDisnakeDev%2Fdisnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDisnakeDev%2Fdisnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDisnakeDev%2Fdisnake/lists"}