Releases: TCMine/botpanel.js
Releases · TCMine/botpanel.js
Support for Bot Panel 1.5
GuildChangeInteraction: Added support for custom message responses.GuildChangeInteractionBREAKING: 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
ERRORevent. - WebSocket connection version is now
1.1.0.
Install with NPM:
npm install botpanel.js@1.2Guild elements + more
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 forComponentType. - New export:
BP_VERSION(Current supported Bot Panel version. You may fail to login if this value is outdated.)
First release
Initial Release - Fully supports all current Bot Panel features.
Also available on npm:
npm i botpanel.js