NPM Updates
All the DB-Script versions and change logs! The easiest way to see what happened on each update.
Updates are on a halt as we are working on (the now mandatory) v4. Feel free to join the Support Server and speak to any one of the Administrators or Developers for more info!

Update 3.3.1 (8-27-2021)

  1. 1.
    $dm - Fixed a bug where function and data is sent in the channel where the command was executed, (oops).

Update 3.3.0 (8-27-2021)

  1. 1.
    $member -
    <> Added tag option. <> Fixed a couple options that weren't executing properly. <> (Breaking change) Changed option names of a few.
    Option name changes for member function: isinguild => exists boostingtimestamp => booststamp boostedat => boostdate joinedtimestamp => joinstamp joinedat => joindate isbotabovemember => isbelowbot
  2. 2.
    $userAvatar - Fixed bug: docs not defined (oops lol)
  3. 3.
    $isBoosting - Fixed bug where always returns false.
  4. 4.
    $dm - Function has been given a mandatory 2nd field to define the message content to dm the defined user. The absence of brackets can still be used to send the message to the command author.
    $dm[userID;message]
    $dm
  5. 5.
    $convertFromBytes - New! Converts a number from bytes to one of the options. kb, mb, gb, or tb.
  6. 6.
    $convertToBytes - New! Converts a number into bytes from one of the options. kb, mb, gb, or tb
  7. 7.
    $hostRAM - New! Compact function pertaining to your host's RAM data with 11 options.
  8. 8.
    $hostOS - New! Compact function pertaining to your host's Operating System data with 7 options.
  9. 9.
    $hostCPU - New! Compact function pertaining to your host's CPU and processor data with 16 options.
  10. 10.
    $hostDisk - New! Compact function pertaining to your host's Storage Disk data with 25 options.
  11. 11.
    Reverted the fix for partial data from last update (See docs on version 3.2.0). It broke more than it fixed. We are working on the solution for it.
  12. 12.
    $hostBattery - New! Compact function pertaining to your host's battery with 14 options.
  13. 13.
    $client - Changed verified => isownerverified
  14. 14.
    $getServerVar - Fixed annoying invalid docs link in error message (oops lol).
  15. 15.
    Added support for COMPETING type bot status. By @Rickყ#2006
  16. 16.
    $userBanner - New! Returns the banner image applied to a users profile (Nitro Premium users only). Otherwise the function will return undefined. By @Rickყ#2006
  17. 17.
    $user - Added banner option to the compact function making a total of 14 options.
  18. 18.
    $min - Returns the smallest number out of the numbers defined in the function.
  19. 19.
    $max - Returns the largest number out of the numbers defined in the function.
  20. 20.
    $vcMove - New! Moves a user from one voice channel to another. By @Rickყ#2006
  21. 21.
    $vcKick - New! Kicks a user from a voice channel. By @Rickყ#2006
  22. 22.
    $commandList - New! Returns a list of commands in your bot. By @Rickყ#2006
  23. 23.
    $modifyRolePerms - Adds or removes permissions of a role in the current guild. By @Rickყ#2006
  24. 24.
    $abbreviate - Gives a more accurate response. Fixed to the 2nd decimal point instead of the 1st and rounds the last digit after the decimal point.
  25. 25.
    $and - Returns true if both conditions are true. Otherwise, returns false. By @Rickყ#2006
  26. 26.
    $or - Returns true if one of the conditions are true. Otherwise, returns false. By @Rickყ#2006
  27. 27.
    $extractAmount - Returns the amount of times the 2nd field sees the extracted content in the 1st field. By @Rickყ#2006
  28. 28.
    $dbPing - Returns the time it takes for the bot to interact with the database in milliseconds (ms). By @Rickყ#2006
  29. 29.
    $addReactions - Fixed bug where function will console error even if it executes properly. Should work as intended.

Update 3.2.0 (7-17-2021)

New:

  1. 1.
    $uppercaseCount - Returns the amount of uppercase characters in the content.
  2. 2.
    $lowercaseCount - Returns the amount of lowercase characters in the content.
  3. 3.
    $adminCount - Returns the amount of bots, humans or total admins in a guild.
  4. 4.
    $isString - Returns true if the content input is anything but a number. Otherwise, the function returns false. The complete opposite of $isNumber.
