Socket
Socket
Sign inDemoInstall

discord-slash-components-bridge

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord-slash-components-bridge

Library for discord-components and discord-py-interactions(discord-slash).


Maintainers
1

Readme

discord-py-slash-components-bridge

Bridge for discord-interactions and discord-components

PyPI downloads

Welcome

discord-interactions and discord-components are incompatible and this bridge can compatible these libs.

This lib overrides discord-interaction classes and methods for working with discord-components components(Selects and Buttons)

How to use?


from discord.ext import commands

#from discord_slash import SlashCommand # No need anymore

from discord_slash_components_bridge import SlashCommand



bot = commands.Bot(...)

slash = SlashCommand(bot, ...)



Migration from discord-components

If you have used this, then I prepared for you some things.

  • Events button_click and select_option have been saved.

  • Event interaction now is component.

  • Interaction is not available to use. Now it's ComponentContext and now you need use methods of ComponentContext

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc