Releases: aoijs/aoi.js
6.11.1
6.11
What's Changed
- Makes Interaction deferable before $onlyif by @Vishvaas06 in #719
- fix: Unicode Emoji Regex by @Vishvaas06 in #721
- Fix guildExists by @NanotechPikachu in #722
- fix: mention type being invalid in $guildRoles by @Vishvaas06 in #724
- fix $setObjectProperty by @tyowk in #727
- fix: $setTimeout by @tyowk in #728
- Create time.js by @Vishvaas06 in #730
- Update interactionAttachment.js by @Vishvaas06 in #729
- Update interactionUpdate.js for cv2 by @Vishvaas06 in #734
- $filterMembers by @Faf4a
- $getUserInstallCount by @Faf4a
- Fix bug where $cacheMembers requires arguments when it doesnt by @Faf4a
- Fixed a 'bug' where the ready event fired multiple times, only fires once on startup now by @Faf4a
- Fixed a bug where loop commands required a channel id by @Faf4a
- removed unknown version error and replaced with dev version warning by @Faf4a
- updated to latest discord.js version by @Faf4a
- fixed $jsonRequest returning [object Object] in specific edge cases by @Faf4a
- fix the way aoi.js handles emojis by @Faf4a
- New way to include function arguments by @Faf4a
$function[
guildId: $guildId,
name: some funky name!
leref: false
]Only a few functions such as $editChannel and $createRole support this format for now. More will follow.
The old format STILL works!
- Deprecate 'ready' event, use 'clientReady' instead!
client.readyCommand did not change! Only for commands using the 'type' property.
New Contributors
- @NanotechPikachu made their first contribution in #722
Full Changelog: 6.10.3...6.11
6.10.3
- fix: $if & function parsing by @USERSATOSHI
- fix: emoji parsing by @Faf4a
- feat: update interactions to use MessageFlags instead of booleans by @Faf4a
- misc: deprecate $createGuild by @Faf4a
- feat: soundboard functions by @Faf4a
- fix: leaderboard functions not ignoring non-existent guilds by @Faf4a
- fix: interactions not respecting cv2 content by @Faf4a
- fix: thread events by @Faf4a
- fix: globalUserLeaderboard containing undefined variables by @Faf4a
- misc: remove undici as dep in $jsonRequest by @Faf4a
thanks to all contributors as always
Full Changelog: 6.10.2...6.10.3
6.10.2
6.10.1
Fix: regression causing parser to error without components attached.
Full Changelog: v6.10.0...v6.10.1
6.10.0
What's Changed
- add property to $guildRoles by @dtooast in #670
- $getMessageReactions by @dtooast in #671
- add option to $cloneEmbed by @Discord-Verified-Developer in #672
- V6 Macros by @Cyberghxst in #677
- add option to $getAttachments :) by @devlordduck in #678
- update editButton.js by @tyowk in #679
- Fix macro resolution by @Cyberghxst in #681
- add components checking by @tyowk in #682
- Fix rawLeaderboard.js by @tyowk in #683
- Fixed bugs and added something 🐥 by @tyowk in #684
- fix guild vanity functions by @tyowk in #687
- fix $createApplicationCommand for message & user type by @Vishvaas06 in #692
- Fixed getGuild() Util for sharding by @Vishvaas06 in #691
- fix: $if old parsing by @tyowk in #689
- fix some issues with new http functions by @Cyberghxst in #686
- fix: $addButtonTo by @tyowk in #693
- Create enableComponents.js by @Vishvaas06 in #690
- bump djs and add forwarding by @Faf4a in #688
- fix(parser): button label with colon doesn't work by @FightFarewellFearless in #696
- fix: $addButtonTo by @tyowk in #695
- New function, new parameter for $clientPrefixes & bug fix by @Bottomloader in #699
- Update globalUserLeaderBoard.js by @YordiGamex in #704
- feat: ensure consistent interaction name (customId) behavior between MessageComponent and Modal by @FightFarewellFearless in #700
- Fix allApplicationCommands.js by @Bottomloader in #701
- fix: separator not working in $numberSeparator by @FightFarewellFearless in #705
- feat: add $objectHasProperty by @FightFarewellFearless in #707
- fix: empty $isCommandInteraction by @FightFarewellFearless in #706
- feat: add optional encoding to $attachment by @FightFarewellFearless in #702
- Fixed $create thread by @supremesupreme in #713
- components v2 implementation for the parser by @devlordduck in #711
- fix: timeout can't be stopped by @FightFarewellFearless in #708
New Contributors
- @dtooast made their first contribution in #670
- @Discord-Verified-Developer made their first contribution in #672
- @devlordduck made their first contribution in #678
- @tyowk made their first contribution in #679
- @FightFarewellFearless made their first contribution in #696
- @Bottomloader made their first contribution in #699
- @YordiGamex made their first contribution in #704
Full Changelog: 6.9.0...v6.10.0
6.9.0
Added
-
Added entitlements
- create, update and delete events
- 7 new functions related to premium features!
- $isConsumed, $consume, $createTestEntitlement, $deleteTestEntitlement, $oldEntitlementData, $newEntitlementData, $hasPremium
- ability to send premium buttons!
-
Support for app emojis
- ability to edit, update and delete app emojis
- 3 new functions related to them,
- $createAppEmoji, $deleteAppEmoji, $editAppEmoji
- $customEmoji now supports sending app emojis!
-
$getAvatarDecoration, returns an (static) image of the users' avatar decoration
-
$deleteCacheData, deletes data created with $createCacheData
-
$awaitComponentsUntil, "temporary" interaction command to will expire after a given time
-
$cloneEmbed, simply clone your embeds instead of having to copy and paste your whole code!
-
$disableComponents, easily disable any components without having to edit the whole message!
-
$getTimeout, return all active timeouts created via $setTimeout!
-
$randomEmoji now allows you to specify the return type.
-
$usersBanned & $guildRoles now allows you to specify more return types and create lists using JSON.
-
Improvements to $httpRequest, now able to return HTML content, via #639
-
Updated typings, via #647
-
Added "endCmd" to most loop commands
-
Added "index" to most loop commands, meaning you can now use the $index function to return the current index of the loop
-
Added $switch[] function, thanks @Cyberghxst
-
Added $getGuildBoosters
-
Added $voiceMemberCount
-
Added $setVoiceStatus
-
Added $getAutomodRule
-
Added $getAutomodRules
Fixes
- Fixed $setTimeout not executing after bot restart in some edge-cases!
- Fixed $isInteger returning always false
- Fixed $isValidImageLink throwing an error instead of returning false
- Fixed several parser bugs
- Unable to attach multiple images
- Unable to use custom emojis in buttons in the string format
- Parser is now less strict and doesn't instantly break
- Fixes member events returning invalid data
- More minor bug fixes
- Fixes reaction events
- Fixes $awaitMessages not having embed support
- Fixes emoji parsing in all functions & parser
- Fixes event data not being present for member events
6.8.5
Added:
$discordTimestamp[timestamp;flag]- returns timestamp by default, can be altered.
Interactions functions
$interactionLocale$interactionPremium$isInteractionDeferred$isInteractionRepliable$isInteractionReplied
Fixed:
- Fixed
$stopTimeoutmax duration. - Fixed
$addSelectMenuToaction row. - Fixed
$arrayPushreturning number - Fixed
$clearincorrect usage, now updated$clear[channelID;amount;returnCount;bots;unpinned;words;user]. - Fixed nodejs checker.
- Fixed AoiWarning.
Improvements:
$isSelectMenuInteractionupdated to new methods, no parameters changes.- Now using
@aoijsorg for NPM + Github. (Extensions have been updated)
Removed:
- Removed deprecation console log of
$if: old. (You can still use$if: oldmethod) - Removed voice constant.
- Removed
deafenpermission (Usecreateinstantinvite - Removed
mutepermission (Usemutemembers) - Removed
ManageEmojisAndStickers(UseManageGuildExpressions) - Removed
createinvitepermission (Usecreateinstantinvite)
6.8.0
Breaking Changes
⚠️ You cannot use an older aoi.db version lower than 2.3.x, as it will break your entire data since new scheming, always make a backup.
Interaction Changes
$interactionReply[content;allowedMentions;ephemeral;returnId]$interactionDefer[ephemeral]$interactionFollowUp[content;ephemeral;returnId]$interactionEdit[content;allowedMentions]$interactionUpdate[content]
$clear updated
- Added
{words}filter in$clear- New usage:
$clear[channelId;amount;{bot:true} {unpinned:true} {users:userid,userid} {words:only this,content,will,be,deleted};returnCount]
- New usage:
All automod functions are now split up into multiple.
$createAutomodRule[guildId;name;enabled;reason]$getGuldAutomodNames[guildId;separator]$setAutomodActions[type;channel;durationSeconds;customMessage]$setAutomodAllowList[...words]$setAutomodExemptChannels[...channels]$setAutomodExemptRoles[...roles]$setAutomodKeywordFilter[...words]$setAtomodMentionRaidProtection[enabled]$setAutomodMentionTotalLimit[limit]$setAutomodPreset[...presets]$setAutomodRegexFilter[...regex]$setAutomodType[type]
Added
New debug option
Allows for debugging purpose of your Client.
+ debugs: {
+ interpreter: true
+ }
- #576
typeoption in$commandsCount - #604
$addMessageFlags[channelId;messageId;...flags] - #604
$setMessageFlags[...flags] - #604 Added flags parser option `{flags:}
- #604 Added
{allowedMentions}parser - #596
MessagePollVoteAdd&MessagePollVoteRemoveevents - #595
SendPollspermission - #595 / 1be332a
$setClientBanner[bannerUrl] - #595
$createPoll[channelId;question;duration;allowMultiselect;...answers] - #595
$endPoll[channelId;messageId] - #595
$getPollVotes[channelId;messageId;pollId;format;separator] - #593
$removeComponents[channelId;messageId;...customIds] - #576
$addButtonTo[channelId;messageId;index;label;style;customId;disabled;emoji] - #576
$addSelectMenuTo[channelId;messageId;index;type;customId;placeholder;minValues;maxValues;disabled;...options] - #576
$getArray[name]returns the raw array created via$createArray[] - #576
$emojiName[emojiResolver]returns the emoji name - #576 Added defer option for
{interaction:defer?} - #570
$arrange[type;separator;...numbers]arrange numbers after given format - #570
$emojiURL[emojiURL]returns the emoji URL of an given emoji - #551 Added
{reply:messageId:mentionUser?}parser - 5cb768d Added
mutemembers&deafenmembersto match discord.js (old permission names still exist!) - ca93a54
$isSelectMenuInteraction - ca93a54
$interactionAttachment[option]returns attachments passed via slash options - 6452125
$timeoutList[format;separator]returns all timeouts saved in the database - f5c4568
$advancedReplaceText[text;...replacements], better version of$replaceText[] - 83134bb
$test[text;pattern;flag], test if the regex is truthy - 059a410
$clientGuilds[format;list;separator;sort]returns all client guilds - b382311
$clientShards[format;separator]returns all client shards - 3cdb11f
$deleteGuild[guildId]deletes a given guild - 92820a1
$createGuild[name;icon;returnId]creates a new guild - 34545fb
$disconnectUser[guildId;userID;reason]disconnects a user from a Voice Channel - 5d4d00e
$hasComponents[channelId;messageId;type] - 763db49
$getComponentCustomIdreturns the interaction custom id - 8b3e368
$memberPremiumSince[memberId;guildId] - 31284b9
$channelPosition[channelId] - 3fc5e83
$channelLastPinTimestamp[channelId] - f932cfd
$channelLastMessageId[channelId] - ba7119c
sub_command,sub_command_groupcommand options - 07aa710
$comment[comment] - b80bd6a
$getSelectMenuValues[value;separator]returns selected select menu options - 337376d
$createGuildTemplate[guildId;name;description;returnCode] - 337376d
$deleteGuildTemplate[code] - 337376d
$getGuildTemplate[code;property] - 337376d
$hasGuildTemplate[guildId]
Removed
- #595
$addApplicationCommandPermissions - #595
$removeApplicationCommandPermissions - #595
$setApplicationCommandPermissions - #593
$deleteButton[] - 70e1cdf
{selectMenuOptions}, use{stringInput} - 70e1cdf Removed
yes/nosupport for parser functions (use true/false) - 1c01dee
$awaitComponentsUntil, use$awaitComponentsinstead
Fixed
- #604 Fixed typo in
$createApplicationCommandrendering it unable to limit commands to guilds/Direct Messages - #604 Fixed
$clearnot returning the actual deleted messages - #600
memberChunkevent having a typo causing a crash 0da8957Fixed$isIntegerreturning falsy values- #597 Fixed
$setTimeoutnot executing after restart, and values not deleting from the database - #596 Fixed
$getObjectPropertyhaving a left-overconsole.log() - #576 Fixed
$stopTimeouttargetting the wrong database table - #576 Fixed
$emojiExistsnot working correctly for unicode emojis. - #576 Fixed
$isUnicodeEmojinot covering all ranges - #576 Fixed
$jsonRequestreturning minified json objects - #576 Fixed
{button:}splitting urls causing it to break - #570 Fixed
$hourreturning one digit long values - #570 Fixed
$minutereturning one digit long values - #570 Fixed
$secondreturning one digit long values - #567 Fixed
$modifyRolePermsnot modfying role permissions, (thanks @berticulousnert!) - ca93a54 Fixed
$isComponentInteractionnot working - a998471 Fixed
$createThreadunable to create threads within forum channels - 2ba9392 Fixed
$reactionCollectorreturning the incorrect author - 5728f55 Fixed
$awaitComponentsnot working - 5b7eff8 Fixed
$fetchreturning stringified objects - 9f7bdae Fixed
$creationDatenot working for users who are sharding, now usesSnowflakeUtil - b617d99 Fixed
{edit}parser - 46ddfdf Fixed error parsing in cooldown functions
- 216e3fb Fixed
$awaitMessageReactions - 9012c96 Fixed
$clearhaving a maximum of99instead of100
Minor Changes
- a6721d8
$updateCommandsnow supports sharding