🎉 [1.5.0] - Slash commands
- Working slash commands (What are slash commands?)
- Created folder /slashes with all 5 working slash commands
- Edited command handler to visually match with event handler
- Edited bot invite link to have permission for creating new slash commands
- Installed discord-api-types, @discordjs/builders and @discordjs/rest
- Added interactionCreate event file to listen for slash commands
- Not important bug fixes
- Updated README file with new "What can this bot do?" title
- Sorted to-do list and added marking points
For enabling working slash commands, you need to:
- Type
npm install
(to update npm modules) in the console (ornpm i discord-api-types @discordjs/builders @discordjs/rest [email protected] [email protected] fs [email protected] minecraft-motd-util@latest [email protected] [email protected] [email protected]
if not working). - Invite your Discord bot with new invite link
https://discord.com/oauth2/authorize?client_id=BOT_USER_ID_HERE&scope=bot&permissions=11328&scope=applications.commands%20bot
(or just set inviteLink in config to true and click the link in console) (you don't have to kick your bot from the server)
You can remove the slash command by just deleting the file in /slashes or renaming it to an invalid file type (not .js)
If you need any help with setting up or using minecraft-bot you can contact me on Discord.
Join mine Discord support server