Releases: 0xDevansh/djs-marshal
Releases · 0xDevansh/djs-marshal
v1.0.1
v1.0.0
v1.0.0 - Upgrades, people, upgrades
Changes:
- Major changes to SlashCommand
- Added a parameter,
commandType
, which is"global" | "allGuild" | "guild"
global
is a global commandallGuild
gets registered to every guild the bot is inguild
is only for a specific guild- commandType
guild
requires theguildId
parameter
- commandType
- Added a parameter
allowWithPermission
, which is astring[]
- 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
- Added a parameter,
- 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
v0.3.0
This releases is all based on logging!
New features
logLevel
,logStyle
andlogMethod
parameters added while creating a bot usinginitializeBot()
logLevel
defines what level of logs should be logged to the console.verbose
logs all messages.warn
logs only warningserroronly
logs only errors
logStyle
is the formatting with which messages are logged.none
simply prints the messagesimple
specifies the type of logcomplex
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.