Skip to content

v1.2.0

Compare
Choose a tag to compare
@totigm totigm released this 14 Jan 11:16
· 2 commits to main since this release

✨ Add Map for Command Arguments

Introduced a feature to map command arguments to their respective values. This enhancement facilitates the efficient handling and retrieval of command argument data in a more structured manner.

Example:

From the message !command text="Hey there!" testing stage=development, an argsMap object is created. This object makes it easy to access the individual arguments and their values (or true if they are flags). Here's how the argsMap would look for this command:

{
    text: "Hey there!",
    testing: true,
    stage: "development"
}

Changelog:

  • ✨ Add map for command arguments
  • 🎨 Improve argument parsing logic
  • ♻️ Refactor argument handling in formatMessage

Full Changelog: v1.1.1...v1.2.0