Skip to content

Releases: 0xDevansh/djs-marshal

v1.0.1

27 Dec 11:10
Compare
Choose a tag to compare

v1.0.1 - For every release, there shall be a patch

Changes

  • Added a Setup section to README
  • All handlers are now exported

v1.0.0

27 Dec 04:42
Compare
Choose a tag to compare

v1.0.0 - Upgrades, people, upgrades

Changes:

  • Major changes to SlashCommand
    • Added a parameter, commandType, which is "global" | "allGuild" | "guild"
      • global is a global command
      • allGuild gets registered to every guild the bot is in
      • guild is only for a specific guild
        • commandType guild requires the guildId parameter
    • Added a parameter allowWithPermission, which is a string[]
      • Accepts permission strings
      • Only members who have any of the permissions will be able to use the command
      • The command will be disabled or greyed out for others
      • This needs the GUILD_MEMBERS intent to sync permissions with all members
  • Commands are now automatically registered when the bot joins a guild
  • Command syncing for guilds is now more efficient

What's next?

The planned next version for djs-marshal will have support for automatically executing Button and SelectMenu interactions

v0.3.1

22 Dec 13:24
Compare
Choose a tag to compare

For every release, there shall be a patch!

  • Updated README to include logger info
  • Rebuilt docs
  • Ignore docs from npm package

v0.3.0

22 Dec 10:43
Compare
Choose a tag to compare

This releases is all based on logging!

New features

  • logLevel, logStyle and logMethod parameters added while creating a bot using initializeBot()
  • logLevel defines what level of logs should be logged to the console.
    • verbose logs all messages.
    • warn logs only warnings
    • erroronly logs only errors
  • logStyle is the formatting with which messages are logged.
    • none simply prints the message
    • simple specifies the type of log
    • complex also specifies the time of the log
  • logMethod is a function you can provide to implement your own logging. It will override any other logging option(s) you have set.

What's next?

For the next version in the works, commands and the way they are handled will be overhauled. This will be a major release (v1.0.0), and will aim to provide options for command handling for every situation.