{"repo":"IanMitchell/interaction-kit","free":true,"listed":false,"github":"https://github.com/IanMitchell/interaction-kit","clone":"git clone https://github.com/IanMitchell/interaction-kit.git","description":"Interaction Kit is a framework for creating Discord slash command bots over the HTTP API","language":"TypeScript","stars":118,"topics":["discord","javascript","discord-bot","discord-api","framework","slash-commands","interactions"],"license":null,"category":"chat-messaging","readme_excerpt":"Interaction Kit Our end strategy is being acquired by iCrawl 🚧 INTERACTION KIT IS UNDER CONSTRUCTION AND IS NOT READY FOR USE 🏗 Interaction Kit is a framework for creating Discord slash command bots over the HTTP API. HTTP vs Gateway TL;DR : you probably should be using discord.js unless you know why you're here. There are two ways for bots to recieve events from Discord. Most API wrappers such as discord.js use a WebSocket connection called a \"Gateway\" to receive events, but Interaction Kit receives Interaction events over HTTP. As such, there are some major points to keep in mind before deciding to use Interaction Kit. Gateway The Gateway is a WebSocket that a bot maintains with Discord whenever it is online, giving it events as they happen. The bot is able to subscribe to a wide array of events through Gateway Intents, allowing it to be notified on events such as message sends, a member changing their nickname or a guild changing its icon. This is the only way to receive the majority of events Discord provides, and when dealing with users or guilds you can generally be sure you are operating on current information with sufficient caching. The main drawback of the Gateway is that it requires your bot to maintain a connection with Discord at all times. While there are affordable hosts for smaller scale bots, scaling can become expensive quickly and some developers have very low budgets. HTTP HTTP-only bots are sent Interaction events through HTTP requests sent from Discord","default_branch":null,"files":null,"tree":[],"storefront":"/r/IanMitchell","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/IanMitchell/interaction-kit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}