Releases: aoijs/aoi.js
6.0.1
Bug Fixes
- Forced Intents with proper capitalization.
- Fixed Channel Types
- Fixed $createApplicationCommand
- Fixed $forEachRole
- Fixed infinite loop
- Fixed app permissions
- Fixed bot.status
- Fixed
targetID
- Fixed $addField only adding one field.
- Fixed permissions
- Fixed $attachment
Removed
'all'
intents have been removed.
Improvements
- AoiWarning is now updated with a clearer message.
Features
- Plugin-system integration fully added.
- Re-added
$if: v4
method.
6.0.0
Changelog v6.0.0
Importance
Music
Don't worry v2 of @akarui/aoi.music is coming and it will be better than ever!
It will be announced by less than a week, and you don't even need to update aoi.js as it's an extension.
Top to Bottom and new If
They've been pushed to v6.1.0 to make sure that v6.0.0 is stable and everything running smooth.
Expect them to be released in a week or two.
Removal of if: v4
This was removed to due high usage of ram and running two interpreters at the same time.
You "can" make your own plugin with your own if that runs like v4.
Aoi.db is by default
The version 3.0.0 of dbdjs.db but now renamed to aoi.db.
Heavily recommended to use and by default aoi.db is installed and likely transfered all your data in the background.
Make sure to be using aoi.db instead of dbdjs.db for better stability and performance.
Client Method changes
Intent Changes
MessageContent
is now needed in Intents otherwise it will not be able to send any messages, only read.
+ MessageContent
Example of Intents with MessageContent
- intents: ["GUILDS", "GUILD_MESSAGES"]
+ intents: ["MessageContent", "Guilds", "GuildsMessages"]
New disable logs method
Tired of that annoying Initialized on aoi.js v6.0.0
Want to clean up your logs to show off your bot, well it's a new method to disable that!
+ disableLogs: true // default is false
Color HEX Importance
For all colors that are being passed through $color
it must be case-sensitive
- DEFAULT
- WHITE
- AQUA
- GREEN
- BLUE
- YELLOW
- PURPLE
- LUMINOUS_VIVID_PINK
- FUCHSIA
- GOLD
- ORANGE
- RED
- GREY
- NAVY
- DARK_AQUA
- DARK_GREEN
- DARK_BLUE
- DARK_PURPLE
- DARK_VIVID_PINK
- DARK_GOLD
- DARK_ORANGE
- DARK_RED
- DARK_GREY
- DARKER_GREY
- LIGHT_GREY
- DARK_NAVY
- BLURPLE
- GREYPLE
- DARK_BUT_NOT_BLACK
- NOT_QUITE_BLACK
- RANDOM
New Color String support
+ Default
+ White
+ Aqua
+ Green
+ Blue
+ Yellow
+ Purple
+ LuminousVividPink
+ Fuchsia
+ Gold
+ Orange
+ Red
+ Grey
+ Navy
+ DarkAqua
+ DarkGreen
+ DarkBlue
+ DarkPurple
+ DarkVividPink
+ DarkGold
+ DarkOrange
+ DarkRed
+ DarkGrey
+ DarkerGrey
+ LightGrey
+ DarkNavy
+ Blurple
+ Greyple
+ DarkButNotBlack
+ NotQuiteBlack
+ Random
Parser Support
It has added proper support of actionRow and other methods to work with aoi.js simtaneously.
Function Manager
Similar methods to prevent any hard changes but much faster now!
- bot.functionManager.createCustomFunction()
+ bot.functionManager.createFunction()
Function Usage Changes
- $addReactions
+ $addClientReactions
- $setBotUsername
+ $setClientName
Now fetches userID without needing to use $authorID
- $getUserBanner
+ $userBanner
- $getCustomStatus
+ $userCustomStatus
- $getUserAccentColor
+ $userBannerColor
Deprecated Functions
- $apiMessage
- $authorAvatar
- $authorBanner
- $authorAccentColor
Fixed
- High usage of ram (IF YOU USE ALL INTENTS EXPECT IT TO SPIKE DO NOT USE ALL INTENTS)
- Events are less heavy loaded.
- Fixed Client crash with threadMember event in previous versions.
- Fixed various issues of Core.
- Fixed previous bugged functions.
5.5.5
🎉 aoi.js v5.5.5 released
aoi.js v5.5.5 is now available!
Just some new functions and minor fixes.
Added `$roleIconURL[guildID;roleID]`.
Added `$isPartnered[guildID]`.
Added `$isVerified[guildID]`.
Added `isTimeout[guildID;userID]`.
Fixed variable overriding in `$arrayConcat`.
Fixed variable overriding in `v4: $if`.
Fixed `{value}` not updating.
Fixed `$arrayMap`.
Fixed `$arrayForEach`.
Updated `$songInfo` to not stop code execution if track not found.
5.5.0
🎉 aoi.js v5.5.0 released
aoi.js v5.5.0 is now available!
With faster speed and ram drastically decreased, addition of new array functions!
- Index in embed functions are now optional. (NO LONGER NEED INDEX)
- Interpreter changed drastically.
- Better events and much cleaner execution.
- Improved cache handling system introduced.
- Added Array Functions.
$arrayAt[name;index]
$arrayConcat[separator;...name]
$arrayEvery[name;query;queryType?]
$arrayFilter[name;query;queryType?;separator?]
$arrayFind[name;query;queryType?]
$arrayForeach[name;awaitedCmd;awaitData?]
$arrayIncludes[name;query]
$arrayIndexOf[name;query]
$arrayJoin[name;separator?]
$arraylastIndexOf[name;query]
$arrayLength[name]
$arrayMap[name;awaitedCmd;separator?;awaitData?]
$arrayPop[name]
$arrayPush[name;...elements]
$arrayReverse[name]
$arrayShift[name]
$arrayShuffle[name]
$arraySome[name;query;queryType?]
$arraySort[name;type?]
$arraySplice[name;index;amount;...elements]
$arrayUnshift[name;...elements]
$createArray[name;...elements]
$deleteArray[name]```
@Changelog Ping
5.1.2
5.1.1
$digitalFormat[time]
json parser allows newlines
Added optional chaining in $getUserBadges
Added $voicePing
Added $hasPlayer as more stable way to check bot in vc
Added joinAsSpeaker option in $joinVc by default yes
AoiError#makeMessageError prevents empty messages from being sent
$deleteChannels internal working changed
Added Error message when invalid path is provided in LoadCommands
Removed duplicated $isTicket file
Updated setAuthor to latest method
Added $interactionPing
Added moderatemembers perm
$haspermsINChannel supports roleid now
Added $addApplicationCommandPermissions
Added $setApplicationCommandPermissions
Added $removeApplicationCommandPermissions
Added $loopStatus
Added $playerStatus
Added member type to error messages
Added start field and char field in $cropText (new usage $cropText[text;limit?;start?;char?])
Added $packageDependencies
Added usage prop in functionManger
$channelPermissionFor now accepts both role and member
Updated music and Time#digital has optional hour part
$isCustomEmoji now it also accepts full string
Removed useless packages
5.1.0
5.0.8
aoi.js v5.0.8 released
- Added await to interactions
- Added missing async in $interactionDefer
- Fixed createObject overwriting the d.data
- Fixed map and $onlybotperms still give an error if the bot has admin but not particular perms in cache
- Fixed $emojiCount
- Fixed $globalUserLeaderboard
- Fixed timestamp for custom number
- Fixed $awaitMessage timeout error and custom timeout in $timeoutMember
5.0.7
- Added $memberAvatar[userId?;size?;dynamic?;format?]
- Added $timeoutMember
- Added $expandNumber
- Added pre defined data transfer from cmd to awaitedCmd in $loop
- Added
allowedmentions
field in $interactionReply[content;embed?;components?;files?;allowedMentions?;ephemeral?] - Updated $author src code
- Dynamized the type part of $emojiCount
- Bumped djs version
- Repositioned the error message in $newTicket
- Fixed var name in $closeTicket
- Fixed nonPrefixed executing all Cmds which dont have aliases when user types undefined
- Fixed createVoiceAdapter is not a function in $guild
- Fixed various bugs.
- Removed ms completely
5.0.6
- Added $oldMsgData support messageDelete event
- Added $slashOption => $slashOption[option name]
- Added $oldMsgData => $oldMsgData || $oldMsgData[options]
- Added support for functions in name property of interactionCommand
- Added support for v4 if in customFunctions
- Added missing defines in $rawLeaderboard
- Added
createdAt
createdTimestamp and json data - Added
permissions
property in Role() - Updated $botLeave , $boostingSince src code from v4 to v5
- Updated all ResetVar functions src code from v4 to v5
- Fixed data transfer from main cmd to awaited Cmd in $if when {execute} is used
- Fixed typo in $sendTTS
- Fixed memberExist return true for empty args
- Fixed $setUsername
- Fixed $allMembersCount
- Fixed missing functions outdated
- Removed extra require('fs') in parserjs
- $suppressErrors only execute once when multiple functions give error -
- Interaction stop the code execution when one function gives error
- $message[args] return values [for Selectmenu] and options value [for slashCommands]
- $msg field optional in $newTIcket
- Lavalink returns correct
songInfo
title - Lavalink
shuffle
fixed. - Improvements to src.