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
type
option in$commandsCount
- #604
$addMessageFlags[channelId;messageId;...flags]
- #604
$setMessageFlags[...flags]
- #604 Added flags parser option `{flags:}
- #604 Added
{allowedMentions}
parser - #596
MessagePollVoteAdd
&MessagePollVoteRemove
events - #595
SendPolls
permission - #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
&deafenmembers
to 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
$getComponentCustomId
returns the interaction custom id - 8b3e368
$memberPremiumSince[memberId;guildId]
- 31284b9
$channelPosition[channelId]
- 3fc5e83
$channelLastPinTimestamp[channelId]
- f932cfd
$channelLastMessageId[channelId]
- ba7119c
sub_command
,sub_command_group
command 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/no
support for parser functions (use true/false) - 1c01dee
$awaitComponentsUntil
, use$awaitComponents
instead
Fixed
- #604 Fixed typo in
$createApplicationCommand
rendering it unable to limit commands to guilds/Direct Messages - #604 Fixed
$clear
not returning the actual deleted messages - #600
memberChunk
event having a typo causing a crash 0da8957
Fixed$isInteger
returning falsy values- #597 Fixed
$setTimeout
not executing after restart, and values not deleting from the database - #596 Fixed
$getObjectProperty
having a left-overconsole.log()
- #576 Fixed
$stopTimeout
targetting the wrong database table - #576 Fixed
$emojiExists
not working correctly for unicode emojis. - #576 Fixed
$isUnicodeEmoji
not covering all ranges - #576 Fixed
$jsonRequest
returning minified json objects - #576 Fixed
{button:}
splitting urls causing it to break - #570 Fixed
$hour
returning one digit long values - #570 Fixed
$minute
returning one digit long values - #570 Fixed
$second
returning one digit long values - #567 Fixed
$modifyRolePerms
not modfying role permissions, (thanks @berticulousnert!) - ca93a54 Fixed
$isComponentInteraction
not working - a998471 Fixed
$createThread
unable to create threads within forum channels - 2ba9392 Fixed
$reactionCollector
returning the incorrect author - 5728f55 Fixed
$awaitComponents
not working - 5b7eff8 Fixed
$fetch
returning stringified objects - 9f7bdae Fixed
$creationDate
not working for users who are sharding, now usesSnowflakeUtil
- b617d99 Fixed
{edit}
parser - 46ddfdf Fixed error parsing in cooldown functions
- 216e3fb Fixed
$awaitMessageReactions
- 9012c96 Fixed
$clear
having a maximum of99
instead of100
Minor Changes
- a6721d8
$updateCommands
now supports sharding