Fixed:
  1. 1.
    A big issue for partial data. DB-Script now returns data from old messages, reactions and channels after reboots. Result: ReactionAddCommand and more are fixed.

Changed:

  1. 1.
    $disconnect - Changed input acceptance. The function now only accepts guildID to disconnect the bot from a voice channel in another guild, or the absence of brackets to disconnect the bot from a voice channel in the current guild. The function also now auto-detects if the bot is in a voice channel and returns an error if it is not. Catch with $voiceID[$client]
  2. 2.
    $member - Added boostcount and tag options and changed option names of a few.
    Option name changes: isinguild => exists boostingtimestamp => booststamp boostedat => boostdate joinedtimestamp => joinstamp joinedat => joindate

Update 3.1.1 (7-12-2021)

New:

  1. 1.
    $toCringecase - Alternates character case for each character. Contributed by Ricky
  2. 2.
    $guildChannels - Returns all of the channels in a guild.
  3. 3.
    $guildCategories - Returns all of the categories in a guild.
  4. 4.
    $guildEmojis - Returns all of the emojis in a guild.
  5. 5.
    $guildRoles - Returns all of the roles in a guild.
  6. 6.
    $abbreviate - Abbreviates large numbers with a symbol.
  7. 7.
    $isBoolean - Returns true if the input is a boolean.
  8. 8.
    $tts - Sends a spoken message to a channel.
  9. 9.
    $codeblock - Puts the content in a codeblock.
  10. 10.
    $codeblockMessage - Puts the content of an existing message in codeblock.
  11. 11.
    $italic - Italicizes the content in the brackets.
  12. 12.
    $bold - Bolds the content in the brackets.
  13. 13.
    $spoiler - Spoils the content in the brackets.
  14. 14.
    $strikethrough - Puts a strikethrough in the content in the brackets.

Fixed:

  1. 1.
    $eventCount => $eventsCount
    Fixed typo in source code and changed function name. (it was never fully changed with version 3.0.0 oops)

Update 3.1.0 (7-7-2021)

Fixed:
  1. 1.
    $getFromEmbed - Fixed a few bugs pertaining to uncaught errors & Added 5 new options
  2. 2.
    $onlyIf - Fixed fatal bug resulting in the function completely breaking when more than 1 $onlyIf is used in the command.
