Skip to content

Releases: TCMine/botpanel.js

Support for Bot Panel 1.5

08 May 22:23
6569bf5

Choose a tag to compare

  • GuildChangeInteraction: Added support for custom message responses.
  • GuildChangeInteraction BREAKING: Moved all parameters to one unified object.
client.on('MODIFY_GUILD_DATA', (interaction) => {
   interaction.acknowledge({message: "Successfully updated.", success: true, newValue: "(New value)"})
})

This is still optional and acknowledge() will still return successful by default.

  • Client will now throw an error on any ERROR event.
  • WebSocket connection version is now 1.1.0.

Install with NPM:

npm install botpanel.js@1.2

Guild elements + more

04 Mar 02:52

Choose a tag to compare

  • GuildRequestInteraction: Support for sending guild elements (roles, channels, etc.) in guild interactions.
interaction.send({
  inGuild: true, 
  textChannels: [{name: "general", id: "123456780123456", position: 1}], //'position' is optional and defaults to 0
  roles: [{name: "Role 1", id: "654321087654321", managed: false}] //'managed' is optional and defaults to false
})

This interaction will also contain a list of elements requested by the dashboard (determined by which components are used). (.requestedElements)

  • GuildChangeInteraction: New optional parameter for .acknowledge() for displaying a new value on save (useful for displaying dynamically modified text input).
  • New enumerator for guild elements (ElementType) and new values for ComponentType.
  • New export: BP_VERSION (Current supported Bot Panel version. You may fail to login if this value is outdated.)

First release

01 Mar 17:11

Choose a tag to compare

Initial Release - Fully supports all current Bot Panel features.

Also available on npm:
npm i botpanel.js