2025.2 Releases May 2025!
Check it Out!
Bit
Bit Source CodeBug & Suggestion Tracker
2024.2
  • Bit
  • Docs
  • Bit Plugins
  • Bit Changelogs
  • Bit Hosted
2024.2
  • Welcome
  • Updating
  • Commands
  • FAQ
  • Install Plugins
  • Dev
    • Create Plugins
      • Commands
      • Events
      • Run function on bot startup
      • plugin.json
      • update.json
      • Updating to Bit 2024.2
      • Updating to Bit 2024.1
Powered by GitBook
LogoLogo

Copyright 2018-2025 Lockyz Media

On this page

Was this helpful?

Edit on GitHub
  1. Dev
  2. Create Plugins

Updating to Bit 2024.2

Bit 2024.2 changes very little, however we HIGHLY recommend following this guide to update.

This version of Bit will enter End of Support the 4th of July 2025.

This means it will only receive major bug fixing and security updates!

Use new context and installation types.

Discord.js officially released the ability to create user-installable apps as of discord.js 14.16.0, as such we've deprecated our old method for this and have switched to the official method.

Code to remove from commands

Copy

    // Sets if the command can be used with the bot as a user-installed app or a guild-installed app.
    integration_types: {
        user: true,
        guild: true,
    },
    // Sets if the command can be used in a guild-channel, the bots DMs or a private channel (only works IF the command is user-installable, group DMs and regular user DMs)
    context_types: {
		guildChannel: true,
		botDM: true,
		privateChannel: true,
	},

Code to add to commands

(Should be in the line JUST before async execute(interaction) and include the comma)

Copy

.setIntegrationTypes(0,1)
.setContexts(0,1,2)

Main config moved

Bits main config file has been moved to /configs/bit/ please be sure to update your imports if you use the values in Bits default config file.

Last updated 2 months ago

Was this helpful?