Updated:
  1. 1.
    $giveRole - Added an optional field for guild ID in the 3rd field and swapped positions for user and role! Function will need to be rewritten!
  2. 2.
    $takeRole - Added an optional field for guild ID in the 3rd field and swapped positions for user and role! Function will need to be rewritten!
  3. 3.
    $hasRole - Added an optional field for guild ID in the 3rd field and rearranged fields. Function will need to be rewritten!
  4. 4.
    $hasRoles - Added a mandatory field for guild ID in the 2nd field and rearranged fields. Function will need to be rewritten!
  5. 5.
    $uptime - Changed the output format. Now the function will not display the extra if not online long enough. (no real need for $replaceText anymore, you'll see.)
  6. 6.
    $textBetween - New function that returns the text content between two words. By @Rickყ
  7. 7.
    $onlyAdmin - Optionally removed brackets for silent error.
Removed:
  1. 1.
    $getMessage - Removed in favor of $msg compact function.

Update 3.0.4 (6-19-2021)

  1. 1.
    $createRole - Added an optional field for guild ID in the (6th) final field.
  2. 2.
    $createWebhook - Fixed channel cache issue. ChannelID can be fetched from any guild the bot is in.
  3. 3.
    ReactionAddCommand & ReactionRemoveCommand - Added 5 important placeholders.

Update 3.0.3 (6-17-2021)

Fixed console error guild.channels.fetch() is not a function for the following events:
Other fixes
  1. 1.
    $If - Almost unnoticeable adjustments.

Update 3.0.2 (6-16-2021)

  1. 1.
    $userAvatar - Updated fields again! Removed the dynamic property field and function is perpetually dynamic. Fixed bug listed in #known-bugs
  2. 2.
    $authorAvatar - Updated fields! Removed the dynamic property field and function is perpetually dynamic.
  3. 3.
    $if - Link changed to conditions in the package(edited)
  4. 4.
    $userID - Fixed bug resulting in console error ReferenceError: r is not defined
  5. 5.
    $user - Fixed option istyping returning undefined when the user is not typing.
  6. 6.
    $member - Added 1 option isboosting

Update 3.0.1 (6-15-2021)

  1. 1.
    $guildNames => $sortGuildNames
  2. 2.
    $queue - Fixed cache issue
  3. 3.
    $userAvatar - Removed the dynamic property field.

Update 3.0.0 (6-14-2021)

Code breaking function name changes!
  1. 1.
    $findEmote => $findEmoji
  2. 2.
    $emoteCount => $emojiCount
  3. 3.
    $serverAvailable => $guildAvailable
  4. 4.
    $serverBoostCount => $guildBoostCount
  5. 5.
    $serverBoostLevel => $guildBoostLevel
  6. 6.
    $serverContentFilter => $guildContentFilter
  7. 7.
    $serverCooldown => $guildCooldown
  8. 8.
    $serverCount => $guildCount
  9. 9.
    $serverFeatures => $guildFeatures
  10. 10.
    $serverIcon => $guildIcon
  11. 11.
    $serverIDs => $sortGuildIDs
  12. 12.
    $serverLeaderboard => $guildLeaderboard
  13. 13.
    $serverName => $guildName
  14. 14.
    $serverRulesChannel => $guildRulesChannel
  15. 15.
    $serverUpdatesChannel => $guildUpdatesChannel
  16. 16.
    $serverVanityURL => $guildVanityURL
  17. 17.
    $serverVanityUses => $guildVanityUses
  18. 18.
    $serverVerificationLvl => $guildVerificationLvl
  19. 19.
    $getServerInvite => $getGuildInvite
  20. 20.
    $infoFromServers => $infoFromGuilds
  21. 21.
    $onlyForServers => $onlyForGuilds
  22. 22.
    $eventsCount => $eventCount

Updated:

  1. 1.
    $cmd - Can define function without brackets to return the command name.
  2. 2.
    $client - Can define function without brackets to return the client ID.
  3. 3.
    $msg - Can define function without brackets to return the message ID of the command message.
  4. 4.
    $userAvatar - Can define function without brackets to return the command author's avatar. Same as $authorAvatar for diversity
  5. 5.
    $userID - Can define function without brackets to return the command author's ID. Same as $authorID for diversity
  6. 6.
    $emojiCount - Changed name to $emojiCount from $emoteCount and added the option total and all to return the total amount of cached emojis from all guilds your bot is in. Both options do the same thing.
  7. 7.
    $createChannel - Can define function without brackets to create a default text channel.
  8. 8.
    $findEmoji - Changed name to $findEmoji from $findEmote.
  9. 9.
    $djsEval - Automatically defines the fs, ms, moment, db modules so no need to define it yourself.
  10. 10.
    $addAttachment - Added a second field to define a custom name for the image attachment. If left blank or 2nd field does not exist, the function will randomize the name.
  11. 11.
    $color - Leave brackets empty for a random color. No longer have to capitalize RANDOM to get random color. Can be lowercase too.
  12. 12.
    $voiceID - Can define function without brackets to return the voice ID of the command author. Still returns undefined if user is not is a voice channel.
  13. 13.
    $cloneChannel - If 2nd field is defined as yes or true, the function will return the ID of the newly cloned channel.
  14. 14.
    $colorRole - Now defines 3 fields.
  15. 15.
    $deletecommand - Compatible without brackets to immediately delete the command
  16. 16.
    $emoji - Now has 3 fields! Added 1 option.

Fixed:

  1. 1.
    $client - Fixed bug that arose last update: ReferenceError: result is not defined (oops lol) - Also cleaned up source code for the function a little.
  2. 2.
    $channelSendMessage - Fixed bug resulting in the function not sending plain text message responses and not sending messages to other channels.
  3. 3.
    $customCommand - Works as intended. Click on the function name to see more.
  4. 4.
    $customCommandList - Works as intended. Click on the function name to see more.
  5. 5.
    $djsEval - Fixed function replacing A2008a with [ and A2008E with ] when evaluating brackets.
  6. 6.
    $shutdown - Now follows all limiters as it should and accepts brackets for a feedback message before shutting down.
  7. 7.
    $randomUserReaction - Fixed cache problem. Function will still work as intended after bot reboots.
  8. 8.
    $botInGuild - Fixed crash when an un-cached or incorrect guild ID is defined.
Added:
  1. 1.
    $eval - Evaluate DB-Script code in a Discord channel.
  2. 2.
    $guild - Added 6 new options
  3. 3.
    $customCommandExists - Returns true or false
  4. 4.
    $client - Added 9 new options.
  5. 5.
    $member - Compact function with 17 options.
  6. 6.
    $usersWithTag - Returns a list of users with the same discriminator as the input.
  7. 7.
    $usersWithTagCount - Returns the amount of users with that same discriminator.
  8. 8.
    $usersWithNickname - Returns a list of users with the same nickname as the input.
  9. 9.
    $usersWithNicknameCount - Returns the amount of users with that same nickname.
  10. 10.
    $reboot - Reboots your bot with an option to return feedback from the bot before rebooting.
  11. 11.
    $If - If conditions meet in the 1st field, the code in the 2nd field will execute.
  12. 12.
    ReactionAddCommand - An event that executes when a reaction is added to a cached message.
  13. 13.
    ReactionRemoveCommand - An event that executes when a reaction is removed from a cached message
  14. 14.
    ***$parseToMS - Converts the time provided into milliseconds - (eg: 24h = 86400000).
  15. 15.
    ***$parseFromMS - Converts the milliseconds provided into a human readable format - (eg: 6000 = 6 seconds)
  16. 16.
    $allVars - Returns the names or values of all the variables in your bot. Also returns both. - By @BetaDv from back in late April 2021 and was never added. I made it compatible with no brackets, implemented the 3 options and killed a few bugs to make it work as intended.

Fixed caching problem for the following functions:

Fixed cache problem means that even when the bot reboots, the bot can still retrieve the required data after the reboot. Most importantly used when functions are interacting with events. This fix kills a truck-load of bugs!
  1. 1.
    $activity
  2. 2.
  3. 5.
  4. 8.
  5. 10.
  6. 12.
    $dm
  7. 13.
  8. 14.
  9. 15.
  10. 16.
    $getRoleColor - And added an optional 2nd field for guild ID.
  11. 17.
  12. 18.
    $highestRole - And added optional 2nd field for guild ID.
  13. 19.
    $isBoosting - And added an optional 2nd field for guild ID.
  14. 20.
  15. 21.
  16. 23.
    $isNSFW
  17. 24.
    $isPinned
  18. 26.
    $lowestRole - And added an optional 2nd field for guild ID.
  19. 27.
    $memberRoleCount - And added an optional 2nd field for guild ID.

Added Music Functions:

MUSIC IS IN BETA AND WE (Developers) ARE RELYING ON YOUR FEEDBACK OF FOUND BUGS SO WE CAN PROMPTLY FIX THEM!
Must install all 3 of the following dependencies yourself before attempting to run any music functions or you will receive console errors! This is to reduce the package's ram usage if you are not using music: 1. npm install ffmpeg-static 2. npm install @discordjs/opus 3. npm install ytdl-core
  1. 1.
    $play - Play a song via YouTube link.
  2. 2.
    $stop - Stops all music and removes all songs from queue.
  3. 3.
    $queue - Returns all the songs playing.
  4. 4.
    $resume - Resumes playing the currently paused song.
  5. 5.
    $pause - Pauses the currently playing song.
  6. 6.
    $queueLength - Returns the amount of songs listed in the queue. Returns 0 if no songs are playing.
  7. 7.
    $trackInfo - Returns info about the currently playing song with 6 options.
  8. 8.
    $volume - Sets the volume for the currently playing audio.
  9. 9.
    $skip - Skips the currently playing song.
  10. 10.
    $loopSong - Loops the current song to be played again.
  11. 11.
    $loopQueue - Loops the entire queue to be played again.
  12. 12.
    $isPaused - Returns true if the song is paused. Returns false if the bot is not playing any audio. Returns undefined if the bot is not connected to a voice channel.
  13. 13.
    $voice - Compact function pertaining to voice channels with 21 options.
  14. 14.
    $disconnect - Disconnects the bot from a voice channel.

Update 2.6.2 (5-12-2021)

Added:

  1. 1.
    $round
  2. 2.
    $roundUp
  3. 3.
    $truncate
  4. 4.
    $power
  5. 5.
  6. 8.

Fixed:

  1. 1.
    $status

Updated:

  1. 1.
    $memory

Update 2.6.1 (4-27-2021)

Added Features:

  1. 1.
    {execute:} is now acceptable in the 3rd field of $replaceText
Fixed:
  1. 1.
    All new asynchronous errors that popped up on 2.6.0

Update 2.6.0 (4-26-2021)

New Functions:

  1. 2.
    *Added {attachment} to 2nd field embeds (currently, this cannot be used alone in a command. Must be sent with some sort of data or else nothing will be sent.)
  2. 3.
  3. 6.
    $fileSize
  4. 12.
  5. 14.

Changed:

  1. 1.
    $client - Rewritten with more details below: - Changed the status option to presence - Added presence option(same as status) - added lastmcid - Short version of lastmessagechannelid - Added lastmid - Short version of lastmessageid - Added discrim - Short version of discriminator

Fixed:

  1. 1.
    $createChannel - Fixed bug giving errors when 1st or 2nd field is not defined. - 1st field defaults to new channel. - 2nd field defaults to text channel type.
  2. 2.
    *bot.userUpdateCommand - Now allows $getServerVar in event name and sees all placeholders
  3. 3.
    *bot.roleCreateCommand - Now allows $getServerVar in event name and sees all placeholders
  4. 4.
    *bot.roleDeleteCommand - Now allows $getServerVar in event name and sees all placeholders
  5. 5.
    *bot.channelCreateCommand - Now allows $getServerVar in event name and sees all placeholders
  6. 6.
    *bot.channelDeleteCommand - Now allows $getServerVar in event name and sees all placeholders
  7. 7.
    *bot.channelUpdateCommand - Now allows $getServerVar in event name and sees all placeholders
  8. 8.
    *bot.emojiDeleteCommand - Now allows $getServerVar in event name and sees all placeholders
  9. 9.
    *bot.emojiCreateCommand - Now allows $getServerVar in event name and sees all placeholders

Functions below now allow Executables in error fields:

  1. 1.
  2. 5.
    $cooldown
  3. 6.
    $enabled
  4. 8.
  5. 9.
    $onlyBotPerms - {perms} can now be used more than once in the error message.
  6. 13.
  7. 16.
  8. 19.
    $onlyNSFW
  9. 20.
    $onlyPerms - {perms} can now be used more than once in the error message.
  10. 22.
    $suppressErrors - Now also allows the absence of brackets for silent suppression.

Added:

  1. 1.
    *bot.Status now has a status property. Sets the bot's presence. "dnd", "idle", "online", "invisible"
  2. 2.
    *isedited, old options have been added to $msg
  3. 3.
    **32 more placeholders to onGuildUpdate. (16 old and 16 new)
  4. 4.
    Added documentation to the already existing function, $findInApi

Update 2.5.0 (3-24-2021)

New Events:

  1. 1.
    BanCommand - Triggers when a member is banned in a guild the bot can see.
  2. 2.
    UnbanCommand - Triggers when a member is unbanned in a guild the bot can see.
  3. 3.
    RateLimitCommand - Triggers when the bot becomes rate limited by the API. Placeholders will return data for you.
  4. 4.
    GuildUpdateCommand - Triggers when a guild name or icon is updated in a guild the bot can see.

New Functions:

  1. 1.
    $eventsCount - Returns the total number of events the NPM has on the version your bot in on.
  2. 2.
    $sendCrosspostDM - Sends a message to multiple users DMs. You are held accountable for your own actions!
  3. 3.
    $messageExists - Returns true if the message ID exists in the current or given channel. Otherwise bot returns false.
  4. 4.
    $findNumbers - Returns all the numbers from the message.
  5. 5.
    $customEmojis - Extracts and returns all the custom emojis from the message or arguments (if any). Does not work with default emojis.
  6. 6.
    $defaultEmojis - Extracts and returns all the default emojis from the message or arguments (if any). Does not work with custom emojis.
  7. 7.
    $allWebhooksCount - Returns the total number of webhooks in the current guild. Define a channel to return the webhook total in that channel. Define another guild ID to return the webhook total in that guild.(bot must be in guild).
  8. 8.
    $isCategory - Redundant because you can make this check yourself in dbscript but yea...
  9. 9.
    $voiceChannelCount - Returns the total number of voice channels in a guild.
  10. 10.
    $fileCount - Returns the number of files in a folder. Supply the file path. Path always starts with ./ defined as the home folder, regardless if you're using a command handler for easier use. You're welcome.

Updated Functions:

  1. 1.
    $memberRoles - Allows an optional 2nd field to mention the group of roles instead of just the names.
  2. 2.
    $userAvatar - Made image dynamic if no parameters are defined.
  3. 3.
    $channelCount - Turned into a compact function with 5 options. (No you dont' have to recode your bots. No breaks will occur!)
    1
    $channelCount - current guild total data
    2
    $channelCount[] - current guild total data
    3
    $channelCount[;] - current guild total data
    4
    $channelCount[guildID;] - current guild total data
    5
    $channelCount[guildID] - current guild total data
    6
    $channelCount[;option] - current guild option data
    7
    $channelCount[guildID;option] - optional data
    Copied!

Update 2.4.0 (3-15-2021)

8 New Functions:

  1. 1.
    $categoryCooldown - A command cooldown that affects all channels in an entire guild category.
  2. 2.
    $modifyChannel - Modifies a channel with 7 editable properties. Acts much like a compact function.
  3. 3.
    $getMessageVar - Returns the value of a message variable.
  4. 4.
    $setMessageVar - Sets a value to a variable assigned to a message.
  5. 5.
    $resetMessageVar - Resets all message variables data in the guild the command is executed in.
  6. 6.
    $isNegativeNumber - Returns true if the number is a negative number. Returns false if the number is a positive number. Returns undefined if the content is not a number.
  7. 7.
    $setRolePosition - Sets the position of a role in the guilds role list.
  8. 8.
    $lastMessageURL - Returns the URL of the last message of the command author or specific user.

7 New Events:

  1. 1.
    bot.EmojiCreateCommand - An event that fires when an emoji is created in a guild.
  2. 2.
    bot.EmojiDeleteCommand - An event that fires when an emoji is deleted from a guild.
  3. 3.
    bot.RoleCreateCommand - An event that fires when a role is created in a guild.
  4. 4.
    bot.RoleDeleteCommand - New event that fires when a role is deleted from a guild.
  5. 5.
    bot.ChannelCreateCommand - New event that fires when a channel is created in a guild.
  6. 6.
    bot.ChannelDeleteCommand - New event that fires when a channel is deleted from a guild.
  7. 7.
    bot.UserUpdateCommand - New event that fires when a user updates their account (like carl bots user update logs). Looks for changes for avatar, username or discriminator.

4 Fixed/Changed:

  1. 1.
    $returnEmoji - Fixed bug where the function would cancel the entire command to respond with undefined when no emoji is found.
  2. 2.
    $user - Added the option lastmessageurl
  3. 3.
    $roleName - Fixed bug where role ID couldn't be read if not in the current guild.
  4. 4.
    $onlyNSFW - Added option to remove the brackets for no error message if channel is not NSFW.

Update 2.3.4 (3-4-2021)

New:

Changed:

  1. 1.
    The new disabled command header from v2.3.3 has been changed to status.
    1. 1.
      Fixed some bugs.
    2. 2.
      Inputs: enabled, disabled.
    3. 3.
      Changed from true, false.
    4. 4.
      Now used as a string instead of native boolean.
    5. 5.
      Example: status: "enabled",.
    6. 6.
      Cannot be used with variables to manipulate yet.(Must be changed manually in code)
    7. 7.
      Still in BETA. Please report bugs.
  2. 2.
    $log - Added an optional 2nd field to send the data logged in the console to the channel as well. The function will send the logged data in the channel if 2nd field is defined as send.
  3. 3.
    $setSlowMode - Just improved/detailed the error messages.
  4. 4.
    $commandName - Can now make bot return command name with a defined command name. Yea I know it seems redundant but it's needed in some higher quality precision responses.
  5. 5.
    $commandStatus - Can now omit brackets to return the current command status. Brackets are optional now.
  6. 6.
    Added optional 3rd field for reason in $giveRole and $takeRole
  7. 7.
    Removed $mute and $unmute in recognition of the new edit of 6.
  8. 8.
    Added last option to $message(same as $lastArg)
  9. 9.
    $getArg now gets an argument from the command line if no content is given in the 1st field or if 1st field is left blank.
  10. 10.
    $enabled - 2nd field can now be left blank or omitted. - $enabled[yes/no] or $enabled[yes/no;error]
  11. 11.
    $sum - Rare bug fix.
  12. 12.
    $commandName - Fixed bug resulting in function not returning the command name and shortened source code.

Update 2.3.3 (2-22-2021)

New:

  1. 1.
    disabled - Command property to enable or fully disable a command from the command header. [BETA]
  2. 2.
    $commandStatus - Returns enabled or disabled depending on the status of the new disabled command property. [BETA]
  3. 3.
    $let - Assigns data to a temporary variable that can be changed and retrieved later in the command.
  4. 4.
    $get - Returns data from the $let function.
  5. 5.
    $getArg - Returns an argument from the content.

Fixed:

  1. 1.
    $ordinal - Fixed bug where 11, 12 and 13 would return 11st, 12nd and 13rd. Now returns11th, 12th and 13th as intended.
  2. 2.
    $lastMessageID - Was completely broken. Works as intended
  3. 3.
    $lastMessageChannelID - Was completely broken. Works as intended
  4. 4.
    $emojiToID - Fixed issue where every emoji would return undefined. Now reads emoji's from cached guilds.

Update 2.3.2 (2-11-2021)

Fixed:

  1. 1.
    {field} - Fixed huge code breaking bug

New:

  1. 1.
    $commandExists - Returns true if the input is an existing command. Otherwise, bot returns false
  2. 2.
    $findCommand - Returns the command name by an input of an existing command name or alias.

Update 2.3.1 (2-8-2021)

Changed:

  1. 1.
    $hasRole - If the 2nd field is left blank or the role doesn't exist in that guild, bot returns undefined for easy catching. (Meant for easier use with variables)
  2. 2.
    $client - lowercased all the option properties just like all the other option functions for easier manipulation.Example: $client[$message[]] can be used easier with all lowercase instead of 1+ uppercase letter(s) in the middle. - Added 2 more option properties.

Fixed:

  1. 1.
    $suppressErrors - Should do what it's supposed to now.
  2. 2.
    {field} - Fixed bug where : would break the field.
  3. 3.
    setActivity of null no longer occurs when attempting to reboot the bot and takes too long. Bot will simply keep attempting to boot up until it succeeds. If it doesn't succeed fairly quick, there's an issue with your network/server.

New:

  1. 1.
    $textBefore - Gets the text before a specific point in the 1st field.
  2. 2.
    $textAfter - Gets the text after a specific point in the 1st field.
  3. 3.
    $splitTextFrom - Like $splitText but returns from point A to point B instead of just 1 arg/word etc.
  4. 4.
    $mute
  5. 5.
    $unmute

Update 2.2.0 (2-5-2021)

Fixed/Changed/Added:

  1. 1.
    $commandName - Can now get the command name of other commands
  2. 2.
    $findCategory - Added optional field to return the category name
  3. 3.
    $findChannel - Added optional field to return the channel name or mention (now gets data from channels outside the server)
  4. 4.
    $findEmote - Added an optional field to return the emote name or actual emoji (now gets data from emojis outside the server)
  5. 5.
    $findRole - Added optional field to return the role's name or mention (now gets data from roles outside the server)
  6. 6.
    $findUser - Added optional field to return the user's name, mention or tag
  7. 7.
  8. 8.
    $role - Completely rewritten. Added timestamp and usercount. Changed server to guild and changed servername to guildname. Now fetches role data from other guilds your bot is in.
  9. 9.
    $userStatus - Fixed the null outputs of all options. Now returns undefined if no/invalid data is provided like it should.
  10. 10.
  11. 13.
    $userAdded timestamp option and removed the displayname option.
  12. 14.
    $guildID- Fixed bug when empty brackets are used, an errors occurs. Now gets current guild data if left empty.
  13. 17.
    $emojiToID - now returns undefined if input is not a custom emoji instead of console error:TypeError
  14. 18.
    $channel - Added 8 more options for a total of 17 options. (now gets data about channels from any server your bot is in)
  15. 19.
    $title - Added an optional URL field. Hyperlinks a URL in the title.
  16. 20.
    $modifyChannelPerms - Now updates permissions instead of overwriting.
  17. 21.
    $numberSeparator - 2nd field is now optional. Automatically appends the , if nothing is defined in 2nd field.

New:

  1. 1.
    $argsFrom - returns the given args from starting point to ending point
  2. 2.
    $attachmentSize - Returns the size of the attachment in the message. Optionally define in bytes, kilobytes or megabyes
  3. 3.
    $charAt - Returns the character at where the number is defined.
  4. 4.
    $charCase - uppercase char returns upper. lowercase char returns lower. symbol char returns symbol.
  5. 5.
    $checkChars - Returns true if the 1st field contains any chars from the 2nd field.
  6. 6.
    $commandUsage - Returns the command usage of a command if you have one defined
  7. 7.
    $containsAmount - Returns the number of occurrences.
  8. 8.
    $containsCheck - Filters and Returns either letters, numbers or symbols from the message.
  9. 9.
    $containsCustomEmoji - Returns true if the content contains a custom emoji
  10. 10.
    $containsEmoji - returns true if the content contains a default emoji
  11. 11.
    $deleteSplitText - deletes a splitText completely from the $textSplit and active $splitText above it.
  12. 12.
    $editSplitText - Edits a $splitText.
  13. 13.
    $endsWith - Like $startsWith but not really lol. think about it.
  14. 14.
    $findUserInGuild - Returns the ID of a user in a specific guild. Returns undefined if the user is not in the guild. (same new options as $findUser)
  15. 15.
    $guild - Option function with 21 properties.
  16. 16.
    $indexOfTextSplit - Returns the content in the text split by the field number provided.
  17. 17.
    $isCustomEmoji - returns true if the content is a custom emoji.
  18. 18.
    $isEmoji - returns true if the content is a default emoji.
  19. 19.
    $isValidImageURL - returns true if the URL is an image link of any kind.
  20. 20.
    $isValidURL - returns true if the URL is valid.
  21. 21.
    $modifyEmoji - modify an emoji.
  22. 22.
    $modifyWebhook - modify a webhooks name/avatar
  23. 23.
    $numberHasDecimal - returns true if the number has a decimal in it.
  24. 24.
    $ordinal - Adds st or nd or rd or th to the end of a number.
  25. 25.
    $randomGuildID - Returns a random guildID from a guild your bot is in
  26. 26.
    $randomRoleID - Returns a random roleID from the guild
  27. 27.
    $reactionCount - Returns the number of reactions a message has.
  28. 28.
    $removeAllReactions - maybe u can guess this one.
  29. 29.
    $removeReactions - Remove any number of emojis from a message.
  30. 30.
    $serverFeatures - Returns server features if any.
  31. 31.
    $setChannelPosition - Sets a category position in the guild and sets a channels position within a category.
  32. 32.
    $setGuildIcon - Non-bypassable Discord API rate limit. 1 change per hour!
  33. 33.
    $splitTextFrom - returns the text split from starting point to ending point.
  34. 34.
    $stringFrom - Returns starting and ending points of the content.
  35. 35.
    $toFixed - rounds a number by the local digit you provide.
  36. 36.
    $typeOfChar - Returns the type of character in the message. Outputs: letter, number, symbol.
  37. 37.
    $usersTyping - Returns all the users tags that are currently typing in a channel.
  38. 38.
    $modifyRole - yea.... finally
  39. 39.
    $deleteMessage - Deletes a message with optional time.
  40. 40.
    $commandCount - Returns the total number of commands.
  41. 41.
    $numbersFrom - Returns all the numbers between the starting and ending points.

Update 2.1.2 (1-24-2021)

Fixed:

Updated:

  • $argsLength - Now optionally contains brackets for specifics
  • $botTyping - Now can set a custom time you want the bot to type for
  • $charCount - Now optionally contains brackets for specifics

New:

Update 2.1.1 (1-17-2021)

  • Small bug fix

Update 2.1.0 (1-17-2021)

Updated/Fixed: All of the commands with a (*) I have removed brackets if its not needed. Empty brackets will also do the same thing.

1
EXAMPLE: $serverIcon or $serverIcon[] or $serverIcon[guildID]
Copied!
  1. 1.
  2. 4.
  3. 5.
    *$emoteCount - Now globally cached
  4. 6.
    *$ownerID - Now globally cached
  5. 7.
    *$roleCount - Now globally cached