forgescript
Version:
ForgeScript is a comprehensive package that empowers you to effortlessly interact with Discord's API. It ensures scripting remains easy to learn and consistently effective.
1 lines • 184 kB
JSON
[{"name":"$abbreviateNumber","version":"1.0.0","description":"Abbreviates given number","unwrap":true,"args":[{"name":"number","description":"The number to abbreviate","rest":false,"required":true,"type":"Number"}],"brackets":true},{"name":"$abs","version":"1.0.1","description":"Returns the absolute value of a number (the value without regard to whether it is positive or negative)","brackets":true,"unwrap":true,"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}]},{"name":"$addActionRow","version":"1.0.0","description":"Adds an action row","unwrap":false},{"name":"$addButton","version":"1.0.0","description":"Adds a button component to the newest row","unwrap":true,"brackets":true,"args":[{"name":"custom ID","description":"The custom id for this component","rest":false,"type":"String","required":true},{"name":"label","description":"The button label","rest":false,"type":"String","required":true},{"name":"style","description":"The style for this button","enum":["Primary","Secondary","Success","Danger","Link"],"type":"Enum","required":true,"rest":false},{"name":"emoji","rest":false,"type":"String","description":"The emoji for this button"},{"name":"disabled","rest":false,"type":"Boolean","description":"Whether to disable the button"}]},{"name":"$addChannelPerms","version":"1.0.3","description":"Adds permission overwrites to a channel, returns bool","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to add perms to","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or member id to add these perms to","rest":false,"required":true,"type":"String"},{"name":"perms","description":"The perms to add to the id","rest":true,"type":"String","required":true,"enum":["CreateInstantInvite","KickMembers","BanMembers","Administrator","ManageChannels","ManageGuild","AddReactions","ViewAuditLog","PrioritySpeaker","Stream","ViewChannel","SendMessages","SendTTSMessages","ManageMessages","EmbedLinks","AttachFiles","ReadMessageHistory","MentionEveryone","UseExternalEmojis","ViewGuildInsights","Connect","Speak","MuteMembers","DeafenMembers","MoveMembers","UseVAD","ChangeNickname","ManageNicknames","ManageRoles","ManageWebhooks","ManageEmojisAndStickers","ManageGuildExpressions","UseApplicationCommands","RequestToSpeak","ManageEvents","ManageThreads","CreatePublicThreads","CreatePrivateThreads","UseExternalStickers","SendMessagesInThreads","UseEmbeddedActivities","ModerateMembers","ViewCreatorMonetizationAnalytics","UseSoundboard","UseExternalSounds","SendVoiceMessages"]}]},{"name":"$addChoice","version":"1.0.6","description":"Adds an autocomplete choice","unwrap":true,"brackets":true,"args":[{"name":"choice name","description":"The name for this choice","rest":false,"required":true,"type":"String"},{"name":"choice value","description":"The value for this choice","rest":false,"required":true,"type":"String"}]},{"name":"$addEmoji","version":"1.0.7","description":"Adds an emoji to a guild, returns the emoji id","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to add this emote to","rest":false,"required":true,"type":"Guild"},{"name":"name","description":"The name for the emoji","rest":false,"required":true,"type":"String"},{"name":"url","description":"The emoji icon to use","rest":false,"required":true,"type":"String"},{"name":"return emoji ID","description":"Whether to return the emoji id","rest":false,"type":"Boolean"},{"name":"roles","description":"The roles to limit usage of this emote","rest":true,"required":true,"type":"Role","pointer":0}]},{"name":"$addField","version":"1.0.0","description":"Adds an embed field","unwrap":true,"args":[{"name":"name","description":"The name for the field","required":true,"type":"String","rest":false},{"name":"value","description":"The value for the field","required":true,"type":"String","rest":false},{"name":"inline","description":"Whether this field will be inline","type":"Boolean","rest":false},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true},{"name":"$addMessageReactions","version":"1.0.0","description":"Adds reactions to a message, returns amount of emojis successfully reacted","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel the message is located","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to add reactions to","rest":false,"type":"Message","pointer":0,"required":true},{"name":"emojis","description":"The emojis to react with","rest":true,"type":"String","required":true}]},{"name":"$addOption","version":"1.0.0","description":"Adds a select menu option","unwrap":true,"brackets":true,"args":[{"name":"name","description":"The option name","rest":false,"required":true,"type":"String"},{"name":"description","description":"The description for this option","rest":false,"type":"String","required":false},{"name":"value","description":"The value to use for this option","rest":false,"required":true,"type":"String"},{"name":"emoji","description":"The emoji to use for this option","type":"String","rest":false},{"name":"default","description":"Whether to set this option as default","rest":false,"type":"Boolean"}]},{"name":"$addRole","version":"1.0.0","description":"Adds a role to a guild, returns role id if success","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to add the role to","rest":false,"type":"Guild","required":true},{"name":"name","description":"The role name","rest":false,"required":true,"type":"String"},{"name":"color","description":"The role color","rest":false,"type":"String"},{"name":"icon","description":"The role icon","rest":false,"type":"String"},{"name":"hoisted","description":"Whether the role is hoisted","type":"Boolean","rest":false},{"name":"mentionable","description":"Whether the role is mentionable","type":"Boolean","rest":false},{"name":"position","description":"The position for this role","rest":false,"type":"Number"},{"name":"perms","description":"The role perms","rest":true,"enum":["CreateInstantInvite","KickMembers","BanMembers","Administrator","ManageChannels","ManageGuild","AddReactions","ViewAuditLog","PrioritySpeaker","Stream","ViewChannel","SendMessages","SendTTSMessages","ManageMessages","EmbedLinks","AttachFiles","ReadMessageHistory","MentionEveryone","UseExternalEmojis","ViewGuildInsights","Connect","Speak","MuteMembers","DeafenMembers","MoveMembers","UseVAD","ChangeNickname","ManageNicknames","ManageRoles","ManageWebhooks","ManageEmojisAndStickers","ManageGuildExpressions","UseApplicationCommands","RequestToSpeak","ManageEvents","ManageThreads","CreatePublicThreads","CreatePrivateThreads","UseExternalStickers","SendMessagesInThreads","UseEmbeddedActivities","ModerateMembers","ViewCreatorMonetizationAnalytics","UseSoundboard","UseExternalSounds","SendVoiceMessages"],"required":true,"type":"String"}]},{"name":"$addRoleSelectMenu","version":"1.3.0","description":"Creates a role select menu","brackets":true,"unwrap":true,"args":[{"name":"custom ID","description":"The custom id for this menu","rest":false,"required":true,"type":"String"},{"name":"placeholder","description":"The placeholder to use for the menu","rest":false,"type":"String"},{"name":"min values","description":"The min values to choose for the menu","rest":false,"type":"Number"},{"name":"max values","description":"The max values to choose for the menu","rest":false,"type":"Number"},{"name":"disabled","description":"Whether the menu is disabled by default","rest":false,"required":false,"type":"Boolean"},{"name":"default roles","rest":true,"type":"String","description":"The default selected roles to use","required":true}]},{"name":"$addSticker","version":"1.0.0","description":"Adds a sticker to a guild, returns boolean","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to add the sticker to","rest":false,"type":"Guild","required":true},{"name":"url","description":"The url or file path for this sticker","rest":false,"required":true,"type":"String"},{"name":"name","description":"The sticker name","rest":false,"type":"String","required":true},{"name":"tags","description":"The tags to use for this sticker","type":"String","required":true,"rest":false},{"name":"description","description":"The description for the sticker","rest":false,"type":"String"}]},{"name":"$addStringSelectMenu","version":"1.0.0","description":"Adds a string select menu","unwrap":true,"brackets":true,"args":[{"name":"custom ID","description":"The custom id to use for this menu","rest":false,"required":true,"type":"String"},{"name":"placeholder","description":"The placeholder to use for the menu","rest":false,"type":"String"},{"name":"disabled","description":"Whether to keep this menu disabled","type":"Boolean","rest":false},{"name":"min values","description":"The min values to choose for the menu","rest":false,"type":"Number"},{"name":"max values","description":"The max values to choose for the menu","rest":false,"type":"Number"}]},{"name":"$addTextInput","version":"1.0.0","description":"Adds a text input field to the modal","brackets":true,"unwrap":true,"args":[{"name":"custom ID","description":"The custom id for this field","rest":false,"type":"String","required":true},{"name":"name","description":"The field name","rest":false,"required":true,"type":"String"},{"name":"type","description":"Paragraph or short","rest":false,"type":"Enum","enum":["Short","Paragraph"]},{"name":"required","description":"Whether this field is required","rest":false,"type":"Boolean"},{"name":"placeholder","description":"The placeholder to use for the field","rest":false,"type":"String"},{"name":"default value","description":"The default value for the field","rest":false,"type":"String"},{"name":"minimum length","description":"The minimum length needed","rest":false,"type":"Number"},{"name":"maximum length","description":"The max length needed","rest":false,"type":"Number"}]},{"name":"$addThreadMember","version":"1.0.0","description":"Adds a member to a thread, returns bool","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"channel ID","description":"The thread to add member to","rest":false,"required":true,"type":"Channel"},{"name":"user ID","pointer":0,"description":"The member to add","rest":false,"required":true,"type":"Member"},{"name":"reason","description":"The reason to add this member to thread","rest":false,"type":"String"}]},{"name":"$and","version":"1.0.0","description":"Validates multiple conditions","unwrap":false,"brackets":true,"args":[{"name":"conditions","rest":true,"required":true,"type":"String","condition":true,"description":"The conditions that must match"}]},{"name":"$appendFile","version":"1.0.0","description":"Appends text to a file","unwrap":true,"brackets":true,"args":[{"name":"path","description":"The path to the file","rest":false,"required":true,"type":"String"},{"name":"text","description":"The text to append","rest":false,"type":"String","required":true},{"name":"encoding","description":"The encoding to use for text","rest":false,"type":"String"}]},{"name":"$applicationCommandDescription","version":"1.0.7","description":"Returns an application command description","brackets":false,"args":[{"name":"id","description":"The id of the command to pull its description","rest":false,"required":true,"type":"String"}],"unwrap":true},{"name":"$applicationCommandID","version":"1.0.7","description":"Returns the application command id","brackets":false,"args":[{"name":"name","description":"The name of the command to pull its id","rest":false,"required":true,"type":"String"}],"unwrap":true},{"name":"$applicationCommandName","version":"1.0.7","description":"Returns an application command name","brackets":false,"args":[{"name":"id","description":"The id of the command to pull its name","rest":false,"required":true,"type":"String"}],"unwrap":true},{"name":"$archiveThread","version":"1.0.0","description":"Archives a thread, returns bool","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The thread to archive","rest":false,"required":true,"type":"Channel"},{"name":"reason","description":"The reason to archive this thread","rest":false,"type":"String"}]},{"name":"$argCount","version":"1.0.0","brackets":false,"description":"Counts number of args in message","unwrap":true,"args":[{"name":"text","description":"Text to count arguments","required":true,"rest":false,"type":"String"}]},{"name":"$arrayAt","version":"1.0.0","description":"Returns the element at given index","unwrap":true,"brackets":true,"args":[{"name":"variable","description":"The variable the array is held on","type":"String","rest":false,"required":true},{"name":"index","type":"Number","description":"The index to get the element of","rest":false,"required":true}]},{"name":"$arrayClear","version":"1.0.0","description":"Clears all elements from an array","unwrap":true,"args":[{"name":"variable","description":"The variable the array is held on","rest":false,"required":true,"type":"String"}],"brackets":true},{"name":"$arrayConcat","version":"1.0.0","description":"Concat arrays and load them into another variable","unwrap":true,"args":[{"name":"variable","description":"The variable to load the result to","rest":false,"required":true,"type":"String"},{"name":"variables","description":"The variable names to concat","rest":true,"type":"String","required":true}],"brackets":true},{"name":"$arrayEvery","version":"1.0.0","description":"Loops through every element of the array with a condition that must pass every element","unwrap":false,"experimental":true,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"},{"name":"variable","description":"The variable to load the element value to","rest":false,"required":true,"type":"String"},{"name":"code","description":"The code to execute for every element","rest":false,"required":true,"type":"String"}],"brackets":true},{"name":"$arrayFindIndex","version":"1.0.0","description":"Finds the index of an element in the array","unwrap":false,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"},{"name":"variable","description":"The variable to load the element value to","rest":false,"required":true,"type":"String"},{"name":"code","description":"The code to execute for every element","rest":false,"condition":true,"required":true,"type":"String"}],"experimental":true,"brackets":true},{"name":"$arrayForEach","version":"1.0.0","description":"Loops through every element of the array","unwrap":false,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"},{"name":"variable","description":"The variable to load the element value to","rest":false,"required":true,"type":"String"},{"name":"code","description":"The code to execute for every element","rest":false,"required":true,"type":"String"}],"experimental":true,"brackets":true},{"name":"$arrayIncludes","version":"1.0.0","description":"Checks whether a value exists in an array","unwrap":true,"args":[{"name":"variable","description":"The variable the array is held on","rest":false,"required":true,"type":"String"},{"name":"value","description":"The value to check for","rest":false,"type":"String","required":true}],"brackets":true},{"name":"$arrayIndexOf","version":"1.0.0","description":"Gets the index of an element in the array","unwrap":true,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"},{"name":"value","description":"The exact value to get its index","rest":false,"required":true,"type":"String"}],"brackets":true},{"name":"$arrayJoin","version":"1.0.0","description":"Joins all elements from an array with given separator","unwrap":true,"args":[{"name":"variable","description":"The variable the array is held on","rest":false,"required":true,"type":"String"},{"name":"separator","description":"The separator to use for every element","rest":false,"type":"String"}],"brackets":true},{"name":"$arrayLength","version":"1.0.0","description":"Returns the numbers of elements in an array","unwrap":true,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"}],"brackets":true},{"name":"$arrayLoad","version":"1.0.0","description":"Loads an array to an environment variable","args":[{"name":"variable","description":"The variable name to load this array to","required":true,"rest":false,"type":"String"},{"name":"separator","description":"The separator to use for the array elements","rest":false,"type":"String","required":true},{"name":"values","description":"The elements of the array","required":true,"rest":true,"type":"String"}],"unwrap":true,"brackets":true},{"name":"$arrayMap","version":"1.0.0","description":"Maps through every element of the array and loads the results to another array","unwrap":false,"experimental":true,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"},{"name":"variable","description":"The variable to load the element value to","rest":false,"required":true,"type":"String"},{"name":"code","description":"The code to execute for every element","rest":false,"required":true,"type":"String"},{"name":"other variable","description":"The other variable to load the result to","rest":false,"required":true,"type":"String"}],"brackets":true},{"name":"$arrayPop","version":"1.0.0","description":"Deletes the last element of the array and returns it","unwrap":true,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"}],"brackets":true},{"name":"$arrayPush","version":"1.0.0","description":"Appends an element to an array","unwrap":true,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"},{"name":"values","description":"The values to append at the end of the array","rest":true,"required":true,"type":"String"}],"brackets":true},{"name":"$arrayPushJSON","version":"1.3.0","description":"Appends an element to an array","unwrap":true,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"},{"name":"values","description":"The values to append at the end of the array","rest":true,"required":true,"type":"Json"}],"brackets":true},{"name":"$arrayReduce","version":"1.0.0","description":"Reduces an array of elements and returns the result","unwrap":false,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"},{"name":"variable","description":"The variable to load the element value to","rest":false,"required":true,"type":"String"},{"name":"other variable","description":"The other variable to load the second element to","rest":false,"required":true,"type":"String"},{"name":"code","description":"The code to execute for every element, must return a number","rest":false,"required":true,"type":"String"},{"name":"default value","description":"The default value, defaults to 0","rest":false,"type":"Number"}],"experimental":true,"brackets":true},{"name":"$arrayReverse","version":"1.0.0","description":"Reverses an array and loads it to another variable","brackets":true,"unwrap":true,"args":[{"name":"variable","description":"The variable where the array is held","rest":false,"required":true,"type":"String"},{"name":"other variable","description":"The variable to load the result to","rest":false,"type":"String","required":true}]},{"name":"$arrayShift","version":"1.0.0","description":"Deletes the first element of the array and returns it","unwrap":true,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"}],"brackets":true},{"name":"$arraySlice","version":"1.0.0","description":"Slices an array and loads it to another variable","brackets":true,"unwrap":true,"args":[{"name":"variable","description":"The variable where the array is held","rest":false,"required":true,"type":"String"},{"name":"other variable","description":"The variable to load the result to","rest":false,"type":"String","required":true},{"name":"start","description":"The start index to slice","rest":false,"required":true,"type":"Number"},{"name":"end","description":"The end index to slice","rest":false,"type":"Number"}]},{"name":"$arraySome","version":"1.0.0","description":"Loops through every element of the array to find a match","unwrap":false,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"},{"name":"variable","description":"The variable to load the element value to","rest":false,"required":true,"type":"String"},{"name":"code","description":"The code to execute for every element","rest":false,"condition":true,"required":true,"type":"String"}],"brackets":true},{"name":"$arraySort","version":"1.2.0","description":"Sorts given array","unwrap":true,"brackets":true,"args":[{"name":"variable","description":"The variable the array is held on","type":"String","rest":false,"required":true}]},{"name":"$arraySplice","version":"1.0.0","description":"Removes x elements starting from y index","unwrap":true,"args":[{"name":"variable","description":"The variable the array is held on","rest":false,"required":true,"type":"String"},{"name":"index","description":"The start index","rest":false,"required":true,"type":"Number"},{"name":"delete count","description":"The number of items to delete","required":true,"rest":false,"type":"Number"},{"name":"elements","description":"The elements to insert in the deleted indexes","required":true,"rest":true,"type":"String"}],"brackets":true},{"name":"$arrayUnload","version":"1.0.0","description":"Unloads an array from an environment variable","args":[{"name":"variable","description":"The variable name to unload this array from","required":true,"rest":false,"type":"String"}],"unwrap":true,"brackets":true},{"name":"$arrayUnshift","version":"1.0.0","description":"Adds elements to the beginning of an array","unwrap":true,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"},{"name":"values","description":"The values to append at the start of the array","rest":true,"required":true,"type":"String"}],"brackets":true},{"name":"$arrayUnshiftJSON","version":"1.3.0","description":"Adds elements to the beginning of an array","unwrap":true,"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"},{"name":"values","description":"The values to append at the start of the array","rest":true,"required":true,"type":"Json"}],"brackets":true},{"name":"$async","version":"1.0.0","description":"Runs code asynchronously, will not return any value","unwrap":false,"brackets":true,"args":[{"name":"code","description":"The code to execute","rest":false,"type":"String","required":true}],"experimental":true},{"name":"$attachment","version":"1.0.0","brackets":true,"description":"Adds an attachment to the response","unwrap":true,"args":[{"name":"path","description":"The attachment url or path to file","rest":false,"required":true,"type":"String"},{"name":"name","description":"the name for this attachment, with the extension","rest":false,"type":"String","required":true},{"name":"as text","description":"Whether to use url param as text","rest":false,"type":"Boolean"}]},{"name":"$attachments","version":"1.0.3","description":"Retrieve an attachment url from a message with given index","brackets":false,"unwrap":true,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to pull message from","type":"Channel"},{"name":"message ID","pointer":0,"description":"The message to get its attachments","rest":false,"required":true,"type":"Message"},{"name":"index","rest":false,"description":"The index to get this attachment","type":"Number"}]},{"name":"$auditLog","version":"1.0.3","description":"Retrieves new data from an event whose context was audit log instance","brackets":true,"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","targetID","timestamp","reason","executorID","actionType","targetType","action","changes","extra"],"required":true},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}]},{"name":"$author","version":"1.0.0","description":"Adds an embed author","unwrap":true,"args":[{"name":"name","description":"Adds a name to the embed author","required":true,"type":"String","rest":false},{"name":"icon","description":"The icon url","rest":false,"type":"String"},{"name":"hyperlink","description":"The hyperlink url","rest":false,"type":"String"},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true},{"name":"$authorID","version":"1.0.0","description":"Retrieves a user's id","unwrap":false},{"name":"$autocomplete","version":"1.0.6","description":"Forces autocomplete response","unwrap":false},{"name":"$automodActionType","version":"1.2.0","description":"The action type automod used","unwrap":false},{"name":"$automodAlertSystemMessageID","version":"1.2.0","description":"The message sent by automod","unwrap":false},{"name":"$automodChannelID","version":"1.2.0","description":"The channel id for automod","unwrap":false},{"name":"$automodContent","version":"1.2.0","description":"The content automod acted upon","unwrap":false},{"name":"$automodCustomMessage","version":"1.2.0","description":"The custom message used by automod on this detection","unwrap":false},{"name":"$automodDuration","version":"1.2.0","description":"The duration in ms by this automod action","unwrap":false},{"name":"$automodMatchedContent","version":"1.2.0","description":"The matched content automod acted upon","unwrap":false},{"name":"$automodMatchedKeyword","version":"1.2.0","description":"The matched keyword the automod caught","unwrap":false},{"name":"$automodRuleID","version":"1.2.0","description":"The rule id used by automod","unwrap":false},{"name":"$automodRuleTriggerType","version":"1.2.0","description":"The rule trigger type used by automod","unwrap":false},{"name":"$awaitMessage","version":"1.0.7","description":"Awaits a message, returns message ID or nothing if no valid response","unwrap":false,"brackets":true,"args":[{"name":"channel ID","description":"The channel to await message on","rest":false,"required":true,"type":"Channel"},{"name":"variable name","description":"The variable to load the message id that was sent as response by an user, get it with $env[<variable>]","rest":false,"required":true,"type":"String"},{"name":"filter","description":"The filter to run for every message sent after this","rest":false,"required":true,"condition":true,"type":"String"},{"name":"time","rest":false,"required":true,"type":"Time","description":"The max time to wait for a message"}]},{"name":"$ban","version":"1.0.0","description":"Bans a member from the guild, returns true or false depending on whether the action was successfully performed","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to ban a member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to ban","rest":false,"type":"User","required":true},{"name":"reason","description":"The reason to ban for","rest":false,"type":"String"},{"name":"delete message seconds","description":"Delete messages from this member that were sent in this seconds time span","rest":false,"type":"Number"}]},{"name":"$base","version":"1.1.0","description":"Convert number from one base to another","brackets":true,"unwrap":true,"args":[{"name":"number","description":"The target number for conversion","type":"String","rest":false,"required":true},{"name":"to","description":"The target base","type":"Number","rest":false,"required":true},{"name":"from","description":"The source base","type":"Number","rest":false}]},{"name":"$bigintDivide","version":"1.3.0","description":"Divides multiple numbers","brackets":true,"unwrap":true,"args":[{"name":"numbers","description":"Numbers to divide","rest":true,"type":"BigInt","required":true}]},{"name":"$bigintMulti","version":"1.3.0","description":"Multiplies multiple numbers","brackets":true,"unwrap":true,"args":[{"name":"numbers","description":"Numbers to multiply","rest":true,"type":"BigInt","required":true}]},{"name":"$bigintSub","version":"1.3.0","description":"Subtracts multiple numbers","brackets":true,"unwrap":true,"args":[{"name":"numbers","description":"Numbers to sub","rest":true,"type":"BigInt","required":true}]},{"name":"$bigintSum","version":"1.3.0","description":"Adds multiple numbers","brackets":true,"unwrap":true,"args":[{"name":"numbers","description":"Numbers to add","rest":true,"type":"BigInt","required":true}]},{"name":"$bold","version":"1.3.0","brackets":true,"description":"Makes given text bold","unwrap":true,"args":[{"name":"text","description":"The text to make bold, this will attempt to escape all *","rest":false,"required":true,"type":"String"}]},{"name":"$botCount","version":"1.0.0","description":"Returns the bot count of the bot","unwrap":false},{"name":"$botDestroy","version":"1.0.0","description":"Destroy Client","unwrap":false},{"name":"$botID","version":"1.0.0","description":"Returns the client's id","unwrap":false},{"name":"$botInvite","version":"1.0.0","description":"Returns a bot's invite link","brackets":false,"unwrap":true,"args":[{"name":"perms","description":"The perms for the invite link","rest":true,"type":"String","required":true}]},{"name":"$botOwnerID","version":"1.0.0","description":"Returns the bot owner id","brackets":false,"args":[{"name":"return members","description":"Whether to return all members","rest":false,"required":false,"type":"Boolean"},{"name":"separator","description":"The separator to use for every id","rest":false,"type":"String"}],"unwrap":true},{"name":"$botToken","version":"1.0.0","description":"Returns the client token","unwrap":false},{"name":"$break","version":"1.0.3","description":"Breaks the loop","unwrap":false},{"name":"$bufferAlloc","version":"1.1.0","description":"Allocates given number of bytes in a buffer","unwrap":true,"brackets":true,"args":[{"name":"variable name","description":"The variable to load it to, accessed with $env[<name>]","rest":false,"required":true,"type":"String"},{"name":"bytes","description":"The number of bytes to alloc","type":"Number","rest":false,"required":true}]},{"name":"$bufferAllocUnsafe","version":"1.1.0","description":"Unsafely allocates given number of bytes in a buffer","unwrap":true,"brackets":true,"args":[{"name":"variable name","description":"The variable to load it to, accessed with $env[<name>]","rest":false,"required":true,"type":"String"},{"name":"bytes","description":"The number of bytes to alloc","type":"Number","rest":false,"required":true}]},{"name":"$bufferLength","version":"1.1.0","description":"Returns the length of a buffer","unwrap":true,"brackets":true,"args":[{"name":"variable name","description":"The variable the buffer is allocated on","type":"String","required":true,"rest":false}]},{"name":"$bufferReadInt32","version":"1.2.0","description":"Reads int from a buffer","unwrap":true,"brackets":true,"args":[{"name":"variable name","description":"The variable the buffer is allocated on","type":"String","required":true,"rest":false},{"name":"index","description":"The index to start reading at","required":true,"type":"Number","rest":false}]},{"name":"$bufferReadUtf8","version":"1.1.0","description":"Reads utf8 string from a buffer","unwrap":true,"brackets":true,"args":[{"name":"variable name","description":"The variable the buffer is allocated on","type":"String","required":true,"rest":false},{"name":"index","description":"The index to start reading at","required":true,"type":"Number","rest":false},{"name":"end index","description":"The index to end reading at","required":false,"type":"Number","rest":false}]},{"name":"$bufferResize","version":"1.1.0","description":"Resizes a buffer","unwrap":true,"brackets":true,"args":[{"name":"variable name","description":"The variable the buffer is allocated on","type":"String","required":true,"rest":false},{"name":"length","description":"The new length for this buffer","required":true,"type":"Number","rest":false}]},{"name":"$bufferToString","version":"1.1.0","description":"Stringifies a buffer","unwrap":true,"brackets":true,"args":[{"name":"variable name","description":"The variable the buffer is allocated on","type":"String","required":true,"rest":false},{"name":"encoding","description":"The encoding to stringify with","type":"String","rest":false}]},{"name":"$bufferWriteInt32","version":"1.2.0","description":"Writes int32 to a buffer","unwrap":true,"brackets":true,"args":[{"name":"variable name","description":"The variable the buffer is allocated on","type":"String","required":true,"rest":false},{"name":"index","description":"The index to start writing on","required":true,"type":"Number","rest":false},{"name":"int","description":"The int to write","type":"Number","rest":false,"required":true}]},{"name":"$bufferWriteUtf8","version":"1.1.0","description":"Writes utf8 string to a buffer","unwrap":true,"brackets":true,"args":[{"name":"variable name","description":"The variable the buffer is allocated on","type":"String","required":true,"rest":false},{"name":"index","description":"The index to start writing on","required":true,"type":"Number","rest":false},{"name":"text","description":"The text to write","type":"String","rest":false,"required":true}]},{"name":"$c","version":"1.0.0","description":"Marks any code inside as a comment","unwrap":false,"args":[{"name":"comment","rest":true,"required":true,"description":"The comments","type":"String"}],"brackets":true},{"name":"$callFunction","version":"1.0.0","description":"Calls a forge function made by the user","unwrap":true,"args":[{"name":"name","description":"The function name","rest":false,"required":true,"type":"String"},{"name":"args","description":"The args to call this function with","rest":true,"type":"String","required":true}],"brackets":true},{"name":"$case","version":"1.0.3","description":"Adds a switch case","brackets":true,"experimental":true,"unwrap":true,"args":[{"name":"value","description":"The match case","rest":false,"required":true,"type":"String"},{"name":"code","description":"Code to execute if it matches this case","rest":false,"required":true,"type":"String"}]},{"name":"$channelCategoryID","version":"1.0.0","description":"Returns the channel category id","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}]},{"name":"$channelChildrenCount","version":"1.0.3","description":"Returns the amount of children this category has","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The category to get its child count","rest":false,"type":"Channel","required":true}]},{"name":"$channelChildrenIDs","version":"1.0.3","description":"Returns the children ids this category has","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The category to get its children","rest":false,"type":"Channel","required":true},{"name":"separator","description":"The separator to use for every channel","rest":false,"type":"String"}]},{"name":"$channelCount","version":"1.0.0","description":"Returns the channel count of all servers","brackets":false,"unwrap":true,"args":[{"name":"categories","description":"The categories to filter by","rest":true,"required":true,"enum":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"type":"Enum"}]},{"name":"$channelCreatedAt","version":"1.0.0","description":"Returns the channel timestamp","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}]},{"name":"$channelExists","version":"1.0.0","description":"Returns whether an channel id exists","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to check","rest":false,"required":true,"type":"String"}]},{"name":"$channelGuildID","version":"1.0.0","description":"Returns the channel guild id","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}]},{"name":"$channelID","version":"1.0.0","description":"Gets the channel id of a channel name","unwrap":true,"brackets":false,"args":[{"name":"name","description":"The channel name to get it's id","required":true,"rest":true,"type":"String"}]},{"name":"$channelIDs","version":"1.3.0","unwrap":true,"brackets":false,"description":"Returns every channel id","args":[{"name":"separator","description":"The separator to use for every channel","rest":false,"type":"String"}]},{"name":"$channelName","version":"1.0.0","description":"Returns the channel name","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}]},{"name":"$channelNames","version":"1.0.0","description":"Returns the channel names of a guild","brackets":false,"args":[{"name":"guild ID","description":"The guild to return the roles of","rest":false,"type":"Guild","required":true},{"name":"separator","description":"The separator to use for each channel","rest":false,"required":true,"type":"String"}],"unwrap":true},{"name":"$channelNSFW","version":"1.0.0","description":"Returns whether the channel is nsfw","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}]},{"name":"$channelPosition","version":"1.0.3","description":"Returns the channel position","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel to get its position","rest":false,"type":"Channel","required":true}]},{"name":"$channelTags","version":"1.0.3","description":"Retrieves tags from a forum thread","unwrap":true,"args":[{"name":"channel ID","description":"The channeol to get tags of","rest":false,"type":"Channel"},{"name":"separator","description":"The separator to use for every tag","rest":false,"type":"String"}],"brackets":false},{"name":"$channelTopic","version":"1.0.0","description":"Returns the channel topic","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}]},{"name":"$channelType","version":"1.0.0","description":"Returns the channel type","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}]},{"name":"$charCodeAt","version":"1.0.6","description":"Returns the char code at given index","brackets":true,"unwrap":true,"args":[{"name":"message","description":"The string to get char code of","rest":false,"required":true,"type":"String"},{"name":"index","description":"The index to get its char code","type":"Number","rest":false,"required":true}]},{"name":"$charCount","version":"1.0.0","description":"Gets the char count of a text","brackets":true,"unwrap":true,"args":[{"name":"text","description":"The text to get its length","rest":false,"type":"String","required":true}]},{"name":"$checkCondition","version":"1.0.0","description":"Checks whether a condition is valid","brackets":true,"unwrap":false,"args":[{"name":"condition","description":"The condition to use","rest":false,"condition":true,"type":"String","required":true}]},{"name":"$checkContains","version":"1.0.0","description":"Checks whether a string contains a set of other trings","unwrap":true,"args":[{"name":"text","description":"The text to check on","required":true,"rest":false,"type":"String"},{"name":"matches","description":"The list of strings to try match","rest":true,"type":"String","required":true}],"brackets":true},{"name":"$clearChannelPerms","version":"1.0.3","description":"Deletes all permission overwrites for given id, returns bool","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to delete perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or member id to delete all perms for","rest":false,"required":true,"type":"String"}]},{"name":"$clearMessages","version":"1.0.0","description":"Clears x amount of messages from a channel, returns the number of messages deleted","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to clear messages on","required":true,"rest":false,"type":"Channel"},{"name":"amount","description":"The amount of messages to delete","rest":false,"required":true,"type":"Number"}]},{"name":"$clearUserMessages","version":"1.0.0","description":"Clears x amount of messages from a channel of given user, returns the number of messages deleted","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to clear messages on","required":true,"rest":false,"type":"Channel"},{"name":"user ID","description":"The user to delete their messages","required":true,"rest":false,"type":"User"},{"name":"amount","description":"The amount of messages to delete","rest":false,"required":true,"type":"Number"}]},{"name":"$codeBlock","version":"1.3.0","brackets":true,"description":"Creates a code block with given text","unwrap":true,"args":[{"name":"text","description":"The text to create block with, this will attempt to escape all `","rest":false,"required":true,"type":"String"},{"name":"lang","description":"The language to give to this code block","rest":false,"type":"String"}]},{"name":"$color","version":"1.0.0","description":"Adds an embed color","unwrap":true,"args":[{"name":"color","description":"The color for the embed","required":true,"enum":["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"],"type":"Color","rest":false},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true},{"name":"$commandCount","version":"1.0.0","description":"Returns the command count","brackets":false,"args":[{"name":"categories","rest":true,"required":true,"description":"The event types to filter by","type":"String"}],"unwrap":true},{"name":"$commandInfo","version":"1.0.3","description":"Retrieves command info","unwrap":true,"brackets":true,"args":[{"name":"type","description":"The command type","rest":false,"type":"String","required":true},{"name":"name","description":"The command name","rest":false,"required":true,"type":"String"},{"name":"property","description":"The property to retrieve","rest":false,"required":true,"type":"String"},{"name":"separator","description":"Separator to use in case of array","rest":false,"type":"String"}]},{"name":"$commandName","version":"1.0.3","description":"Returns the current command name","unwrap":false},{"name":"$commandNames","version":"1.0.6","description":"Return commands with given type","brackets":true,"args":[{"name":"type","description":"The command type to pull names from","rest":false,"required":true,"type":"String"},{"name":"separator","description":"The separator to use for every name","rest":false,"type":"String"}],"unwrap":true},{"name":"$continue","version":"1.0.3","description":"Skips executing bottom code of the loop","unwrap":false},{"name":"$cooldown","version":"1.0.3","description":"Adds a command cooldown","brackets":true,"unwrap":false,"args":[{"name":"id","rest":false,"description":"The id to assign the cooldown to, can be anything","type":"String","required":true},{"name":"duration","description":"The duration of the cooldown","rest":false,"type":"Time","required":true},{"name":"code","description":"The code to execute if the cooldown is active","rest":false,"type":"String"}],"examples":["$c[This is a guild based user cooldown]\n$cooldown[$commandName_$guildID_$authorID;1h;You're on cooldown.]\nHello!\n","$c[This is a user based cooldown]\n$cooldown[$commandName_$authorID;1h;You're on cooldown.]\nHello!\n"],"experimental":true},{"name":"$copyFile","version":"1.2.0","description":"Copies given path to another path","brackets":true,"unwrap":true,"args":[{"name":"path","description":"The path to make a copy of","rest":false,"required":true,"type":"String"},{"name":"destination","description":"The output path to copy to","rest":false,"required":true,"type":"String"}]},{"name":"$coroutine","version":"1.2.0","description":"Runs given code in a separate thread","experimental":true,"unwrap":false,"args":[{"name":"code","description":"The code to run","rest":false,"required":true,"type":"String"}],"brackets":true},{"name":"$cpu","version":"1.0.0","description":"Returns the cpu usage of the host (not accurate)","unwrap":false},{"name":"$cpuArch","version":"1.0.7","description":"Returns the cpu architecture","unwrap":false},{"name":"$cpuCores","version":"1.0.7","description":"Returns the amount of cpu cores","unwrap":false},{"name":"$cpuModel","version":"1.0.7","description":"Returns the cpu model","unwrap":false},{"name":"$cpuSpeed","version":"1.0.7","description":"Returns the cpu speed in MHz","unwrap":false},{"name":"$createChannel","version":"1.0.0","description":"Creates a channel in a guild, returns the channel id","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to create this channel on","rest":false,"required":true,"type":"Guild"},{"name":"channel name","description":"The name for the channel","rest":false,"required":true,"type":"String"},{"name":"channel type","description":"The type of the channel, some are not supported","rest":false,"type":"Enum","enum":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"required":true},{"name":"topic","description":"The topic for the channel","rest":false,"type":"String"},{"name":"parent ID","description":"The parent id for the channel","rest":false,"type":"String"}]},{"name":"$createForumPost","version":"1.0.0","description":"Creates a forum post, returns the post channel id","unwrap":true,"args":[{"name":"channel ID","rest":false,"required":true,"type":"Channel","description":"The channel to create a post on"},{"name":"title","description":"The post title","rest":false,"required":true,"type":"String"},{"name":"description","description":"The post description","rest":false,"type":"String"},{"name":"tags","description":"The tags for the post","rest":true,"required":true,"type":"String"}],"brackets":true},{"name":"$createInvite","version":"1.0.0","brackets":true,"description":"Creates an invite, returns the code","unwrap":true,"args":[{"name":"channel ID","description":"The channel to make the invite for","rest":false,"required":true,"type":"Channel"},{"name":"max uses","description":"The max amount of uses for this invite","rest":false,"type":"Number"},{"name":"reason","description":"The reason for creating this invite","rest":false,"type":"String"}]},{"name":"$createQueryParams","version":"1.0.7","description":"Creates query params with given fields","brackets":true,"unwrap":true,"args":[{"name":"param name; param value","description":"The param name followed by the value, (param1;value1)","rest":true,"required":true,"type":"String"}]},{"name":"$createThread","version":"1.0.3","description":"Creates a thread, returns thread channel id on success","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to create the thread at","rest":false,"type":"Channel"},{"name":"name","description":"The name for the thread","rest":false,"type":"String","required":true},{"name":"content","description":"The content to use for the starter message","rest":false,"type":"String"},{"name":"message ID","description":"The message to start thread for","rest":false,"pointer":0,"type":"Message"}]},{"name":"$cropText","version":"1.0.3","description":"Crops given text","brackets":true,"args":[{"name":"text","description":"The text to crop","rest":false,"required":true,"type":"String"},{"name":"start index","description":"The start index to start cropping","rest":false,"required":true,"type":"Number"},{"name":"end index","description":"The end index to finish cropping","rest":false,"type":"Number"}],"unwrap":true},{"name":"$customID","version":"1.0.0","description":"Retrieves the custom id of the interaction","unwrap":false},{"name":"$day","version":"1.2.0","description":"Returns current day","unwrap":false},{"name":"$debug","version":"1.0.0","description":"Returns the debug message","unwrap":false},{"name":"$decodeURI","version":"1.0.0","description":"Decodes text from a url","brackets":true,"unwrap":true,"args":[{"name":"text","description":"The text to decode","rest":false,"required":true,"type":"String"}]},{"name":"$decodeURIComponent","version":"1.0.0","description":"Decodes text from a url","brackets":true,"unwrap":true,"args":[{"name":"text","description