Skip to content

Releases: aoijs/aoi.js

6.1.1

21 Feb 02:14
Compare
Choose a tag to compare

Bug Fixes

  • Fixed $addObjectProperty
  • respondToBots in Client Options is now working! true/false
  • guildOnly in Client Options is now working! true/false

Improvements

  • Command Handler has better logs (simpler)
  • true and false have been updated in the remaining core.
  • $getAuditLogs now has an optional null checker.

6.1.0

12 Feb 19:52
Compare
Choose a tag to compare

Breaking Changes

  • Removed Bot Alias for AoiClient. Use AoiClient instead.
  • Renamed all server name function to cohernet guild name function.
  • on(Event) has been deprecated. Use events: {event} instead in Client Options.
  • All yes and no options has been deprecated. Use true and false instead in all Functions.

Server Guild Functions

$createServerInvite → $getGuildInvite
$serverAFKChannelID$guildAFKChannelID
$serverAvailable$guildAvailable
$serverBanner$guildBanner 
$serverBoostCount$guildBoostCount  
$serverBoostLevel$guildBoostLevel
$serverChannelExists$guildChannelExists
$serverContentFilter$guildContentFilter
$serverCooldown$guildCooldown
$serverCount$guildCount
$serverDefaultMessageNotifications$guildDefaultMessageNotifications   
$serverDescription$guildDescription
$serverEmojiExists$guildEmojiExists   
$serverEmojis$guildEmojis    
$serverExists$guildExists   
$serverFeatures$guildFeatures  
$serverIDS$guildIDS 
$serverIcon$guildIcon  
$serverMFALevel$guildMFALevel  
$serverNSFWLevel$guildNSFWLevel 
$serverName$guildName
$serverNames$guildNames
$serverPreferredLocale$guildPreferredLocale
$serverRulesChannelID$guildRulesChannelID 
$serverSplash$guildSplash
$serverVerificationLevel$guildVerificationLevel
$mutualServers$mutualGuilds
$getServerVar$getGuildVar
$serverLeaderBoard$guildLeaderBoard
$onlyForServers$onlyForGuilds
$resetServerVar$resetGuildVar
$setServerVar$setGuildVar
$findServerChannel$findGuildChannel
$isServerDeafened$isGuildDeafened
$isServerMuted$isGuildMuted

New Events Methods

+ onMessage
+ onMessageDelete
+ onMessageUpdate
+ onMessageDeleteBulk
+ onGuildJoin
+ onGuildLeave
+ onGuildUpdate
+ onGuildUnavailable
+ onRoleCreate
+ onRoleUpdate
+ onRoleDelete
+ onChannelCreate
+ onChannelUpdate
+ onChannelDelete
+ onChannelPinsUpdate
+ onStageInstanceCreate
+ onStageInstanceUpdate
+ onStageInstanceDelete
+ onThreadCreate
+ onThreadUpdate
+ onThreadDelete
+ onThreadListSync
+ onThreadMemberUpdate
+ onThreadMembersUpdate
+ onJoin
+ onLeave
+ onMemberUpdate
+ onMemberAvailable
+ onMembersChunk
+ onEmojiCreate
+ onEmojiDelete
+ onEmojiUpdate
+ onStickerCreate
+ onStickerDelete
+ onStickerUpdate
+ onBanAdd
+ onBanRemove
+ onReactionAdd
+ onReactionRemove
+ onReactionRemoveAll
+ onReactionRemoveEmoji
+ onVoiceStateUpdate
+ onPresenceUpdate
+ onTypingStart
+ onInteractionCreate
+ onApplicationCmdPermsUpdate
+ onUserUpdate
+ onVariableCreate
+ onVariableDelete
+ onVariableUpdate
+ onFunctionError
+ onWebhookUpdate

Example adding Events

const aoijs = require("aoi.js")

const bot = new aoijs.AoiClient({
    token: "Discord Token",
    prefix: "Discord Prefix",
    intents: ["MessageContent", "GuildMessages", "Guilds"],
    events: ["onMessage", "onInteractionCreate"]
})

Bug Fixes

  • Fixed $onlyBotPerms
  • Fixed $createApplicationCommand of parsers.
  • Fixed $allChannelCount
  • Fixed path and function on AoiError
  • Fixed $createSticker
  • Fixed $expandNumber
  • Fixed $getAuditLogs and changed usage
  • Fixed $onlyForChannels
  • Fixed typo of proper manageemojisandstickers permission
  • Fixed $if
  • Fixed $fetchArchivedThreads

Removed

  • Deprecated $editGuild
  • Deprecated disableLogs, use aoiLogs instead.
  • Removed Client status log.

Improvements

  • AoiWarning will now run after events.
  • Updated AoiError
  • Updated Parser
  • Updated partials
  • Re-added moderatemembers
  • Removed any console logs.
  • Cleaner Startup logs.
- $activity
+ $userActivity

Load Commands

  • Fixed LoadCommands state
  • Renamed Walking in to Loading in.
  • Renamed Failed to walk to Failed to load.

Features

  • Added aoiWarning in Client Options to disable AoiWarning appearing if outdated. (true/false)
  • Added optional all to all interactionFunctions that uses allowedMentions.
+ $createScheduledEvent[channelID;name;description;starTime;EndTime;entityType;entityMetadata;image;reason]

6.0.3

10 Jan 03:46
Compare
Choose a tag to compare

Bug Fixes

  • Fixed $voiceID
  • Fixed $newTicket
  • Fixed $createChannel
  • Fixed $createFile
  • Fixed $channelOverwrites not mentioning role.
  • Fixed $serverMFALevel
  • Fixed $referenceChannelID
  • Fixed $referenceGuildID
  • Fixed $referenceMessageID
  • Fixed $userCustomStatus
  • Fixed $attachment
  • Fixed $createwebhook

Improvements

  • Updated AoiError to use the new Parser system.
  • $createwebhook now has reason parameter.
- $defaultMessageNotification
+ $serverDefaultMessageNotifications

ChannelTypes

  • Added Forum type.
- News
+ Announcement
- NewsThread
+ AnnouncementThread
- Dm
+ DM
- Nsfw
+ NSFW

6.0.2

02 Jan 18:38
Compare
Choose a tag to compare

Bug Fixes

  • Fixed interaction Types
  • Fixed all permissions related function not corresponding to permission type.

Improvements

  • $if: v4 method has been renamed to $if: old to avoid confusion.
- $isManaged
+ $isRoleManaged

Features

  • Added $isThread
  • Added $isDM
  • Added $isVoice

6.0.1

01 Jan 01:02
Compare
Choose a tag to compare

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

19 Nov 22:59
Compare
Choose a tag to compare

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

23 Jul 00:50
Compare
Choose a tag to compare

🎉 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

01 Jul 04:04
Compare
Choose a tag to compare

🎉 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

23 Mar 02:56
Compare
Choose a tag to compare
  • Fixed json parser
  • $clear internal workout

5.1.1

17 Mar 18:38
Compare
Choose a tag to compare
$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