Skip to content

This is a package that will allow you to seamlessly integrate Discord interactions into your discord.js bot.

License

Notifications You must be signed in to change notification settings

duxcore/interactive-discord

Repository files navigation

Interactive Discord

Interactive discord is a library that will allow you to integrate discord interactions such as slash commands and message components into your discord.js bot.

Slash commands

Slash commands are Discord's integration of a command handeling system. Slash commands are there so that bot developers do not have to use a custom command prefix with every bot. The way that they work is that you will send the information about your command and Discord will display that command along with the build-in commands and commands from other bots. These commands will allow you to have many cool features such as command descriptions, command options, and much more.

If you would like to integrate this into your bot, you can refer to this for a full example with comments on how to integrate them into your bot.

NOTE: If you register or create too many commands too fast, you will get ratelimited by Discord.

Message Components

Message components are things like buttons and selections that you can add to a message. These componets are here to give bot developers more options when it comes to creating an immersive and interactive experience for users. This library will allow you to implement these components into your discord bot.

If you would like to integrate this into your bot, you can refer to this for a full example with comments on how to integrate them into your bot.

NOTE: Selection menus are currently in beta and hence only people with the experiment Bot UI Kit Select enabled can see and interact with them


Adds support for:

  • Slash Commands

    • Creating slash commands
    • Responding to slash commands
    • Editing/Deleting slash commands
  • Buttons

    • Creating and sending buttons
    • Responding to buttons
  • Selection Menus BETA

    • Creating and sending selection menus
    • Responding to selection menus