Skip to content
aoi.js
Search
GitHub
Discord
Select theme
Dark
Light
Auto
Get Started
Guides
Client
Client Commands
Client Intents
Client Options
Client Permissions
Client Sharding
Client Status
Application Commands
Interaction Commands
Choices
Subcommands
Subcommand Groups
Autocomplete
Others
Character Escaping
Discord Events
Message Formatting
Parsers
Variables
Customs
Custom Functions
Custom Events
Hosting
Using Hosting Services
Using Termux
Extensions
@aoijs
aoi.music
Setup
Events
Functions
$addFilter
$autoPlay
$clearQueue
$getCurrentTrackDuration
$getFilters
$hasPlayer
$joinVC
$leaveVC
$loopMode
$loopStatus
$pauseTrack
$playerStatus
$playPreviousTrack
$playTrack
$queue
$queueLength
$removeFilter
$resetFilter
$resumeTrack
$search
$seek
$setFilter
$shuffleQueue
$skipTo
$skipTrack
$songInfo
$stopPlayer
$stopTrack
$unshuffleQueue
$voicePing
$volume
aoi.canvas
Setup
Guides
Font Registration
Getting Started
Functions
$addColorStop
$attachCanvas
$canvasSize
$canvasTrim
$clearRect
$createCanvas
$createGradient
$downloadCanvas
$drawImage
$drawLines
$fillRect
$fillText
$filter
$fontFamilies
$measureText
$registerFont
$rotation
$setShadow
$strokeRect
$strokeText
$translate
aoi.invite
Setup
Functions
$invite
$inviteChannelID
$inviteCode
$inviteeInfo
$inviteEventInfo
$inviteGuildID
$inviteJoins
$inviteLeaderboard
$inviteMaxUses
$inviterInfo
$inviteURL
$inviteUserID
$modifyInvite
$resetGuildInvites
$resetInvites
Tools
Application Command Creator
Functions
$index
$abbreviate
$abs
$addButton
$addButtonTo
$addClientReactions
$addCmdReactions
$addEmoji
$addField
$addMessageReactions
$addSelectMenu
$addSelectMenuTo
$addThreadMember
$addTimestamp
$advanceCooldown
$advancedReplaceText
$advancedTextSplit
$allChannelsCount
$allEmojisCount
$allMembersCount
$alwaysExecute
$and
$appendFile
$archiveThread
$argsCheck
$argsCount
$argsSlice
$arrange
$arrayAt
$arrayConcat
$arrayEvery
$arrayFilter
$arrayFind
$arrayForEach
$arrayIncludes
$arrayIndexOf
$arrayJoin
$arrayLastIndexOf
$arrayLength
$arrayMap
$arrayPop
$arrayPush
$arrayReverse
$arrayShift
$arrayShuffle
$arraySome
$arraySort
$arraySplice
$arrayUnshift
$attachment
$author
$authorAvatar
$authorBanner
$authorBannerColor
$authorID
$autoCompleteRespond
$awaitCmdReactions
$awaitComponents
$awaitComponentsUntil
$awaitData
$awaitExecute
$awaitMessageReactions
$awaitMessages
$ban
$banCount
$boostingSince
$broadcastEval
$bulk
$cacheMembers
$categoryChannels
$ceil
$channelCategoryID
$channelCooldown
$channelCount
$channelExists
$channelID
$channelLastMessageID
$channelLastPinTimestamp
$channelName
$channelNSFW
$channelOverwrites
$channelPermissionsFor
$channelPosition
$channelSendMessage
$channelTopic
$channelType
$channelUsed
$charCount
$checkCondition
$checkContains
$clear
$clearReaction
$clearReactions
$clientID
$clientLeave
$clientMutualGuilds
$clientOwnerIDs
$clientPrefixes
$clientToken
$clientTyping
$cloneChannel
$cloneEmbed
$cloneObject
$closeTicket
$color
$commandCode
$commandInfo
$commandName
$commandsCount
$comment
$componentCollector
$concatTextSplit
$cooldown
$cpu
$createAppEmoji
$createApplicationCommand
$createArray
$createAutomodRule
$createCache
$createChannel
$createChannelInvite
$createFile
$createGuild
$createGuildTemplate
$createObject
$createPoll
$createRole
$createScheduledEvent
$createStageInstance
$createSticker
$createTemporaryVar
$createThread
$createWebhook
$creationDate
$cropText
$customEmoji
$databasePing
$date
$datestamp
$day
$deafenUser
$deleteAppEmoji
$deleteApplicationCommand
$deleteArray
$deleteAutomodRule
$deleteButton
$deleteCacheData
$deleteChannel
$deleteChannels
$deleteCommand
$deleteEmoji
$deleteEmojis
$deleteFile
$deleteGuild
$deleteGuildTemplate
$deleteIn
$deleteInvite
$deleteMessage
$deleteObject
$deleteRoles
$deleteStageInstance
$deleteSticker
$deleteThread
$deleteVar
$deleteWebhook
$description
$digitalFormat
$disableComponents
$disableMentionType
$disconnectUser
$discordTimestamp
$discriminator
$divide
$djsEval
$dm
$editAppEmoji
$editButton
$editChannel
$editIn
$editMessage
$editObjectProperty
$editTextSplitElement
$editWebhookMessage
$elseif
$emojiCount
$emojiExists
$emojiName
$emojisFromMessage
$emojiURL
$endelseif
$endif
$endPoll
$error
$eval
$eventData
$eventEmit
$exec
$executionTime
$expandNumber
$fetch
$fetchActiveThreads
$fetchArchivedThreads
$fetchClientValues
$fileExists
$fileSize
$filterMessage
$filterTextSplitElement
$findChannel
$findChars
$findGuild
$findGuildChannel
$findInCache
$findMember
$findMembers
$findNumbers
$findObjectProperty
$findRole
$findRoles
$findSpecialChars
$findTextSplitIndex
$findUser
$floor
$footer
$forEachChannel
$forEachGuild
$forEachGuildChannel
$forEachMember
$forEachRole
$forEachUser
$formatDate
$get
$getApplicationCommandID
$getApplicationCommandOptions
$getArray
$getAttachments
$getAuditLogs
$getAutomodRuleId
$getBanReason
$getCacheData
$getChannelSlowmode
$getChannelVar
$getClientInvite
$getComponentCustomID
$getCooldownTime
$getEmbed
$getGlobalUserVar
$getGuildAutomodNames
$getGuildForumTags
$getGuildInvite
$getGuildTemplate
$getGuildTemplates
$getGuildVar
$getLeaderboardInfo
$getMentions
$getMessage
$getMessageVar
$getObject
$getObjectKeys
$getObjectProperty
$getObjectValues
$getPollVotes
$getReactions
$getRoleColor
$getSelectMenuValues
$getTextSplitLength
$getTimeout
$getUserVar
$getVar
$giveRole
$giveRoles
$globalCooldown
$globalUserLeaderBoard
$guildAFKChannelID
$guildAvailable
$guildBanner
$guildBoostCount
$guildBoostLevel
$guildBotCount
$guildChannelExists
$guildChannels
$guildCommunityUpdatesChannelID
$guildContentFilter
$guildCooldown
$guildCount
$guildCreatePost
$guildDefaultMessageNotifications
$guildDescription
$guildEditPost
$guildEmojiExists
$guildEmojis
$guildExists
$guildFeatures
$guildIcon
$guildID
$guildIDS
$guildLeaderboard
$guildLowestRole
$guildMaximumMembers
$guildMaxStageVideoChannelUsers
$guildMaxVideoChannelUsers
$guildMFALevel
$guildName
$guildNames
$guildNSFWLevel
$guildOwnerID
$guildPreferredLocale
$guildRandomID
$guildRoleIconURL
$guildRoles
$guildRulesChannelID
$guildSafetyChannelID
$guildShard
$guildShardID
$guildShardPing
$guildSplash
$guildSystemChannelID
$guildVanityURL
$guildVanityUses
$guildVerificationLevel
$guildWidgetChannelID
$handleError
$hasAnyPerm
$hasAnyRole
$hasAttachment
$hasComponents
$hasEmbeds
$hasGuildTemplate
$hasPerms
$hasPermsInChannel
$hasRoles
$guildHighestRole
$hoistedRole
$hour
$httpRequest
$humanizeMs
$if
$ifAwaited
$image
$indexOf
$indexOfArg
$interactionAttachment
$interactionData
$interactionDefer
$interactionDeferUpdate
$interactionDelete
$interactionEdit
$interactionFollowUp
$interactionLocale
$interactionModal
$interactionPing
$interactionPremium
$interactionReply
$interactionUpdate
$isAutoComplete
$isBanned
$isBoosting
$isBot
$isBotVerified
$isButtonInteraction
$isChannelManageable
$isCommandInteraction
$isComponentInteraction
$isContextMenuInteraction
$isCustomEmoji
$isDeafen
$isDM
$isEveryoneMentioned
$isGuildDeafened
$isGuildMuted
$isGuildPartnered
$isGuildVerified
$isHoisted
$isInteger
$isInteractionDeferred
$isInteractionRepliable
$isInteractionReplied
$isMentionable
$isMentioned
$isMuted
$isNumber
$isRoleEditable
$isRoleManaged
$isSelectMenuInteraction
$isSelfDeafened
$isSelfMuted
$isStreaming
$isThread
$isTicket
$isTimeout
$isUnicodeEmoji
$isUserDmEnabled
$isValidColor
$isValidHex
$isValidImageLink
$isValidInvite
$isValidLink
$isValidObject
$isVariableExist
$isVideoOn
$isVoice
$isWidgetEnabled
$joinSplitText
$joinThread
$jsonRequest
$kick
$killClient
$killShard
$leaveThread
$lerefAvatar
$let
$lockThread
$log
$loop
$map
$math
$max
$maxRam
$memberAvatar
$memberDisplayColor
$memberDisplayName
$memberExists
$memberJoinDate
$memberJoinPosition
$memberPremiumSince
$membersCount
$mentioned
$mentionedChannels
$mentionedChannelsCount
$mentionedRoles
$mentionedRolesCount
$mentionedUsersCount
$mentionType
$message
$messageAttachment
$messageExists
$messageFlags
$messageID
$messagePing
$messagePublish
$messageSlice
$messageType
$messageURL
$messageWebhookID
$min
$minute
$modifyApplicationCommand
$modifyChannelPerms
$modifyEmoji
$modifyRole
$modifyRolePerms
$modifyWebhook
$modulo
$month
$moveUser
$multi
$muteUser
$newApplicationCmd
$newChannel
$newEmoji
$newGuild
$newMember
$newPresence
$newRole
$newState
$newTicket
$newUser
$newVariable
$nodeVersion
$noEscapingMessage
$noMentionMessage
$nonEscape
$numberSeparator
$objectExists
$oldApplicationCmd
$oldChannel
$oldEmoji
$oldGuild
$oldMember
$oldMessage
$oldMsgData
$oldPresence
$oldRole
$oldState
$oldUser
$oldVariable
$onlyClientPerms
$onlyForCategories
$onlyForChannels
$onlyForGuilds
$onlyForIDs
$onlyForRoles
$onlyIf
$onlyIfMessageContains
$onlyNSFW
$onlyPerms
$or
$ordinal
$packageDependencies
$packageVersion
$parseDate
$parseTime
$partial
$ping
$pinMessage
$pinsUpdate
$pow
$pruneMembers
$ram
$random
$randomChannelID
$randomEmoji
$randomRoleID
$randomShuffle
$randomString
$randomText
$randomUserID
$rawLeaderboard
$reactionCollector
$reactionCount
$reactionData
$readFile
$readyTimestamp
$reboot
$referenceChannelId
$referenceGuildId
$referenceMessageId
$referenceUserId
$removeContains
$removeObjectProperty
$removeRole
$removeRoles
$removeSplitTextElement
$removeTextSplitElement
$removeThreadMember
$renameFile
$repeatMessage
$replaceText
$replaceTextWithRegex
$reply
$resetGlobalUserVar
$resetGuildVar
$resetUserVar
$resolveColor
$resolveEmojiID
$resolveStickerID
$respawnAllShards
$reverse
$roleCount
$roleExists
$roleId
$roleMembersCount
$roleName
$rolePerms
$rolePosition
$root
$round
$roundTenth
$second
$sendCrosspostingMessage
$sendDm
$sendMessage
$sendSticker
$sendTTS
$sendWebhookMessage
$setAutomodActions
$setAutomodAllowList
$setAutomodExemptChannels
$setAutomodExemptRoles
$setAutomodKeywordFilter
$setAutomodMentionRaidProtection
$setAutomodMentionTotalLimit
$setAutomodPreset
$setAutomodRegexFilter
$setAutomodType
$setCacheData
$setChannelTopic
$setChannelVar
$setClientAvatar
$setClientBanner
$setClientName
$setGlobalUserVar
$setGuildBanner
$setGuildDiscoverySplash
$setGuildIcon
$setGuildName
$setGuildVar
$setMessageVar
$setObjectProperty
$setRoleColor
$setRoleIcon
$setRolePosition
$setRoles
$setStatus
$setTimeout
$setUserNickname
$setUserVar
$setVar
$shard
$shutdown
$slashOption
$slowmode
$spawnShard
$spliceTextJoin
$splitText
$stopTimeout
$stringEndsWith
$stringStartsWith
$sub
$sum
$suppressErrors
$tempCooldown
$test
$textInputValue
$textSlice
$textSplit
$textSplitMap
$textTrim
$thumbnail
$timeoutData
$timeoutList
$timeoutMember
$timeZone
$title
$toLocaleUpperCase
$toLowerCase
$toUpperCase
$truncate
$unban
$unlockThread
$unPinMessage
$updateCommands
$uptime
$uri
$useChannel
$userActivity
$userAvatar
$userBadges
$userBanner
$userBannerColor
$userCustomStatus
$userDefaultAvatar
$userDisplayName
$userExists
$userGlobalName
$userHighestRole
$userHoistedRole
$userID
$userLeaderBoard
$userLowestRole
$username
$userNickname
$userPerms
$userPlatform
$userReacted
$userRoleColor
$userRoles
$userRolesCount
$usersBanned
$usersInChannel
$userStatus
$usersWithRole
$userTag
$variablesCount
$voiceID
$wait
$webhookExists
$webhookUpdate
$writeFile
$year
GitHub
Discord
Select theme
Dark
Light
Auto
$map
$map
will execute awaited commands for given elements.
Usage
$map[
text
;
split
;
awaitedCmds
;
sep
?
]
Parameters
Field
Type
Description
Required
text
string
Text.
true
split
string
true
awaitedCmds
string
Awaited Commands to execute.
true
sep?
string
Separator.
false