diff --git a/.gitignore b/.gitignore index 902e39ff1d..b209280877 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ node_modules *.sqlite \.env act.exe -PUBLISHING.md \ No newline at end of file +PUBLISHING.md +__tests__ \ No newline at end of file diff --git a/EXTENSIONS.md b/EXTENSIONS.md index 4af25dd084..d718a81911 100644 --- a/EXTENSIONS.md +++ b/EXTENSIONS.md @@ -90,6 +90,7 @@ import { execSync } from "child_process" import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs" import prompt from "./functions/prompt" import { join } from "path" +import { platform } from "os" const path = "./metadata" if (!existsSync(path)) mkdirSync(path) @@ -121,18 +122,19 @@ async function main() { const fileName = join(path, "changelogs.json") const json: Record = existsSync(fileName) ? JSON.parse(readFileSync(fileName, "utf-8")) : {} json[version] ??= [] - + const author = execSync("git config user.name").toString().trim() if (!skip) { json[version].unshift({ message: msg, timestamp: new Date(), - author: execSync("git config user.name").toString().trim() + author }) writeFileSync(fileName, JSON.stringify(json), "utf-8") } const branch = await prompt("Write the branch name to push to (defaults to dev): ") || "dev" - const escapedMsg = msg.replace(/\$/g, "\\$") + let escapedMsg = msg + if (platform() === "darwin") escapedMsg = escapedMsg.replace(/\$/g, "\\$") execSync("git branch -M " + branch + " && git add . && git commit -m \"" + escapedMsg + "\" && git push -u origin " + branch, { stdio: "inherit" diff --git a/README.md b/README.md index 587569823d..f8089f9c97 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ const client = new ForgeClient({ ], events: [ "messageCreate", - "ready" + "clientReady" ], // Events our bot will act on prefixes: [ "!", diff --git a/dist/commit.js b/dist/commit.js index 146ca4209d..9a5d0a5de5 100644 --- a/dist/commit.js +++ b/dist/commit.js @@ -7,6 +7,7 @@ const child_process_1 = require("child_process"); const fs_1 = require("fs"); const prompt_1 = __importDefault(require("./functions/prompt")); const path_1 = require("path"); +const os_1 = require("os"); const path = "./metadata"; if (!(0, fs_1.existsSync)(path)) (0, fs_1.mkdirSync)(path); @@ -29,16 +30,19 @@ async function main() { const fileName = (0, path_1.join)(path, "changelogs.json"); const json = (0, fs_1.existsSync)(fileName) ? JSON.parse((0, fs_1.readFileSync)(fileName, "utf-8")) : {}; json[version] ??= []; + const author = (0, child_process_1.execSync)("git config user.name").toString().trim(); if (!skip) { json[version].unshift({ message: msg, timestamp: new Date(), - author: (0, child_process_1.execSync)("git config user.name").toString().trim() + author }); (0, fs_1.writeFileSync)(fileName, JSON.stringify(json), "utf-8"); } const branch = await (0, prompt_1.default)("Write the branch name to push to (defaults to dev): ") || "dev"; - const escapedMsg = msg.replace(/\$/g, "\\$"); + let escapedMsg = msg; + if ((0, os_1.platform)() === "darwin") + escapedMsg = escapedMsg.replace(/\$/g, "\\$"); (0, child_process_1.execSync)("git branch -M " + branch + " && git add . && git commit -m \"" + escapedMsg + "\" && git push -u origin " + branch, { stdio: "inherit" }); diff --git a/dist/commit.js.map b/dist/commit.js.map index 971985ab16..b38769e099 100644 --- a/dist/commit.js.map +++ b/dist/commit.js.map @@ -1 +1 @@ -{"version":3,"file":"commit.js","sourceRoot":"","sources":["../src/commit.ts"],"names":[],"mappings":";;;;;AAAA,iDAAwC;AACxC,2BAAuE;AACvE,gEAAuC;AACvC,+BAA2B;AAE3B,MAAM,IAAI,GAAG,YAAY,CAAA;AACzB,IAAI,CAAC,IAAA,eAAU,EAAC,IAAI,CAAC;IAAE,IAAA,cAAS,EAAC,IAAI,CAAC,CAAA;AAEtC,MAAM,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAA;AAElD,KAAK,UAAU,IAAI;IACf,IAAI,IAAI,GAAG,KAAK,CAAA;IAEhB,MAAM,GAAG,GAAG,CAAC,MAAM,IAAA,gBAAM,EAAC,mCAAmC,CAAC,CAAC,CAAC,OAAO,CACnE,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE;QACvB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAE,CAAC,CAAC,CAAC,CAAC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AAC,OAAO,CAAC,KAAK,EAAE,CAAA;IACpB,MAAM,MAAM,GAAG,IAAA,wBAAQ,EAAC,sBAAsB,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAA;IACjE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC;YAClB,OAAO,EAAE,GAAG;YACZ,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,MAAM;SACT,CAAC,CAAA;QACF,IAAA,kBAAa,EAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;KACzD;IAED,MAAM,MAAM,GAAG,MAAM,IAAA,gBAAM,EAAC,sDAAsD,CAAC,IAAI,KAAK,CAAA;IAC5F,IAAI,UAAU,GAAG,GAAG,CAAA;IACpB,IAAI,IAAA,aAAQ,GAAE,KAAK,QAAQ;QAAE,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;IAE1E,IAAA,wBAAQ,EAAC,gBAAgB,GAAG,MAAM,GAAG,mCAAmC,GAAG,UAAU,GAAG,2BAA2B,GAAG,MAAM,EAAE;QAC1H,KAAK,EAAE,SAAS;KACnB,CAAC,CAAA;AACN,CAAC;AAED,UAAU;AACV,IAAI,EAAE,CAAA"} \ No newline at end of file diff --git a/dist/core/ForgeClient.d.ts.map b/dist/core/ForgeClient.d.ts.map index 9b4ec6d617..76ee96084a 100644 --- a/dist/core/ForgeClient.d.ts.map +++ b/dist/core/ForgeClient.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ForgeClient.d.ts","sourceRoot":"","sources":["../../src/core/ForgeClient.ts"],"names":[],"mappings":";AAAA,OAAO,EAEH,aAAa,EACb,MAAM,EACN,eAAe,EAGf,OAAO,EAEV,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,0BAA0B,EAAY,MAAM,GAAG,CAAA;AACxD,OAAO,EACH,oBAAoB,EAC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AAC,MAAM,GAAG,IAAI,CAAC;IAoBrD,gBAAgB,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,OAAO;IAIvD;;OAEG;IACH,IAAW,eAAe,kCAazB;IAEQ,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;CAM9D"} \ No newline at end of file +{"version":3,"file":"ForgeClient.d.ts","sourceRoot":"","sources":["../../src/core/ForgeClient.ts"],"names":[],"mappings":";AAAA,OAAO,EAEH,aAAa,EACb,MAAM,EACN,eAAe,EAGf,OAAO,EACV,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,0BAA0B,EAAY,MAAM,GAAG,CAAA;AACxD,OAAO,EACH,oBAAoB,EACpB,YAAY,EACZ,eAAe,EACf,oBAAoB,EAGpB,yBAAyB,EACzB,aAAa,EACb,kBAAkB,EACrB,MAAM,aAAa,CAAA;AACpB,OAAO,EACH,WAAW,EACX,WAAW,EACX,cAAc,EAGd,SAAS,EACT,aAAa,EAGb,WAAW,EACd,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAA;AAI9B,MAAM,WAAW,SAAS;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB;AAED,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IACzD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IAEnB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAE/B;;OAEG;IACH,QAAQ,CAAC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AAC,SAAS,OAAO,EACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,CAAC,GACb,CAAC,SAAS,IAAI,GAAG,cAAc,GAAG,cAAc,GAAG,IAAI;IACnD,YAAY,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,SAAS,OAAO,EACtD,IAAI,EAAE,CAAC,GAAG,MAAM,EAChB,QAAQ,CAAC,EAAE,CAAC,GACb,CAAC,SAAS,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI;IAe9D,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM;IAIlB,IAAW,OAAO,WAEjB;IAEY,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAoBrD,gBAAgB,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,OAAO;IAIvD;;OAEG;IACH,IAAW,eAAe,kCAazB;IAEQ,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;CAM9D"} \ No newline at end of file diff --git a/dist/core/ForgeClient.js.map b/dist/core/ForgeClient.js.map index d2d4ae9597..49260cb4b7 100644 --- a/dist/core/ForgeClient.js.map +++ b/dist/core/ForgeClient.js.map @@ -1 +1 @@ -{"version":3,"file":"ForgeClient.js","sourceRoot":"","sources":["../../src/core/ForgeClient.ts"],"names":[],"mappings":";;;AAAA,2CASmB;AACnB,wBAAwD;AACxD,0CAUoB;AACpB,8CAWsB;AACtB,sEAAkE;AAClE,+CAA2C;AAG3C,IAAA,8BAAiB,GAAE,CAAA;AA8EnB,MAAa,WAAY,SAAQ,mBAAY;IAEzB,QAAQ,GAAG,IAAI,+BAAoB,CAAC,IAAI,CAAC,CAAA;IACzC,mBAAmB,GAAG,IAAI,oCAAyB,CAAC,IAAI,CAAC,CAAA;IACzD,MAAM,GAAG,IAAI,uBAAY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C,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE;YACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;gBAChE,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;gBACtC,MAAM,OAAO,GAAG,GAAG,CAAC,iBAAiB,EAAE,CAAA;gBACvC,IAAI,CAAC,OAAO;oBAAE,SAAQ;gBACtB,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;aACpB;SACJ;QAED,OAAO,GAAG,CAAA;IACd,CAAC;IAEQ,KAAK,CAAC,KAA0B;QACrC,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YAC/D,MAAM,IAAI,CAAC,mBAAmB,CAAC,cAAc,EAAE,CAAA;YAC/C,OAAO,GAAG,CAAA;QACd,CAAC,CAAC,CAAA;IACN,CAAC;CACJ;AA5JD,kCA4JC"} \ No newline at end of file diff --git a/dist/core/Interpreter.d.ts b/dist/core/Interpreter.d.ts index 681538deab..a98369e17b 100644 --- a/dist/core/Interpreter.d.ts +++ b/dist/core/Interpreter.d.ts @@ -1,4 +1,4 @@ -import { Message, VoiceState, Presence, Role, GuildMember, GuildEmoji, User, GuildAuditLogsEntry, Channel, Guild, StageInstance, Invite, PartialMessage, Sticker, GuildBan, GuildScheduledEvent, Entitlement, PollAnswer, AutoModerationRule, VoiceChannelEffect, SoundboardSound, PartialSoundboardSound } from "discord.js"; +import { AutoModerationRule, Channel, Entitlement, Guild, GuildAuditLogsEntry, GuildBan, GuildEmoji, GuildMember, GuildScheduledEvent, Invite, Message, PartialMessage, PartialSoundboardSound, PollAnswer, Presence, Role, SoundboardSound, StageInstance, Sticker, Subscription, User, VoiceChannelEffect, VoiceState } from "discord.js"; import { IExtendedCompilationResult } from "."; import { Sendable, BaseCommand, Context, Container } from "../structures"; import { ForgeClient } from "./ForgeClient"; @@ -24,6 +24,7 @@ export interface IStates { sticker: Sticker; automodRule: AutoModerationRule; soundboardSound: SoundboardSound | PartialSoundboardSound; + subscription: Subscription; } export type States = { [K in keyof IStates]?: { diff --git a/dist/core/Interpreter.d.ts.map b/dist/core/Interpreter.d.ts.map index 1da7b4c7be..4cce0e7e79 100644 --- a/dist/core/Interpreter.d.ts.map +++ b/dist/core/Interpreter.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Interpreter.d.ts","sourceRoot":"","sources":["../../src/core/Interpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,WAAW,EAAE,UAAU,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAC7T,OAAO,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAU,SAAS,EAAsB,MAAM,eAAe,CAAA;AACrG,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,MAAM,WAAW,OAAO;IACpB,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,QAAQ,CAAA;IAClB,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI,EAAE,IAAI,CA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EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAEjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAErC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;CACxB;AAED,qBAAa,WAAW;WACA,GAAG,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;WACzC,GAAG,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAsDtE"} \ No newline at end of file +{"version":3,"file":"Interpreter.d.ts","sourceRoot":"","sources":["../../src/core/Interpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,OAAO,EACP,WAAW,EACX,KAAK,EACL,mBAAmB,EACnB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,MAAM,EACN,OAAO,EACP,cAAc,EACd,sBAAsB,EACtB,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,eAAe,EACf,aAAa,EACb,OAAO,EACP,YAAY,EACZ,IAAI,EACJ,kBAAkB,EAClB,UAAU,EACb,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAU,SAAS,EAAU,MAAM,eAAe,CAAA;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,WAAW,OAAO;IACpB,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,QAAQ,CAAA;IAClB,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,UAAU,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,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAEjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAErC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;CACxB;AAED,qBAAa,WAAW;WACA,GAAG,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;WACzC,GAAG,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAsDtE"} \ No newline at end of file diff --git a/dist/core/Interpreter.js.map b/dist/core/Interpreter.js.map index 1252598011..0a966eec4f 100644 --- a/dist/core/Interpreter.js.map +++ b/dist/core/Interpreter.js.map @@ -1 +1 @@ -{"version":3,"file":"Interpreter.js","sourceRoot":"","sources":["../../src/core/Interpreter.ts"],"names":[],"mappings":";;;AAEA,8CAAqG;AAwGrG,MAAa,WAAW;IAGb,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,GAAwB;QAC5C,MAAM,GAAG,GAAG,GAAG,YAAY,oBAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,oBAAO,CAAC,GAAG,CAAC,CAAA;QAC3D,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAA;QAE3B,IAAI,OAAO,CAAC,MAAM,KAAK,IAAI,EAAE;YACzB,IAAI,OAAO,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,GAAG;gBAAE,OAAO,IAAI,CAAA;YAElG,IAAI,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,IAAI,CAAC,GAA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AAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;oBAC/D,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;oBACpC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAA;iBACvF;aACJ;YAAC,OAAO,GAAY,EAAE;gBACnB,IAAI,GAAG,YAAY,KAAK;oBACpB,mBAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;qBAChB,IAAI,GAAG,YAAY,mBAAM,EAAE;oBAC5B,IAAI,GAAG,CAAC,MAAM;wBACV,OAAO,GAAG,CAAC,KAAe,CAAA;iBACjC;gBAED,OAAO,IAAI,CAAA;aACd;YAED,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;SACvC;QAED,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACpB,GAAG,CAAC,SAAS,CAAC,OAAO,GAAG,OAAO,CAAA;YAC/B,MAAM,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;SACxC;QAED,OAAO,OAAO,CAAA;IAClB,CAAC;CACJ;AAxDD,kCAwDC"} \ No newline at end of file diff --git a/dist/functions/generateMetadata.js b/dist/functions/generateMetadata.js index eb4ef0555a..75bfa7e810 100644 --- a/dist/functions/generateMetadata.js +++ b/dist/functions/generateMetadata.js @@ -61,7 +61,7 @@ async function default_1(functionsAbsolutePath, mainCategoryName, eventName, war const metaOutPath = "./metadata"; if (!(0, fs_1.existsSync)(metaOutPath)) (0, fs_1.mkdirSync)(metaOutPath); - const toSrcPath = (absPath) => (0, path_1.relative)((0, process_1.cwd)(), absPath).replace(/^dist\//, "src/"); + const toSrcPath = (absPath) => (0, path_1.relative)((0, process_1.cwd)(), absPath).replace(/\\/g, "/").replace(/^dist\//, "src/"); (0, fs_1.writeFileSync)((0, path_1.join)(metaOutPath, "paths.json"), JSON.stringify({ functions: toSrcPath(functionsAbsolutePath), ...(eventsAbsolutePath && { events: toSrcPath(eventsAbsolutePath) }) diff --git a/dist/functions/generateMetadata.js.map b/dist/functions/generateMetadata.js.map index d9f273e889..633849754b 100644 --- a/dist/functions/generateMetadata.js.map +++ b/dist/functions/generateMetadata.js.map @@ -1 +1 @@ -{"version":3,"file":"generateMetadata.js","sourceRoot":"","sources":["../../src/functions/generateMetadata.ts"],"names":[],"mappings":";;AAAA,2BAAuE;AACvE,0CAA2D;AAC3D,qCAAmC;AACnC,8CAA+E;AAC/E,iCAAoC;AACpC,2CAA2C;AAE3C,+BAAqC;AAErC,MAAM,iBAAiB,GAAG,uBAAuB,CAAA;AACjD,MAAM,qBAAqB,GAAG,oCAAoC,CAAA;AAClE,MAAM,YAAY,GAAG,yDAAyD,CAAA;AAC9E,MAAM,WAAW,GAAG,wHAAwH,CAAA;AAE5I,SAAS,eAAe,CAAC,EAA2B,EAAE,GAAW,EAAE,KAA+B;IAC9F,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,2BAA2B,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;IAE/G,IAAI,CAAC,MAAM,EAAE;QACT,IAAI,EAAE,CAAC,MAAM,EAAE;YACX,mBAAM,CAAC,KAAK,CAAC,6BAA6B,EAAE,CAAC,IAAI,UAAU,MAAM,EAAE,CAAC,CAAA;YACpE,IAAA,cAA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G,GAAG,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,KAAM,CAAC,IAAI,KAAK,CAAA;YACnF,MAAM,GAAG,GAAG,IAAA,iBAAY,EAAC,UAAU,EAAE,OAAO,CAAC,CAAA;YAE7C,IAAI,CAAC,KAAM,CAAC,IAAI,CAAC,OAAO,EAAE;gBACtB,KAAM,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAA;gBACvB,IAAA,kBAAa,EAAC,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAA;aACzF;SACJ;QAED,IAAA,kBAAa,EAAC,IAAA,WAAI,EAAC,WAAW,EAAE,aAAa,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,uBAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;KAClG;IAED,IAAI,SAAS,CAAC,MAAM,EAAE;QAClB,mBAAM,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAA;QAClD,MAAM,IAAA,yBAAa,EAAC;YAChB,SAAS,EAAE,SAAS;YACpB,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,uBAAY,CAAC,QAAQ,CAAE,CAAC,SAAS,CAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAiD,CAAC,CAAC,CAAC,CAAC,EAAE;YACzI,SAAS,EAAE,CAAC,GAAG,0BAAe,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;SACzE,CAAC,CAAA;KACL;AACL,CAAC;AA/GD,4BA+GC"} \ No newline at end of file +{"version":3,"file":"generateMetadata.js","sourceRoot":"","sources":["../../src/functions/generateMetadata.ts"],"names":[],"mappings":";;AAAA,2BAAuE;AACvE,0CAA2D;AAC3D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AC,CAAC,CAAC,CAAA;KAClG;IAED,IAAI,SAAS,CAAC,MAAM,EAAE;QAClB,mBAAM,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAA;QAClD,MAAM,IAAA,yBAAa,EAAC;YAChB,SAAS,EAAE,SAAS;YACpB,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,uBAAY,CAAC,QAAQ,CAAE,CAAC,SAAS,CAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAiD,CAAC,CAAC,CAAC,CAAC,EAAE;YACzI,SAAS,EAAE,CAAC,GAAG,0BAAe,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;SACzE,CAAC,CAAA;KACL;AACL,CAAC;AA/GD,4BA+GC"} \ No newline at end of file diff --git a/dist/functions/hex.js b/dist/functions/hex.js index 5350814fa3..a26c1d3093 100644 --- a/dist/functions/hex.js +++ b/dist/functions/hex.js @@ -7,7 +7,7 @@ function hex2int(hex) { } exports.hex2int = hex2int; function int2hex(int) { - return Number(int).toString(16); + return Number(int).toString(16).padStart(6, "0"); } exports.int2hex = int2hex; function resolveColor(value) { diff --git a/dist/functions/hex.js.map b/dist/functions/hex.js.map index 3d7d9c4276..57df9dfd1a 100644 --- a/dist/functions/hex.js.map +++ b/dist/functions/hex.js.map @@ -1 +1 @@ -{"version":3,"file":"hex.js","sourceRoot":"","sources":["../../src/functions/hex.ts"],"names":[],"mappings":";;;AAAA,2CAAmC;AAEnC,SAAgB,OAAO,CAAC,GAAW;IAC/B,OAAO,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAA;AAC7C,CAAC;AAFD,0BAEC;AAED,SAAgB,OAAO,CAAC,GAAoB;IACxC,OAAO,MAAM,CAAC,GAAG,CAAC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M;QACpB,OAAO,mBAAM,CAAC,KAA4B,CAAC,CAAA;;QAE3C,OAAO,OAAO,CAAC,KAAK,CAAC,CAAA;AAC7B,CAAC;AAVD,oCAUC"} \ No newline at end of file diff --git a/dist/functions/overwritePermissionsArrayToObject.d.ts b/dist/functions/overwritePermissionsArrayToObject.d.ts index 2682ff2622..d9e5783e6b 100644 --- a/dist/functions/overwritePermissionsArrayToObject.d.ts +++ b/dist/functions/overwritePermissionsArrayToObject.d.ts @@ -1,3 +1,3 @@ import { OverwritePermission } from "../structures"; -export default function (arr: OverwritePermission[]): Partial>; +export default function (arr: OverwritePermission[]): Partial>; //# sourceMappingURL=overwritePermissionsArrayToObject.d.ts.map \ No newline at end of file diff --git a/dist/functions/overwritePermissionsArrayToObject.d.ts.map b/dist/functions/overwritePermissionsArrayToObject.d.ts.map index e0a2cad93f..9851d9aa29 100644 --- a/dist/functions/overwritePermissionsArrayToObject.d.ts.map +++ b/dist/functions/overwritePermissionsArrayToObject.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"overwritePermissionsArrayToObject.d.ts","sourceRoot":"","sources":["../../src/functions/overwritePermissionsArrayToObject.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAEnD,MAAM,CAAC,OAAO,WAAU,GAAG,EAAE,mBAAmB,EAAE,o/BAQjD"} \ No newline at end of file +{"version":3,"file":"overwritePermissionsArrayToObject.d.ts","sourceRoot":"","sources":["../../src/functions/overwritePermissionsArrayToObject.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAEnD,MAAM,CAAC,OAAO,WAAU,GAAG,EAAE,mBAAmB,EAAE,ogCAQjD"} \ No newline at end of file diff --git a/dist/handlers/events/channelPinsUpdate.js b/dist/handlers/events/channelPinsUpdate.js index 56b97a66a3..d97a4265b3 100644 --- a/dist/handlers/events/channelPinsUpdate.js +++ b/dist/handlers/events/channelPinsUpdate.js @@ -18,6 +18,6 @@ exports.default = new DiscordEventHandler_1.DiscordEventHandler({ }); } }, - intents: ["Guilds"], + intents: ["Guilds", "DirectMessages"], }); //# sourceMappingURL=channelPinsUpdate.js.map \ No newline at end of file diff --git a/dist/handlers/events/channelPinsUpdate.js.map b/dist/handlers/events/channelPinsUpdate.js.map index 1ae13d93ea..557c480e74 100644 --- a/dist/handlers/events/channelPinsUpdate.js.map +++ b/dist/handlers/events/channelPinsUpdate.js.map @@ -1 +1 @@ -{"version":3,"file":"channelPinsUpdate.js","sourceRoot":"","sources":["../../../src/handlers/events/channelPinsUpdate.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uDAAuD;IACpE,QAAQ,EAAE,KAAK,WAAW,EAAE;QACxB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA;QAEvD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,EAAE;gBACP,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,CAAC;CACtB,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"channelPinsUpdate.js","sourceRoot":"","sources":["../../../src/handlers/events/channelPinsUpdate.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uDAAuD;IACpE,QAAQ,EAAE,KAAK,WAAW,EAAE;QACxB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA;QAEvD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,EAAE;gBACP,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,gBAAgB,CAAC;CACxC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/ready.d.ts b/dist/handlers/events/clientReady.d.ts similarity index 52% rename from dist/handlers/events/ready.d.ts rename to dist/handlers/events/clientReady.d.ts index cdab01716f..396bc3d0d9 100644 --- a/dist/handlers/events/ready.d.ts +++ b/dist/handlers/events/clientReady.d.ts @@ -1,4 +1,4 @@ import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler"; -declare const _default: DiscordEventHandler<"ready">; +declare const _default: DiscordEventHandler<"clientReady">; export default _default; -//# sourceMappingURL=ready.d.ts.map \ No newline at end of file +//# sourceMappingURL=clientReady.d.ts.map \ No newline at end of file diff --git a/dist/handlers/events/clientReady.d.ts.map b/dist/handlers/events/clientReady.d.ts.map new file mode 100644 index 0000000000..72d7a865b9 --- /dev/null +++ b/dist/handlers/events/clientReady.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"clientReady.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/clientReady.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAGnF,wBAuBE"} \ No newline at end of file diff --git a/dist/handlers/events/ready.js b/dist/handlers/events/clientReady.js similarity index 89% rename from dist/handlers/events/ready.js rename to dist/handlers/events/clientReady.js index a6f7e43597..9789a39e2c 100644 --- a/dist/handlers/events/ready.js +++ b/dist/handlers/events/clientReady.js @@ -5,11 +5,11 @@ const structures_1 = require("../../structures"); const DiscordEventHandler_1 = require("../../structures/extended/DiscordEventHandler"); const InviteTracker_1 = require("../../structures/trackers/InviteTracker"); exports.default = new DiscordEventHandler_1.DiscordEventHandler({ - name: "ready", + name: "clientReady", version: "1.0.1", description: "This event is fired when the bot becomes ready", listener: async function () { - const commands = this.commands.get("ready"); + const commands = this.commands.get("clientReady"); if (commands.length) { for (const command of commands) { core_1.Interpreter.run({ @@ -28,4 +28,4 @@ exports.default = new DiscordEventHandler_1.DiscordEventHandler({ } }, }); -//# sourceMappingURL=ready.js.map \ No newline at end of file +//# sourceMappingURL=clientReady.js.map \ No newline at end of file diff --git a/dist/handlers/events/clientReady.js.map b/dist/handlers/events/clientReady.js.map new file mode 100644 index 0000000000..f8ca36b371 --- /dev/null +++ b/dist/handlers/events/clientReady.js.map @@ -0,0 +1 @@ +{"version":3,"file":"clientReady.js","sourceRoot":"","sources":["../../../src/handlers/events/clientReady.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,iDAAyC;AACzC,uFAAmF;AACnF,2EAAuE;AAEvE,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EAAE,KAAK;QACX,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;QACjD,IAAI,QAAQ,CAAC,MAAM,EAAE;YACjB,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;gBAC5B,kBAAW,CAAC,GAAG,CAAC;oBACZ,MAAM,EAAE,IAAI;oBACZ,OAAO;oBACP,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;oBAC3B,GAAG,EAAE,EAAE;iBACV,CAAC,CAAA;aACL;SACJ;aAAM;YACH,mBAAM,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAA;SAC1D;QAED,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE;YAChC,MAAM,6BAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;SACrC;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/guildAuditLogEntryCreate.d.ts.map b/dist/handlers/events/guildAuditLogEntryCreate.d.ts.map index e3231ea946..6814010e58 100644 --- a/dist/handlers/events/guildAuditLogEntryCreate.d.ts.map +++ b/dist/handlers/events/guildAuditLogEntryCreate.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"guildAuditLogEntryCreate.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/guildAuditLogEntryCreate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAGnF,wBAwBE"} \ No newline at end of file +{"version":3,"file":"guildAuditLogEntryCreate.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/guildAuditLogEntryCreate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAwBE"} \ No newline at end of file diff --git a/dist/handlers/events/guildAuditLogEntryCreate.js.map b/dist/handlers/events/guildAuditLogEntryCreate.js.map index 5a4324e181..800413bb8c 100644 --- a/dist/handlers/events/guildAuditLogEntryCreate.js.map +++ b/dist/handlers/events/guildAuditLogEntryCreate.js.map @@ -1 +1 @@ -{"version":3,"file":"guildAuditLogEntryCreate.js","sourceRoot":"","sources":["../../../src/handlers/events/guildAuditLogEntryCreate.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAGnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6DAA6D;IAC1E,QAAQ,EAAE,KAAK,WAAW,CAAC,EAAE,KAAK;QAC9B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAA;QAE9D,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,KAAK;gBACV,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,KAAK,EAAE;wBACH,GAAG,EAAE,CAAC;wBACN,GAAG,EAAE,CAAC;qBACT;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC;CACzC,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"guildAuditLogEntryCreate.js","sourceRoot":"","sources":["../../../src/handlers/events/guildAuditLogEntryCreate.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6DAA6D;IAC1E,QAAQ,EAAE,KAAK,WAAW,CAAC,EAAE,KAAK;QAC9B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAA;QAE9D,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,KAAK;gBACV,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,KAAK,EAAE;wBACH,GAAG,EAAE,CAAC;wBACN,GAAG,EAAE,CAAC;qBACT;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC;CACzC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/guildAvailable.d.ts.map b/dist/handlers/events/guildAvailable.d.ts.map index ccfa7167fe..5ab5038ae0 100644 --- a/dist/handlers/events/guildAvailable.d.ts.map +++ b/dist/handlers/events/guildAvailable.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"guildAvailable.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/guildAvailable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAGnF,wBAuBE"} \ No newline at end of file +{"version":3,"file":"guildAvailable.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/guildAvailable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAuBE"} \ No newline at end of file diff --git a/dist/handlers/events/guildAvailable.js.map b/dist/handlers/events/guildAvailable.js.map index fd3b5780e9..0a2d665b1f 100644 --- a/dist/handlers/events/guildAvailable.js.map +++ b/dist/handlers/events/guildAvailable.js.map @@ -1 +1 @@ -{"version":3,"file":"guildAvailable.js","sourceRoot":"","sources":["../../../src/handlers/events/guildAvailable.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAGnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,QAAQ,EAAE,KAAK,WAAW,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;QAEpD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,CAAC;gBACN,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,KAAK,EAAE;wBACH,GAAG,EAAE,CAAC;qBACT;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,CAAC;CACtB,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"guildAvailable.js","sourceRoot":"","sources":["../../../src/handlers/events/guildAvailable.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,QAAQ,EAAE,KAAK,WAAW,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;QAEpD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,CAAC;gBACN,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,KAAK,EAAE;wBACH,GAAG,EAAE,CAAC;qBACT;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,CAAC;CACtB,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/guildBanAdd.d.ts.map b/dist/handlers/events/guildBanAdd.d.ts.map index ccf648e4e4..9e55f31c85 100644 --- a/dist/handlers/events/guildBanAdd.d.ts.map +++ b/dist/handlers/events/guildBanAdd.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"guildBanAdd.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/guildBanAdd.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAGnF,wBA0BE"} \ No newline at end of file +{"version":3,"file":"guildBanAdd.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/guildBanAdd.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBA0BE"} \ No newline at end of file diff --git a/dist/handlers/events/guildBanAdd.js.map b/dist/handlers/events/guildBanAdd.js.map index 25ecf084c8..4fd5ae1350 100644 --- a/dist/handlers/events/guildBanAdd.js.map +++ b/dist/handlers/events/guildBanAdd.js.map @@ -1 +1 @@ -{"version":3,"file":"guildBanAdd.js","sourceRoot":"","sources":["../../../src/handlers/events/guildBanAdd.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAGnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4DAA4D;IACzE,QAAQ,EAAE,KAAK,WAAW,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;QAEjD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE;oBACD,KAAK,EAAE,CAAC,CAAC,KAAK;oBACd,IAAI,EAAE,CAAC,CAAC,IAAI;iBACf;gBACD,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,GAAG,EAAE;wBACD,GAAG,EAAE,CAAC;qBACT;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,cAAc,EAAE,iBAAiB,CAAC;CAC/C,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"guildBanAdd.js","sourceRoot":"","sources":["../../../src/handlers/events/guildBanAdd.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4DAA4D;IACzE,QAAQ,EAAE,KAAK,WAAW,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;QAEjD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE;oBACD,KAAK,EAAE,CAAC,CAAC,KAAK;oBACd,IAAI,EAAE,CAAC,CAAC,IAAI;iBACf;gBACD,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,GAAG,EAAE;wBACD,GAAG,EAAE,CAAC;qBACT;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,cAAc,EAAE,iBAAiB,CAAC;CAC/C,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/guildBanRemove.d.ts.map b/dist/handlers/events/guildBanRemove.d.ts.map index 75e9eb1cd8..ceccfd4a39 100644 --- a/dist/handlers/events/guildBanRemove.d.ts.map +++ b/dist/handlers/events/guildBanRemove.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"guildBanRemove.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/guildBanRemove.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAGnF,wBA0BE"} \ No newline at end of file +{"version":3,"file":"guildBanRemove.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/guildBanRemove.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBA0BE"} \ No newline at end of file diff --git a/dist/handlers/events/guildBanRemove.js.map b/dist/handlers/events/guildBanRemove.js.map index c430b9a9a1..8930be3161 100644 --- a/dist/handlers/events/guildBanRemove.js.map +++ b/dist/handlers/events/guildBanRemove.js.map @@ -1 +1 @@ -{"version":3,"file":"guildBanRemove.js","sourceRoot":"","sources":["../../../src/handlers/events/guildBanRemove.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAGnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4DAA4D;IACzE,QAAQ,EAAE,KAAK,WAAW,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;QAEpD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE;oBACD,KAAK,EAAE,CAAC,CAAC,KAAK;oBACd,IAAI,EAAE,CAAC,CAAC,IAAI;iBACf;gBACD,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,GAAG,EAAE;wBACD,GAAG,EAAE,CAAC;qBACT;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,cAAc,EAAE,iBAAiB,CAAC;CAC/C,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"guildBanRemove.js","sourceRoot":"","sources":["../../../src/handlers/events/guildBanRemove.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4DAA4D;IACzE,QAAQ,EAAE,KAAK,WAAW,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;QAEpD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE;oBACD,KAAK,EAAE,CAAC,CAAC,KAAK;oBACd,IAAI,EAAE,CAAC,CAAC,IAAI;iBACf;gBACD,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,GAAG,EAAE;wBACD,GAAG,EAAE,CAAC;qBACT;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,cAAc,EAAE,iBAAiB,CAAC;CAC/C,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/guildIntegrationsUpdate.d.ts b/dist/handlers/events/guildIntegrationsUpdate.d.ts new file mode 100644 index 0000000000..23eab9b66f --- /dev/null +++ b/dist/handlers/events/guildIntegrationsUpdate.d.ts @@ -0,0 +1,4 @@ +import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler"; +declare const _default: DiscordEventHandler<"guildIntegrationsUpdate">; +export default _default; +//# sourceMappingURL=guildIntegrationsUpdate.d.ts.map \ No newline at end of file diff --git a/dist/handlers/events/guildIntegrationsUpdate.d.ts.map b/dist/handlers/events/guildIntegrationsUpdate.d.ts.map new file mode 100644 index 0000000000..908028fce6 --- /dev/null +++ b/dist/handlers/events/guildIntegrationsUpdate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"guildIntegrationsUpdate.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/guildIntegrationsUpdate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAwBE"} \ No newline at end of file diff --git a/dist/handlers/events/guildIntegrationsUpdate.js b/dist/handlers/events/guildIntegrationsUpdate.js new file mode 100644 index 0000000000..ae92ae4564 --- /dev/null +++ b/dist/handlers/events/guildIntegrationsUpdate.js @@ -0,0 +1,29 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const core_1 = require("../../core"); +const DiscordEventHandler_1 = require("../../structures/extended/DiscordEventHandler"); +exports.default = new DiscordEventHandler_1.DiscordEventHandler({ + name: "guildIntegrationsUpdate", + version: "2.5.0", + description: "This event is fired when an integration is updated on a guild", + listener: async function (g) { + const commands = this.commands.get("guildIntegrationsUpdate"); + for (const command of commands) { + core_1.Interpreter.run({ + obj: g, + command, + client: this, + states: { + guild: { + new: g, + old: g + }, + }, + data: command.compiled.code, + args: [], + }); + } + }, + intents: ["GuildIntegrations"], +}); +//# sourceMappingURL=guildIntegrationsUpdate.js.map \ No newline at end of file diff --git a/dist/handlers/events/guildIntegrationsUpdate.js.map b/dist/handlers/events/guildIntegrationsUpdate.js.map new file mode 100644 index 0000000000..bf75aad3eb --- /dev/null +++ b/dist/handlers/events/guildIntegrationsUpdate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"guildIntegrationsUpdate.js","sourceRoot":"","sources":["../../../src/handlers/events/guildIntegrationsUpdate.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+DAA+D;IAC5E,QAAQ,EAAE,KAAK,WAAW,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAA;QAE7D,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,CAAC;gBACN,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,KAAK,EAAE;wBACH,GAAG,EAAE,CAAC;wBACN,GAAG,EAAE,CAAC;qBACT;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,mBAAmB,CAAC;CACjC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/guildUnavailable.d.ts.map b/dist/handlers/events/guildUnavailable.d.ts.map index 4869951343..ce612c3ee2 100644 --- a/dist/handlers/events/guildUnavailable.d.ts.map +++ b/dist/handlers/events/guildUnavailable.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"guildUnavailable.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/guildUnavailable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAGnF,wBAuBE"} \ No newline at end of file +{"version":3,"file":"guildUnavailable.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/guildUnavailable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAuBE"} \ No newline at end of file diff --git a/dist/handlers/events/guildUnavailable.js.map b/dist/handlers/events/guildUnavailable.js.map index 985c3f5993..dcd2059f01 100644 --- a/dist/handlers/events/guildUnavailable.js.map +++ b/dist/handlers/events/guildUnavailable.js.map @@ -1 +1 @@ -{"version":3,"file":"guildUnavailable.js","sourceRoot":"","sources":["../../../src/handlers/events/guildUnavailable.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAGnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sDAAsD;IACnE,QAAQ,EAAE,KAAK,WAAW,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAA;QAEtD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,CAAC;gBACN,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,KAAK,EAAE;wBACH,GAAG,EAAE,CAAC;qBACT;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,CAAC;CACtB,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"guildUnavailable.js","sourceRoot":"","sources":["../../../src/handlers/events/guildUnavailable.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sDAAsD;IACnE,QAAQ,EAAE,KAAK,WAAW,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAA;QAEtD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,CAAC;gBACN,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,KAAK,EAAE;wBACH,GAAG,EAAE,CAAC;qBACT;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,CAAC;CACtB,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/messageDeleteBulk.js b/dist/handlers/events/messageDeleteBulk.js index c370f56587..28e50f3f3a 100644 --- a/dist/handlers/events/messageDeleteBulk.js +++ b/dist/handlers/events/messageDeleteBulk.js @@ -25,6 +25,6 @@ exports.default = new DiscordEventHandler_1.DiscordEventHandler({ }); } }, - intents: ["Guilds", "GuildMessages"], + intents: ["GuildMessages"], }); //# sourceMappingURL=messageDeleteBulk.js.map \ No newline at end of file diff --git a/dist/handlers/events/messageDeleteBulk.js.map b/dist/handlers/events/messageDeleteBulk.js.map index f9e1ce1d34..5ee9cff89f 100644 --- a/dist/handlers/events/messageDeleteBulk.js.map +++ b/dist/handlers/events/messageDeleteBulk.js.map @@ -1 +1 @@ -{"version":3,"file":"messageDeleteBulk.js","sourceRoot":"","sources":["../../../src/handlers/events/messageDeleteBulk.ts"],"names":[],"mappings":";;AAAA,2CAAuC;AACvC,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uDAAuD;IACpE,QAAQ,EAAE,KAAK,WAAW,EAAE,EAAE,OAAO;QACjC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA;QACvD,MAAM,OAAO,GAAG,EAAE,YAAY,uBAAU,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAE,EAAE,CAAE,CAAA;QAE3E,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,OAAO;gBACZ,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,IAAI,EAAE;wBACF,GAAG,EAAE,OAAO;qBACf;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,eAAe,CAAC;CACvC,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"messageDeleteBulk.js","sourceRoot":"","sources":["../../../src/handlers/events/messageDeleteBulk.ts"],"names":[],"mappings":";;AAAA,2CAAuC;AACvC,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uDAAuD;IACpE,QAAQ,EAAE,KAAK,WAAW,EAAE,EAAE,OAAO;QACjC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA;QACvD,MAAM,OAAO,GAAG,EAAE,YAAY,uBAAU,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAE,EAAE,CAAE,CAAA;QAE3E,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,OAAO;gBACZ,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,IAAI,EAAE;wBACF,GAAG,EAAE,OAAO;qBACf;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,eAAe,CAAC;CAC7B,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/messagePollVoteAdd.js b/dist/handlers/events/messagePollVoteAdd.js index 10002ea8cd..c9f5796b64 100644 --- a/dist/handlers/events/messagePollVoteAdd.js +++ b/dist/handlers/events/messagePollVoteAdd.js @@ -24,6 +24,6 @@ exports.default = new DiscordEventHandler_1.DiscordEventHandler({ }); } }, - intents: ["Guilds", "GuildMessagePolls", "DirectMessagePolls"], + intents: ["GuildMessagePolls", "DirectMessagePolls"], }); //# sourceMappingURL=messagePollVoteAdd.js.map \ No newline at end of file diff --git a/dist/handlers/events/messagePollVoteAdd.js.map b/dist/handlers/events/messagePollVoteAdd.js.map index 208f18e2dc..6b929558b3 100644 --- a/dist/handlers/events/messagePollVoteAdd.js.map +++ b/dist/handlers/events/messagePollVoteAdd.js.map @@ -1 +1 @@ -{"version":3,"file":"messagePollVoteAdd.js","sourceRoot":"","sources":["../../../src/handlers/events/messagePollVoteAdd.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,KAAK,WAAW,MAAM,EAAE,MAAM;QACpC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAE3C,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;QAExD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,IAAI;gBACT,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,IAAI,EAAE;wBACF,GAAG,EAAE,MAAM;qBACd;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,mBAAmB,EAAE,oBAAoB,CAAC;CACjE,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"messagePollVoteAdd.js","sourceRoot":"","sources":["../../../src/handlers/events/messagePollVoteAdd.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,KAAK,WAAW,MAAM,EAAE,MAAM;QACpC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAE3C,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;QAExD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,IAAI;gBACT,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,IAAI,EAAE;wBACF,GAAG,EAAE,MAAM;qBACd;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;CACvD,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/messagePollVoteRemove.js b/dist/handlers/events/messagePollVoteRemove.js index ff8d70e6f2..3942af7116 100644 --- a/dist/handlers/events/messagePollVoteRemove.js +++ b/dist/handlers/events/messagePollVoteRemove.js @@ -24,6 +24,6 @@ exports.default = new DiscordEventHandler_1.DiscordEventHandler({ }); } }, - intents: ["Guilds", "GuildMessagePolls", "DirectMessagePolls"], + intents: ["GuildMessagePolls", "DirectMessagePolls"], }); //# sourceMappingURL=messagePollVoteRemove.js.map \ No newline at end of file diff --git a/dist/handlers/events/messagePollVoteRemove.js.map b/dist/handlers/events/messagePollVoteRemove.js.map index 594b916dfd..72bb74860f 100644 --- a/dist/handlers/events/messagePollVoteRemove.js.map +++ b/dist/handlers/events/messagePollVoteRemove.js.map @@ -1 +1 @@ -{"version":3,"file":"messagePollVoteRemove.js","sourceRoot":"","sources":["../../../src/handlers/events/messagePollVoteRemove.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE,KAAK,WAAW,MAAM,EAAE,MAAM;QACpC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAE3C,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;QAE3D,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,IAAI;gBACT,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,IAAI,EAAE;wBACF,GAAG,EAAE,MAAM;qBACd;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,mBAAmB,EAAE,oBAAoB,CAAC;CACjE,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"messagePollVoteRemove.js","sourceRoot":"","sources":["../../../src/handlers/events/messagePollVoteRemove.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE,KAAK,WAAW,MAAM,EAAE,MAAM;QACpC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAE3C,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;QAE3D,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,IAAI;gBACT,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,IAAI,EAAE;wBACF,GAAG,EAAE,MAAM;qBACd;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;CACvD,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/messageUpdate.js b/dist/handlers/events/messageUpdate.js index 305b323be9..3338d9af05 100644 --- a/dist/handlers/events/messageUpdate.js +++ b/dist/handlers/events/messageUpdate.js @@ -34,6 +34,6 @@ exports.default = new DiscordEventHandler_1.DiscordEventHandler({ }); } }, - intents: ["GuildMessages"], + intents: ["GuildMessages", "DirectMessages"], }); //# sourceMappingURL=messageUpdate.js.map \ No newline at end of file diff --git a/dist/handlers/events/messageUpdate.js.map b/dist/handlers/events/messageUpdate.js.map index b0447f44d7..53b346e31e 100644 --- a/dist/handlers/events/messageUpdate.js.map +++ b/dist/handlers/events/messageUpdate.js.map @@ -1 +1 @@ -{"version":3,"file":"messageUpdate.js","sourceRoot":"","sources":["../../../src/handlers/events/messageUpdate.ts"],"names":[],"mappings":";;;;;AAAA,2CAAoC;AACpC,qCAAwC;AACxC,uFAAmF;AACnF,oEAA2C;AAE3C,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,KAAK,WAAW,GAAG,EAAE,KAAK;QAChC,IAAI,KAAK,YAAY,oBAAO,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;YACxD,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,KAAK,QAAQ,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,gBAAgB,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;gBACrH,MAAM,uBAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,KAAY,CAAC,CAAA;aACxD;SACJ;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAA;QAEnD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,KAAgB;gBACrB,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,OAAO,EAAE;wBACL,GAAG,EAAE,GAAc;wBACnB,GAAG,EAAE,KAAgB;qBACxB;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC;aACnC,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,eAAe,CAAC;CAC7B,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"messageUpdate.js","sourceRoot":"","sources":["../../../src/handlers/events/messageUpdate.ts"],"names":[],"mappings":";;;;;AAAA,2CAAoC;AACpC,qCAAwC;AACxC,uFAAmF;AACnF,oEAA2C;AAE3C,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,KAAK,WAAW,GAAG,EAAE,KAAK;QAChC,IAAI,KAAK,YAAY,oBAAO,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;YACxD,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,KAAK,QAAQ,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,gBAAgB,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;gBACrH,MAAM,uBAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,KAAY,CAAC,CAAA;aACxD;SACJ;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAA;QAEnD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,KAAgB;gBACrB,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,OAAO,EAAE;wBACL,GAAG,EAAE,GAAc;wBACnB,GAAG,EAAE,KAAgB;qBACxB;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC;aACnC,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,eAAe,EAAE,gBAAgB,CAAC;CAC/C,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/ready.d.ts.map b/dist/handlers/events/ready.d.ts.map deleted file mode 100644 index c2cbf3e521..0000000000 --- a/dist/handlers/events/ready.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ready.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/ready.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAGnF,wBAuBE"} \ No newline at end of file diff --git a/dist/handlers/events/ready.js.map b/dist/handlers/events/ready.js.map deleted file mode 100644 index 33f127b2ef..0000000000 --- a/dist/handlers/events/ready.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ready.js","sourceRoot":"","sources":["../../../src/handlers/events/ready.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,iDAAyC;AACzC,uFAAmF;AACnF,2EAAuE;AAEvE,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EAAE,KAAK;QACX,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QAC3C,IAAI,QAAQ,CAAC,MAAM,EAAE;YACjB,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;gBAC5B,kBAAW,CAAC,GAAG,CAAC;oBACZ,MAAM,EAAE,IAAI;oBACZ,OAAO;oBACP,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;oBAC3B,GAAG,EAAE,EAAE;iBACV,CAAC,CAAA;aACL;SACJ;aAAM;YACH,mBAAM,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAA;SAC1D;QAED,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE;YAChC,MAAM,6BAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;SACrC;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/stageInstanceDelete.d.ts.map b/dist/handlers/events/stageInstanceDelete.d.ts.map index d03b2be33f..2b6a1407a7 100644 --- a/dist/handlers/events/stageInstanceDelete.d.ts.map +++ b/dist/handlers/events/stageInstanceDelete.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"stageInstanceDelete.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/stageInstanceDelete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAuBE"} \ No newline at end of file +{"version":3,"file":"stageInstanceDelete.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/stageInstanceDelete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAwBE"} \ No newline at end of file diff --git a/dist/handlers/events/stageInstanceDelete.js b/dist/handlers/events/stageInstanceDelete.js index 11a9225164..67d78ba215 100644 --- a/dist/handlers/events/stageInstanceDelete.js +++ b/dist/handlers/events/stageInstanceDelete.js @@ -16,6 +16,7 @@ exports.default = new DiscordEventHandler_1.DiscordEventHandler({ states: { stage: { new: ch, + old: ch }, }, data: command.compiled.code, diff --git a/dist/handlers/events/stageInstanceDelete.js.map b/dist/handlers/events/stageInstanceDelete.js.map index eacb4986db..6b1ad1e24b 100644 --- a/dist/handlers/events/stageInstanceDelete.js.map +++ b/dist/handlers/events/stageInstanceDelete.js.map @@ -1 +1 @@ -{"version":3,"file":"stageInstanceDelete.js","sourceRoot":"","sources":["../../../src/handlers/events/stageInstanceDelete.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,KAAK,WAAW,EAAE;QACxB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;QAEzD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,EAAE;gBACP,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,KAAK,EAAE;wBACH,GAAG,EAAE,EAAE;qBACV;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,CAAC;CACtB,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"stageInstanceDelete.js","sourceRoot":"","sources":["../../../src/handlers/events/stageInstanceDelete.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,KAAK,WAAW,EAAE;QACxB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;QAEzD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,EAAE;gBACP,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,KAAK,EAAE;wBACH,GAAG,EAAE,EAAE;wBACP,GAAG,EAAE,EAAE;qBACV;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,CAAC;CACtB,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/subscriptionCreate.d.ts b/dist/handlers/events/subscriptionCreate.d.ts new file mode 100644 index 0000000000..ebd3263e73 --- /dev/null +++ b/dist/handlers/events/subscriptionCreate.d.ts @@ -0,0 +1,4 @@ +import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler"; +declare const _default: DiscordEventHandler<"subscriptionCreate">; +export default _default; +//# sourceMappingURL=subscriptionCreate.d.ts.map \ No newline at end of file diff --git a/dist/handlers/events/subscriptionCreate.d.ts.map b/dist/handlers/events/subscriptionCreate.d.ts.map new file mode 100644 index 0000000000..e8457f1d07 --- /dev/null +++ b/dist/handlers/events/subscriptionCreate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"subscriptionCreate.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/subscriptionCreate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAsBE"} \ No newline at end of file diff --git a/dist/handlers/events/subscriptionCreate.js b/dist/handlers/events/subscriptionCreate.js new file mode 100644 index 0000000000..e8cba1fbba --- /dev/null +++ b/dist/handlers/events/subscriptionCreate.js @@ -0,0 +1,27 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const core_1 = require("../../core"); +const DiscordEventHandler_1 = require("../../structures/extended/DiscordEventHandler"); +exports.default = new DiscordEventHandler_1.DiscordEventHandler({ + name: "subscriptionCreate", + version: "2.5.0", + description: "This event is fired when a subscription is created", + listener: async function (sub) { + const commands = this.commands.get("subscriptionCreate"); + for (const command of commands) { + core_1.Interpreter.run({ + obj: sub, + command, + client: this, + states: { + subscription: { + new: sub, + }, + }, + data: command.compiled.code, + args: [], + }); + } + }, +}); +//# sourceMappingURL=subscriptionCreate.js.map \ No newline at end of file diff --git a/dist/handlers/events/subscriptionCreate.js.map b/dist/handlers/events/subscriptionCreate.js.map new file mode 100644 index 0000000000..366188876d --- /dev/null +++ b/dist/handlers/events/subscriptionCreate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"subscriptionCreate.js","sourceRoot":"","sources":["../../../src/handlers/events/subscriptionCreate.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,QAAQ,EAAE,KAAK,WAAW,GAAG;QACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;QAExD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,GAAG;gBACR,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,YAAY,EAAE;wBACV,GAAG,EAAE,GAAG;qBACX;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/subscriptionDelete.d.ts b/dist/handlers/events/subscriptionDelete.d.ts new file mode 100644 index 0000000000..0d920bbc24 --- /dev/null +++ b/dist/handlers/events/subscriptionDelete.d.ts @@ -0,0 +1,4 @@ +import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler"; +declare const _default: DiscordEventHandler<"subscriptionDelete">; +export default _default; +//# sourceMappingURL=subscriptionDelete.d.ts.map \ No newline at end of file diff --git a/dist/handlers/events/subscriptionDelete.d.ts.map b/dist/handlers/events/subscriptionDelete.d.ts.map new file mode 100644 index 0000000000..49e42a32ee --- /dev/null +++ b/dist/handlers/events/subscriptionDelete.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"subscriptionDelete.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/subscriptionDelete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAuBE"} \ No newline at end of file diff --git a/dist/handlers/events/subscriptionDelete.js b/dist/handlers/events/subscriptionDelete.js new file mode 100644 index 0000000000..2e891cabc9 --- /dev/null +++ b/dist/handlers/events/subscriptionDelete.js @@ -0,0 +1,28 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const core_1 = require("../../core"); +const DiscordEventHandler_1 = require("../../structures/extended/DiscordEventHandler"); +exports.default = new DiscordEventHandler_1.DiscordEventHandler({ + name: "subscriptionDelete", + version: "2.5.0", + description: "This event is fired when a subscription is deleted", + listener: async function (sub) { + const commands = this.commands.get("subscriptionDelete"); + for (const command of commands) { + core_1.Interpreter.run({ + obj: sub, + command, + client: this, + states: { + subscription: { + new: sub, + old: sub + }, + }, + data: command.compiled.code, + args: [], + }); + } + }, +}); +//# sourceMappingURL=subscriptionDelete.js.map \ No newline at end of file diff --git a/dist/handlers/events/subscriptionDelete.js.map b/dist/handlers/events/subscriptionDelete.js.map new file mode 100644 index 0000000000..3401d351bf --- /dev/null +++ b/dist/handlers/events/subscriptionDelete.js.map @@ -0,0 +1 @@ +{"version":3,"file":"subscriptionDelete.js","sourceRoot":"","sources":["../../../src/handlers/events/subscriptionDelete.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,QAAQ,EAAE,KAAK,WAAW,GAAG;QACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;QAExD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,GAAG;gBACR,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,YAAY,EAAE;wBACV,GAAG,EAAE,GAAG;wBACR,GAAG,EAAE,GAAG;qBACX;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/subscriptionUpdate.d.ts b/dist/handlers/events/subscriptionUpdate.d.ts new file mode 100644 index 0000000000..d398bbab4e --- /dev/null +++ b/dist/handlers/events/subscriptionUpdate.d.ts @@ -0,0 +1,4 @@ +import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler"; +declare const _default: DiscordEventHandler<"subscriptionUpdate">; +export default _default; +//# sourceMappingURL=subscriptionUpdate.d.ts.map \ No newline at end of file diff --git a/dist/handlers/events/subscriptionUpdate.d.ts.map b/dist/handlers/events/subscriptionUpdate.d.ts.map new file mode 100644 index 0000000000..feba616d48 --- /dev/null +++ b/dist/handlers/events/subscriptionUpdate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"subscriptionUpdate.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/subscriptionUpdate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAuBE"} \ No newline at end of file diff --git a/dist/handlers/events/subscriptionUpdate.js b/dist/handlers/events/subscriptionUpdate.js new file mode 100644 index 0000000000..97ef81ed6b --- /dev/null +++ b/dist/handlers/events/subscriptionUpdate.js @@ -0,0 +1,28 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const core_1 = require("../../core"); +const DiscordEventHandler_1 = require("../../structures/extended/DiscordEventHandler"); +exports.default = new DiscordEventHandler_1.DiscordEventHandler({ + name: "subscriptionUpdate", + version: "2.5.0", + description: "This event is fired when a subscription is updated", + listener: async function (old, newer) { + const commands = this.commands.get("subscriptionUpdate"); + for (const command of commands) { + core_1.Interpreter.run({ + obj: newer, + command, + client: this, + states: { + subscription: { + new: newer, + old + }, + }, + data: command.compiled.code, + args: [], + }); + } + }, +}); +//# sourceMappingURL=subscriptionUpdate.js.map \ No newline at end of file diff --git a/dist/handlers/events/subscriptionUpdate.js.map b/dist/handlers/events/subscriptionUpdate.js.map new file mode 100644 index 0000000000..7bf024af73 --- /dev/null +++ b/dist/handlers/events/subscriptionUpdate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"subscriptionUpdate.js","sourceRoot":"","sources":["../../../src/handlers/events/subscriptionUpdate.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,QAAQ,EAAE,KAAK,WAAW,GAAG,EAAE,KAAK;QAChC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;QAExD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,KAAK;gBACV,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,YAAY,EAAE;wBACV,GAAG,EAAE,KAAK;wBACV,GAAG;qBACN;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/threadMemberUpdate.d.ts.map b/dist/handlers/events/threadMemberUpdate.d.ts.map index e711f77bbb..af917cf3d0 100644 --- a/dist/handlers/events/threadMemberUpdate.d.ts.map +++ b/dist/handlers/events/threadMemberUpdate.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"threadMemberUpdate.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/threadMemberUpdate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAwBE"} \ No newline at end of file +{"version":3,"file":"threadMemberUpdate.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/threadMemberUpdate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAwBE"} \ No newline at end of file diff --git a/dist/handlers/events/threadMemberUpdate.js b/dist/handlers/events/threadMemberUpdate.js index f2da0aa764..369ec5a2a7 100644 --- a/dist/handlers/events/threadMemberUpdate.js +++ b/dist/handlers/events/threadMemberUpdate.js @@ -24,6 +24,6 @@ exports.default = new DiscordEventHandler_1.DiscordEventHandler({ }); } }, - intents: ["GuildMembers"], + intents: ["Guilds", "GuildMembers"], }); //# sourceMappingURL=threadMemberUpdate.js.map \ No newline at end of file diff --git a/dist/handlers/events/threadMemberUpdate.js.map b/dist/handlers/events/threadMemberUpdate.js.map index 6516f79b92..5fb9b03bb1 100644 --- a/dist/handlers/events/threadMemberUpdate.js.map +++ b/dist/handlers/events/threadMemberUpdate.js.map @@ -1 +1 @@ -{"version":3,"file":"threadMemberUpdate.js","sourceRoot":"","sources":["../../../src/handlers/events/threadMemberUpdate.ts"],"names":[],"mappings":";;AACA,qCAAwC;AAExC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gEAAgE;IAC7E,QAAQ,EAAE,KAAK,WAAW,GAAG,EAAE,KAAK;QAChC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;QAExD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,KAAK;gBACV,OAAO;gBACP,MAAM,EAAE;oBACJ,MAAM,EAAE;wBACJ,GAAG,EAAE,GAAG,CAAC,WAAW;wBACpB,GAAG,EAAE,KAAK,CAAC,WAAW;qBACzB;iBACJ;gBACD,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,cAAc,CAAC;CAC5B,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"threadMemberUpdate.js","sourceRoot":"","sources":["../../../src/handlers/events/threadMemberUpdate.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gEAAgE;IAC7E,QAAQ,EAAE,KAAK,WAAW,GAAG,EAAE,KAAK;QAChC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;QAExD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,KAAK;gBACV,OAAO;gBACP,MAAM,EAAE;oBACJ,MAAM,EAAE;wBACJ,GAAG,EAAE,GAAG,CAAC,WAAW;wBACpB,GAAG,EAAE,KAAK,CAAC,WAAW;qBACzB;iBACJ;gBACD,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,cAAc,CAAC;CACtC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/typingStart.d.ts.map b/dist/handlers/events/typingStart.d.ts.map index fccce2ee27..8c180d0a4a 100644 --- a/dist/handlers/events/typingStart.d.ts.map +++ b/dist/handlers/events/typingStart.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"typingStart.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/typingStart.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAkBE"} \ No newline at end of file +{"version":3,"file":"typingStart.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/typingStart.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAkBE"} \ No newline at end of file diff --git a/dist/handlers/events/typingStart.js b/dist/handlers/events/typingStart.js index f32888e538..ced94ad643 100644 --- a/dist/handlers/events/typingStart.js +++ b/dist/handlers/events/typingStart.js @@ -5,6 +5,7 @@ const DiscordEventHandler_1 = require("../../structures/extended/DiscordEventHan exports.default = new DiscordEventHandler_1.DiscordEventHandler({ name: "typingStart", version: "1.4.0", + description: "This event is fired when a user starts typing", listener: async function (typing) { const commands = this.commands.get("typingStart"); for (const command of commands) { @@ -17,7 +18,6 @@ exports.default = new DiscordEventHandler_1.DiscordEventHandler({ }); } }, - description: "This event is fired when a user starts typing", intents: ["GuildMessageTyping", "DirectMessageTyping"], }); //# sourceMappingURL=typingStart.js.map \ No newline at end of file diff --git a/dist/handlers/events/typingStart.js.map b/dist/handlers/events/typingStart.js.map index 825e8d37c6..40619385b0 100644 --- a/dist/handlers/events/typingStart.js.map +++ b/dist/handlers/events/typingStart.js.map @@ -1 +1 @@ -{"version":3,"file":"typingStart.js","sourceRoot":"","sources":["../../../src/handlers/events/typingStart.ts"],"names":[],"mappings":";;AACA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,KAAK,WAAW,MAAM;QAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;QAEjD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI;gBACjC,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,WAAW,EAAE,+CAA+C;IAC5D,OAAO,EAAE,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;CACzD,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"typingStart.js","sourceRoot":"","sources":["../../../src/handlers/events/typingStart.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,KAAK,WAAW,MAAM;QAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;QAEjD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI;gBACjC,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;CACzD,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/voiceChannelEffectSend.d.ts.map b/dist/handlers/events/voiceChannelEffectSend.d.ts.map index b0f54451d8..3b7b4ad077 100644 --- a/dist/handlers/events/voiceChannelEffectSend.d.ts.map +++ b/dist/handlers/events/voiceChannelEffectSend.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"voiceChannelEffectSend.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/voiceChannelEffectSend.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAsBE"} \ No newline at end of file +{"version":3,"file":"voiceChannelEffectSend.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/voiceChannelEffectSend.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAuBE"} \ No newline at end of file diff --git a/dist/handlers/events/voiceChannelEffectSend.js b/dist/handlers/events/voiceChannelEffectSend.js index 82f6b9f8b1..4266bf7a68 100644 --- a/dist/handlers/events/voiceChannelEffectSend.js +++ b/dist/handlers/events/voiceChannelEffectSend.js @@ -23,5 +23,6 @@ exports.default = new DiscordEventHandler_1.DiscordEventHandler({ }); } }, + intents: ["GuildVoiceStates"] }); //# sourceMappingURL=voiceChannelEffectSend.js.map \ No newline at end of file diff --git a/dist/handlers/events/voiceChannelEffectSend.js.map b/dist/handlers/events/voiceChannelEffectSend.js.map index 14ec763fac..ab76d24bdc 100644 --- a/dist/handlers/events/voiceChannelEffectSend.js.map +++ b/dist/handlers/events/voiceChannelEffectSend.js.map @@ -1 +1 @@ -{"version":3,"file":"voiceChannelEffectSend.js","sourceRoot":"","sources":["../../../src/handlers/events/voiceChannelEffectSend.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oEAAoE;IACjF,QAAQ,EAAE,KAAK,WAAW,MAAM;QAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAA;QAE5D,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,MAAM;gBACX,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,WAAW,EAAE;wBACT,GAAG,EAAE,MAAM;qBACd;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"voiceChannelEffectSend.js","sourceRoot":"","sources":["../../../src/handlers/events/voiceChannelEffectSend.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oEAAoE;IACjF,QAAQ,EAAE,KAAK,WAAW,MAAM;QAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAA;QAE5D,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,MAAM;gBACX,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,WAAW,EAAE;wBACT,GAAG,EAAE,MAAM;qBACd;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;CAChC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/handlers/events/webhooksUpdate.d.ts b/dist/handlers/events/webhooksUpdate.d.ts new file mode 100644 index 0000000000..850f488cb0 --- /dev/null +++ b/dist/handlers/events/webhooksUpdate.d.ts @@ -0,0 +1,4 @@ +import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler"; +declare const _default: DiscordEventHandler<"webhooksUpdate">; +export default _default; +//# sourceMappingURL=webhooksUpdate.d.ts.map \ No newline at end of file diff --git a/dist/handlers/events/webhooksUpdate.d.ts.map b/dist/handlers/events/webhooksUpdate.d.ts.map new file mode 100644 index 0000000000..d95747840a --- /dev/null +++ b/dist/handlers/events/webhooksUpdate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webhooksUpdate.d.ts","sourceRoot":"","sources":["../../../src/handlers/events/webhooksUpdate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;;AAEnF,wBAwBE"} \ No newline at end of file diff --git a/dist/handlers/events/webhooksUpdate.js b/dist/handlers/events/webhooksUpdate.js new file mode 100644 index 0000000000..d348ef3c63 --- /dev/null +++ b/dist/handlers/events/webhooksUpdate.js @@ -0,0 +1,29 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const core_1 = require("../../core"); +const DiscordEventHandler_1 = require("../../structures/extended/DiscordEventHandler"); +exports.default = new DiscordEventHandler_1.DiscordEventHandler({ + name: "webhooksUpdate", + version: "2.5.0", + description: "This event is fired when a webhook is updated", + listener: async function (c) { + const commands = this.commands.get("webhooksUpdate"); + for (const command of commands) { + core_1.Interpreter.run({ + obj: c, + command, + client: this, + states: { + channel: { + new: c, + old: c + }, + }, + data: command.compiled.code, + args: [], + }); + } + }, + intents: ["GuildWebhooks"], +}); +//# sourceMappingURL=webhooksUpdate.js.map \ No newline at end of file diff --git a/dist/handlers/events/webhooksUpdate.js.map b/dist/handlers/events/webhooksUpdate.js.map new file mode 100644 index 0000000000..05b76ba38a --- /dev/null +++ b/dist/handlers/events/webhooksUpdate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webhooksUpdate.js","sourceRoot":"","sources":["../../../src/handlers/events/webhooksUpdate.ts"],"names":[],"mappings":";;AAAA,qCAAwC;AACxC,uFAAmF;AAEnF,kBAAe,IAAI,yCAAmB,CAAC;IACnC,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,KAAK,WAAW,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;QAEpD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,kBAAW,CAAC,GAAG,CAAC;gBACZ,GAAG,EAAE,CAAC;gBACN,OAAO;gBACP,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE;oBACJ,OAAO,EAAE;wBACL,GAAG,EAAE,CAAC;wBACN,GAAG,EAAE,CAAC;qBACT;iBACJ;gBACD,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAC3B,IAAI,EAAE,EAAE;aACX,CAAC,CAAA;SACL;IACL,CAAC;IACD,OAAO,EAAE,CAAC,eAAe,CAAC;CAC7B,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/managers/EventManager.d.ts b/dist/managers/EventManager.d.ts index 3ef9049615..4a2477a75b 100644 --- a/dist/managers/EventManager.d.ts +++ b/dist/managers/EventManager.d.ts @@ -15,6 +15,7 @@ export declare class EventManager { listener: (this: ForgeClient, ...args: unknown[]) => void | Promise; version?: string | undefined; intents?: ("Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls")[] | undefined; + deprecated?: boolean | undefined; }[]; has(handler: string, type: any): boolean; } diff --git a/dist/managers/EventManager.d.ts.map b/dist/managers/EventManager.d.ts.map index 24a874cd61..eb5cddbe71 100644 --- a/dist/managers/EventManager.d.ts.map +++ b/dist/managers/EventManager.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"EventManager.d.ts","sourceRoot":"","sources":["../../src/managers/EventManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAItD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAEhD,eAAO,MAAM,eAAe,WAAW,CAAA;AAEvC,qBAAa,YAAY;IAKF,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJ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,EAAE,GAAG;CAGxC"} \ No newline at end of file diff --git a/dist/native/array/arrayUnique.d.ts b/dist/native/array/arrayUnique.d.ts new file mode 100644 index 0000000000..79d4f859df --- /dev/null +++ b/dist/native/array/arrayUnique.d.ts @@ -0,0 +1,16 @@ +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + type: ArgType.String; + rest: false; + required: true; +}, { + name: string; + description: string; + rest: false; + required: false; + type: ArgType.String; +}], true>; +export default _default; +//# sourceMappingURL=arrayUnique.d.ts.map \ No newline at end of file diff --git a/dist/native/array/arrayUnique.d.ts.map b/dist/native/array/arrayUnique.d.ts.map new file mode 100644 index 0000000000..fec2e65559 --- /dev/null +++ b/dist/native/array/arrayUnique.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"arrayUnique.d.ts","sourceRoot":"","sources":["../../../src/native/array/arrayUnique.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBAmCE"} \ No newline at end of file diff --git a/dist/native/array/arrayUnique.js b/dist/native/array/arrayUnique.js new file mode 100644 index 0000000000..b6132b2e31 --- /dev/null +++ b/dist/native/array/arrayUnique.js @@ -0,0 +1,39 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$arrayUnique", + version: "2.5.0", + description: "Removes duplicate elements from the array", + unwrap: true, + brackets: true, + args: [ + { + name: "variable", + description: "The variable the array is held on", + type: structures_1.ArgType.String, + rest: false, + required: true, + }, + { + name: "other variable", + description: "The variable to load result to, leave empty to return output", + rest: false, + required: false, + type: structures_1.ArgType.String + }, + ], + output: structures_1.ArgType.Json, + execute(ctx, [variable, other]) { + const arr = ctx.getEnvironmentInstance(Array, variable); + if (arr !== null) { + const unique = [...new Set(arr)]; + if (other) + ctx.setEnvironmentKey(other, unique); + else + return this.successJSON(unique); + } + return this.success(); + }, +}); +//# sourceMappingURL=arrayUnique.js.map \ No newline at end of file diff --git a/dist/native/array/arrayUnique.js.map b/dist/native/array/arrayUnique.js.map new file mode 100644 index 0000000000..f2d1ece039 --- /dev/null +++ b/dist/native/array/arrayUnique.js.map @@ -0,0 +1 @@ +{"version":3,"file":"arrayUnique.js","sourceRoot":"","sources":["../../../src/native/array/arrayUnique.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,gBAAgB;YACtB,WAAW,EAAE,8DAA8D;YAC3E,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,OAAO,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC;QAC1B,MAAM,GAAG,GAAG,GAAG,CAAC,sBAAsB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;QACvD,IAAI,GAAG,KAAK,IAAI,EAAE;YACd,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;YAEhC,IAAI,KAAK;gBACL,GAAG,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;;gBAEpC,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;SACtC;QACD,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/array/getTextSplitIndex.d.ts b/dist/native/array/getTextSplitIndex.d.ts new file mode 100644 index 0000000000..8a7f61d529 --- /dev/null +++ b/dist/native/array/getTextSplitIndex.d.ts @@ -0,0 +1,10 @@ +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + required: true; + type: ArgType.String; +}], true>; +export default _default; +//# sourceMappingURL=getTextSplitIndex.d.ts.map \ No newline at end of file diff --git a/dist/native/array/getTextSplitIndex.d.ts.map b/dist/native/array/getTextSplitIndex.d.ts.map new file mode 100644 index 0000000000..03e9965841 --- /dev/null +++ b/dist/native/array/getTextSplitIndex.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getTextSplitIndex.d.ts","sourceRoot":"","sources":["../../../src/native/array/getTextSplitIndex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;AAG1D,wBAqBE"} \ No newline at end of file diff --git a/dist/native/array/getTextSplitIndex.js b/dist/native/array/getTextSplitIndex.js new file mode 100644 index 0000000000..da601fe3b2 --- /dev/null +++ b/dist/native/array/getTextSplitIndex.js @@ -0,0 +1,25 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +const textSplit_1 = require("./textSplit"); +exports.default = new structures_1.NativeFunction({ + name: "$getTextSplitIndex", + version: "2.5.0", + description: "Gets the index of a textSplit element", + aliases: ["$getSplitTextIndex"], + brackets: true, + unwrap: true, + args: [ + { + name: "element", + description: "The element to get index of", + rest: false, + required: true, + type: structures_1.ArgType.String + } + ], + execute(ctx, [element]) { + return this.success(ctx.getEnvironmentInstance(Array, textSplit_1.SplitTextName)?.indexOf(element)); + }, +}); +//# sourceMappingURL=getTextSplitIndex.js.map \ No newline at end of file diff --git a/dist/native/array/getTextSplitIndex.js.map b/dist/native/array/getTextSplitIndex.js.map new file mode 100644 index 0000000000..cb0551f812 --- /dev/null +++ b/dist/native/array/getTextSplitIndex.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getTextSplitIndex.js","sourceRoot":"","sources":["../../../src/native/array/getTextSplitIndex.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAC1D,2CAA2C;AAE3C,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,OAAO,EAAE,CAAC,oBAAoB,CAAC;IAC/B,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAE,OAAO,CAAE;QACpB,OAAO,IAAI,CAAC,OAAO,CACf,GAAG,CAAC,sBAAsB,CAAC,KAAK,EAAE,yBAAa,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CACrE,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/array/segmentTextSplit.d.ts.map b/dist/native/array/segmentTextSplit.d.ts.map index 83305db35c..5b866df11b 100644 --- a/dist/native/array/segmentTextSplit.d.ts.map +++ b/dist/native/array/segmentTextSplit.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"segmentTextSplit.d.ts","sourceRoot":"","sources":["../../../src/native/array/segmentTextSplit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;AAClE,eAAO,MAAM,aAAa,UAAoB,CAAA;AAE9C,eAAO,MAAM,SAAS,gBAAuB,CAAA;;;;;;;;AAE7C,wBAmBE"} \ No newline at end of file +{"version":3,"file":"segmentTextSplit.d.ts","sourceRoot":"","sources":["../../../src/native/array/segmentTextSplit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC1D,eAAO,MAAM,aAAa,UAAoB,CAAA;AAE9C,eAAO,MAAM,SAAS,gBAAuB,CAAA;;;;;;;;AAE7C,wBAmBE"} \ No newline at end of file diff --git a/dist/native/array/segmentTextSplit.js.map b/dist/native/array/segmentTextSplit.js.map index dc3bbeaacd..99a19ed547 100644 --- a/dist/native/array/segmentTextSplit.js.map +++ b/dist/native/array/segmentTextSplit.js.map @@ -1 +1 @@ -{"version":3,"file":"segmentTextSplit.js","sourceRoot":"","sources":["../../../src/native/array/segmentTextSplit.ts"],"names":[],"mappings":";;;AAAA,iDAAkE;AACrD,QAAA,aAAa,GAAG,QAAiB,CAAA;AAEjC,QAAA,SAAS,GAAG,IAAI,IAAI,CAAC,SAAS,EAAE,CAAA;AAE7C,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAE,IAAI,CAAE;QACjB,GAAG,CAAC,iBAAiB,CAAC,qBAAa,EAAE,CAAC,GAAG,iBAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA;QACtF,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"segmentTextSplit.js","sourceRoot":"","sources":["../../../src/native/array/segmentTextSplit.ts"],"names":[],"mappings":";;;AAAA,iDAA0D;AAC7C,QAAA,aAAa,GAAG,QAAiB,CAAA;AAEjC,QAAA,SAAS,GAAG,IAAI,IAAI,CAAC,SAAS,EAAE,CAAA;AAE7C,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAE,IAAI,CAAE;QACjB,GAAG,CAAC,iBAAiB,CAAC,qBAAa,EAAE,CAAC,GAAG,iBAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA;QACtF,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/array/splitText.d.ts.map b/dist/native/array/splitText.d.ts.map index f2eb631db0..05798bbc02 100644 --- a/dist/native/array/splitText.d.ts.map +++ b/dist/native/array/splitText.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"splitText.d.ts","sourceRoot":"","sources":["../../../src/native/array/splitText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAGlE,wBAqBE"} \ No newline at end of file +{"version":3,"file":"splitText.d.ts","sourceRoot":"","sources":["../../../src/native/array/splitText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;AAG1D,wBAqBE"} \ No newline at end of file diff --git a/dist/native/array/splitText.js.map b/dist/native/array/splitText.js.map index 169865d161..8038f39467 100644 --- a/dist/native/array/splitText.js.map +++ b/dist/native/array/splitText.js.map @@ -1 +1 @@ -{"version":3,"file":"splitText.js","sourceRoot":"","sources":["../../../src/native/array/splitText.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAClE,2CAA2C;AAE3C,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAE,KAAK,CAAE;QAClB,OAAO,IAAI,CAAC,OAAO,CACf,GAAG,CAAC,sBAAsB,CAAC,KAAK,EAAE,yBAAa,CAAC,EAAE,CAAC,KAAK,CAAC,CAC5D,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"splitText.js","sourceRoot":"","sources":["../../../src/native/array/splitText.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAC1D,2CAA2C;AAE3C,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAE,KAAK,CAAE;QAClB,OAAO,IAAI,CAAC,OAAO,CACf,GAAG,CAAC,sBAAsB,CAAC,KAAK,EAAE,yBAAa,CAAC,EAAE,CAAC,KAAK,CAAC,CAC5D,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/array/splitTextJoin.d.ts.map b/dist/native/array/splitTextJoin.d.ts.map index 1ca697af90..340a7acfc6 100644 --- a/dist/native/array/splitTextJoin.d.ts.map +++ b/dist/native/array/splitTextJoin.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"splitTextJoin.d.ts","sourceRoot":"","sources":["../../../src/native/array/splitTextJoin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAGlE,wBAqBE"} \ No newline at end of file +{"version":3,"file":"splitTextJoin.d.ts","sourceRoot":"","sources":["../../../src/native/array/splitTextJoin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;AAG1D,wBAqBE"} \ No newline at end of file diff --git a/dist/native/array/splitTextJoin.js.map b/dist/native/array/splitTextJoin.js.map index 2f6daae7aa..c20c9327eb 100644 --- a/dist/native/array/splitTextJoin.js.map +++ b/dist/native/array/splitTextJoin.js.map @@ -1 +1 @@ -{"version":3,"file":"splitTextJoin.js","sourceRoot":"","sources":["../../../src/native/array/splitTextJoin.ts"],"names":[],"mappings":";;;;;AAAA,kEAAyC;AACzC,iDAAkE;AAClE,2CAA2C;AAE3C,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,CAAC,gBAAgB,CAAC;IAC3B,MAAM,EAAE,IAAA,eAAK,GAAmB;IAChC,IAAI,EAAE;QACF;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC;QACd,MAAM,GAAG,GAAG,GAAG,CAAC,sBAAsB,CAAC,KAAK,EAAE,yBAAa,CAAC,CAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;IACvC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"splitTextJoin.js","sourceRoot":"","sources":["../../../src/native/array/splitTextJoin.ts"],"names":[],"mappings":";;;;;AAAA,kEAAyC;AACzC,iDAA0D;AAC1D,2CAA2C;AAE3C,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,CAAC,gBAAgB,CAAC;IAC3B,MAAM,EAAE,IAAA,eAAK,GAAmB;IAChC,IAAI,EAAE;QACF;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC;QACd,MAAM,GAAG,GAAG,GAAG,CAAC,sBAAsB,CAAC,KAAK,EAAE,yBAAa,CAAC,CAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;IACvC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/array/textSplit.d.ts.map b/dist/native/array/textSplit.d.ts.map index 4473774049..b27a2a9018 100644 --- a/dist/native/array/textSplit.d.ts.map +++ b/dist/native/array/textSplit.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"textSplit.d.ts","sourceRoot":"","sources":["../../../src/native/array/textSplit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;AAClE,eAAO,MAAM,aAAa,UAAoB,CAAA;;;;;;;;;;;;;;AAE9C,wBA0BE"} \ No newline at end of file +{"version":3,"file":"textSplit.d.ts","sourceRoot":"","sources":["../../../src/native/array/textSplit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC1D,eAAO,MAAM,aAAa,UAAoB,CAAA;;;;;;;;;;;;;;AAE9C,wBA0BE"} \ No newline at end of file diff --git a/dist/native/array/textSplit.js.map b/dist/native/array/textSplit.js.map index 43a14297f9..c78644396b 100644 --- a/dist/native/array/textSplit.js.map +++ b/dist/native/array/textSplit.js.map @@ -1 +1 @@ -{"version":3,"file":"textSplit.js","sourceRoot":"","sources":["../../../src/native/array/textSplit.ts"],"names":[],"mappings":";;;AAAA,iDAAkE;AACrD,QAAA,aAAa,GAAG,QAAiB,CAAA;AAE9C,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAE,IAAI,EAAE,GAAG,CAAE;QACtB,GAAG,CAAC,iBAAiB,CAAC,qBAAa,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;QACrD,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"textSplit.js","sourceRoot":"","sources":["../../../src/native/array/textSplit.ts"],"names":[],"mappings":";;;AAAA,iDAA0D;AAC7C,QAAA,aAAa,GAAG,QAAiB,CAAA;AAE9C,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAE,IAAI,EAAE,GAAG,CAAE;QACtB,GAAG,CAAC,iBAAiB,CAAC,qBAAa,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;QACrD,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/audit/setAuditLogReason.d.ts b/dist/native/audit/setAuditLogReason.d.ts new file mode 100644 index 0000000000..a67143897d --- /dev/null +++ b/dist/native/audit/setAuditLogReason.d.ts @@ -0,0 +1,10 @@ +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + required: true; + type: ArgType.String; +}], true>; +export default _default; +//# sourceMappingURL=setAuditLogReason.d.ts.map \ No newline at end of file diff --git a/dist/native/audit/setAuditLogReason.d.ts.map b/dist/native/audit/setAuditLogReason.d.ts.map new file mode 100644 index 0000000000..28440d6fbc --- /dev/null +++ b/dist/native/audit/setAuditLogReason.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"setAuditLogReason.d.ts","sourceRoot":"","sources":["../../../src/native/audit/setAuditLogReason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;AAE1D,wBAmBE"} \ No newline at end of file diff --git a/dist/native/audit/setAuditLogReason.js b/dist/native/audit/setAuditLogReason.js new file mode 100644 index 0000000000..7859d03757 --- /dev/null +++ b/dist/native/audit/setAuditLogReason.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$setAuditLogReason", + version: "2.5.0", + description: "Sets the reason for audit log entries", + brackets: true, + unwrap: true, + args: [ + { + name: "reason", + description: "The reason to set", + rest: false, + required: true, + type: structures_1.ArgType.String + }, + ], + execute(ctx, [reason]) { + ctx.reason = reason; + return this.success(); + }, +}); +//# sourceMappingURL=setAuditLogReason.js.map \ No newline at end of file diff --git a/dist/native/audit/setAuditLogReason.js.map b/dist/native/audit/setAuditLogReason.js.map new file mode 100644 index 0000000000..0b372790d7 --- /dev/null +++ b/dist/native/audit/setAuditLogReason.js.map @@ -0,0 +1 @@ +{"version":3,"file":"setAuditLogReason.js","sourceRoot":"","sources":["../../../src/native/audit/setAuditLogReason.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;QACjB,GAAG,CAAC,MAAM,GAAG,MAAM,CAAA;QACnB,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/automod/createAutomodRule.js b/dist/native/automod/createAutomodRule.js index 19c82830bd..3c9e4820b3 100644 --- a/dist/native/automod/createAutomodRule.js +++ b/dist/native/automod/createAutomodRule.js @@ -66,7 +66,7 @@ exports.default = new structures_1.NativeFunction({ exemptRoles: ctx.automodRule.exemptRoles, exemptChannels: ctx.automodRule.exemptChannels, enabled: (0, lodash_1.isBoolean)(enabled) ? enabled : true, - reason: reason || undefined + reason: reason || ctx.reason }).catch(ctx.noop); ctx.clearAutomodRuleOptions(); return this.success(rule?.id); diff --git a/dist/native/automod/createAutomodRule.js.map b/dist/native/automod/createAutomodRule.js.map index 8125913a8a..414b07aefa 100644 --- a/dist/native/automod/createAutomodRule.js.map +++ b/dist/native/automod/createAutomodRule.js.map @@ -1 +1 @@ -{"version":3,"file":"createAutomodRule.js","sourceRoot":"","sources":["../../../src/native/automod/createAutomodRule.ts"],"names":[],"mappings":";;AAAA,2CAAuF;AACvF,iDAAkE;AAClE,mCAAkC;AAElC,kBAA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AE,MAAM,CAAE;QAC/D,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,mBAAmB,CAAC,MAAM,CAAC;YAChD,IAAI,EAAE,IAAI;YACV,SAAS,EAAE,KAAK;YAChB,WAAW,EAAE,OAAO;YACpB,eAAe,EAAE,GAAG,CAAC,WAAW,CAAC,eAAe;YAChD,OAAO,EAAE,GAAG,CAAC,WAAW,CAAC,OAAO,IAAI,EAAE;YACtC,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC,WAAW;YACxC,cAAc,EAAE,GAAG,CAAC,WAAW,CAAC,cAAc;YAC9C,OAAO,EAAE,IAAA,kBAAS,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;YAC5C,MAAM,EAAE,MAAM,IAAI,SAAS;SAC9B,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAElB,GAAG,CAAC,uBAAuB,EAAE,CAAA;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;IACjC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"createAutomodRule.js","sourceRoot":"","sources":["../../../src/native/automod/createAutomodRule.ts"],"names":[],"mappings":";;AAAA,2CAAuF;AACvF,iDAAkE;AAClE,mCAAkC;AAElC,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yDAAyD;IACtE,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK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AS,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;YAC5C,MAAM,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM;SAC/B,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAElB,GAAG,CAAC,uBAAuB,EAAE,CAAA;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;IACjC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/automod/deleteAutomodRule.js b/dist/native/automod/deleteAutomodRule.js index deadca9b49..869b08197e 100644 --- a/dist/native/automod/deleteAutomodRule.js +++ b/dist/native/automod/deleteAutomodRule.js @@ -33,7 +33,7 @@ exports.default = new structures_1.NativeFunction({ output: structures_1.ArgType.Boolean, async execute(ctx, [, rule, reason]) { try { - await rule.delete(reason || undefined); + await rule.delete(reason || ctx.reason); } catch (error) { ctx.noop(error); diff --git a/dist/native/automod/deleteAutomodRule.js.map b/dist/native/automod/deleteAutomodRule.js.map index 9f093a6c51..19e13f1c9a 100644 --- a/dist/native/automod/deleteAutomodRule.js.map +++ b/dist/native/automod/deleteAutomodRule.js.map @@ -1 +1 @@ -{"version":3,"file":"deleteAutomodRule.js","sourceRoot":"","sources":["../../../src/native/automod/deleteAutomodRule.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,WAAW;YACzB,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC;QAC/B,IAAI;YACA,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,CAAA;SACzC;QAAC,OAAO,KAAK,EAAE;YACZ,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACf,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;SAC7B;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"deleteAutomodRule.js","sourceRoot":"","sources":["../../../src/native/automod/deleteAutomodRule.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,WAAW;YACzB,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC;QAC/B,IAAI;YACA,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAA;SAC1C;QAAC,OAAO,KAAK,EAAE;YACZ,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACf,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;SAC7B;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/automod/editAutomodRule.js b/dist/native/automod/editAutomodRule.js index 71883896dd..fd291e4d1c 100644 --- a/dist/native/automod/editAutomodRule.js +++ b/dist/native/automod/editAutomodRule.js @@ -63,7 +63,7 @@ exports.default = new structures_1.NativeFunction({ exemptRoles: ctx.automodRule.exemptRoles || undefined, exemptChannels: ctx.automodRule.exemptChannels || undefined, enabled: (0, lodash_1.isBoolean)(enabled) ? enabled : undefined, - reason: reason || undefined + reason: reason || ctx.reason }).catch(ctx.noop); ctx.clearAutomodRuleOptions(); return this.success(!!success); diff --git a/dist/native/automod/editAutomodRule.js.map b/dist/native/automod/editAutomodRule.js.map index edcd5238ce..78c1d59a80 100644 --- a/dist/native/automod/editAutomodRule.js.map +++ b/dist/native/automod/editAutomodRule.js.map @@ -1 +1 @@ -{"version":3,"file":"editAutomodRule.js","sourceRoot":"","sources":["../../../src/native/automod/editAutomodRule.ts"],"names":[],"mappings":";;AAAA,2CAAwD;AACxD,iDAAkE;AAClE,mCAAkC;A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,CAAC,IAAI,CAAC;YAC5B,IAAI,EAAE,IAAI,IAAI,SAAS;YACvB,SAAS,EAAE,KAAK,IAAI,SAAS;YAC7B,eAAe,EAAE,GAAG,CAAC,WAAW,CAAC,eAAe,IAAI,SAAS;YAC7D,OAAO,EAAE,GAAG,CAAC,WAAW,CAAC,OAAO,IAAI,SAAS;YAC7C,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC,WAAW,IAAI,SAAS;YACrD,cAAc,EAAE,GAAG,CAAC,WAAW,CAAC,cAAc,IAAI,SAAS;YAC3D,OAAO,EAAE,IAAA,kBAAS,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;YACjD,MAAM,EAAE,MAAM,IAAI,SAAS;SAC9B,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAElB,GAAG,CAAC,uBAAuB,EAAE,CAAA;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"editAutomodRule.js","sourceRoot":"","sources":["../../../src/native/automod/editAutomodRule.ts"],"names":[],"mappings":";;AAAA,2CAAwD;AACxD,iDAAkE;AAClE,mCAAkC;AAElC,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YAC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AAC,SAAS;YACjD,MAAM,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM;SAC/B,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAElB,GAAG,CAAC,uBAAuB,EAAE,CAAA;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/bot/botMutualGuilds.d.ts.map b/dist/native/bot/botMutualGuilds.d.ts.map index ad7e66c72c..629679d07b 100644 --- a/dist/native/bot/botMutualGuilds.d.ts.map +++ b/dist/native/bot/botMutualGuilds.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"botMutualGuilds.d.ts","sourceRoot":"","sources":["../../../src/native/bot/botMutualGuilds.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;AAElE,wBA2BE"} \ No newline at end of file +{"version":3,"file":"botMutualGuilds.d.ts","sourceRoot":"","sources":["../../../src/native/bot/botMutualGuilds.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;AAElE,wBA+BE"} \ No newline at end of file diff --git a/dist/native/bot/botMutualGuilds.js b/dist/native/bot/botMutualGuilds.js index b75e47a95e..c942b424e9 100644 --- a/dist/native/bot/botMutualGuilds.js +++ b/dist/native/bot/botMutualGuilds.js @@ -28,9 +28,12 @@ exports.default = new structures_1.NativeFunction({ ], brackets: false, output: (0, array_1.default)(), - execute(ctx, [user, sep]) { + async execute(ctx, [user, sep]) { user ??= ctx.user; - return this.success(ctx.client.guilds.cache.filter(x => x.members.cache.has(user.id)).map(guild => guild.id).join(sep || ", ")); + return this.success(ctx.client.guilds.cache + .filter(async (x) => await x.members.fetch(user).then(() => true).catch(() => false)) + .map(guild => guild.id) + .join(sep || ", ")); }, }); //# sourceMappingURL=botMutualGuilds.js.map \ No newline at end of file diff --git a/dist/native/bot/botMutualGuilds.js.map b/dist/native/bot/botMutualGuilds.js.map index d61bc4ba69..9186968e84 100644 --- a/dist/native/bot/botMutualGuilds.js.map +++ b/dist/native/bot/botMutualGuilds.js.map @@ -1 +1 @@ -{"version":3,"file":"botMutualGuilds.js","sourceRoot":"","sources":["../../../src/native/bot/botMutualGuilds.ts"],"names":[],"mappings":";;;;;AAAA,kEAAyC;AACzC,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,qBAAqB,CAAC;IAChC,WAAW,EAAE,gDAAgD;IAC7D,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAA,eAAK,GAAiB;IAC9B,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,IAAI,KAAK,GAAG,CAAC,IAAK,CAAA;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;IACnI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"botMutualGuilds.js","sourceRoot":"","sources":["../../../src/native/bot/botMutualGuilds.ts"],"names":[],"mappings":";;;;;AAAA,kEAAyC;AACzC,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,qBAAqB,CAAC;IAChC,WAAW,EAAE,gDAAgD;IAC7D,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAA,eAAK,GAAiB;IAC9B,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QAC1B,IAAI,KAAK,GAAG,CAAC,IAAK,CAAA;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK;aACtC,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;aACpF,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;aACtB,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CACrB,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/addChannelPerms.d.ts b/dist/native/channel/addChannelPerms.d.ts index debfae5e35..24a1836372 100644 --- a/dist/native/channel/addChannelPerms.d.ts +++ b/dist/native/channel/addChannelPerms.d.ts @@ -70,6 +70,7 @@ declare const _default: NativeFunction<[{ readonly SendVoiceMessages: bigint; readonly SendPolls: bigint; readonly UseExternalApps: bigint; + readonly PinMessages: bigint; }; }], true>; export default _default; diff --git a/dist/native/channel/addChannelPerms.d.ts.map b/dist/native/channel/addChannelPerms.d.ts.map index b149b8add9..03f5ef67da 100644 --- a/dist/native/channel/addChannelPerms.d.ts.map +++ b/dist/native/channel/addChannelPerms.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"addChannelPerms.d.ts","sourceRoot":"","sources":["../../../src/native/channel/addChannelPerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAwD,MAAM,YAAY,CAAA;AAC9F,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAe3C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAblC,wBAyCE"} \ No newline at end of file +{"version":3,"file":"addChannelPerms.d.ts","sourceRoot":"","sources":["../../../src/native/channel/addChannelPerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAwD,MAAM,YAAY,CAAA;AAC9F,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAe3C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAblC,wBAyCE"} \ No newline at end of file diff --git a/dist/native/channel/addChannelPerms.js b/dist/native/channel/addChannelPerms.js index c644bf9902..6fbc211e1a 100644 --- a/dist/native/channel/addChannelPerms.js +++ b/dist/native/channel/addChannelPerms.js @@ -38,7 +38,7 @@ exports.default = new structures_1.NativeFunction({ const channel = ch; const obj = {}; perms.forEach((x) => (obj[x] = true)); - return this.success(!!(await channel.permissionOverwrites.create(id, obj))); + return this.success(!!(await channel.permissionOverwrites.create(id, obj, { reason: ctx.reason }))); }, }); //# sourceMappingURL=addChannelPerms.js.map \ No newline at end of file diff --git a/dist/native/channel/addChannelPerms.js.map b/dist/native/channel/addChannelPerms.js.map index 5cdbca2f6d..45d1f3f22b 100644 --- a/dist/native/channel/addChannelPerms.js.map +++ b/dist/native/channel/addChannelPerms.js.map @@ -1 +1 @@ -{"version":3,"file":"addChannelPerms.js","sourceRoot":"","sources":["../../../src/native/channel/addChannelPerms.ts"],"names":[],"mappings":";;AAAA,2CAA8F;AAC9F,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uDAAuD;IACpE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,sBAAsB,IAAI,CAAC;SACzD;QACD;YACI,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,gCAAmB;SAC5B;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QAC9B,MAAM,OAAO,GAAG,EAAkB,CAAA;QAElC,MAAM,GAAG,GAAgD,EAAE,CAAA;QAE3D,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAA;QAE1D,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;IAC/E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"addChannelPerms.js","sourceRoot":"","sources":["../../../src/native/channel/addChannelPerms.ts"],"names":[],"mappings":";;AAAA,2CAA8F;AAC9F,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uDAAuD;IACpE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,sBAAsB,IAAI,CAAC;SACzD;QACD;YACI,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,gCAAmB;SAC5B;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QAC9B,MAAM,OAAO,GAAG,EAAkB,CAAA;QAElC,MAAM,GAAG,GAAgD,EAAE,CAAA;QAE3D,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAA;QAE1D,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAA;IACvG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/addForumTags.d.ts.map b/dist/native/channel/addForumTags.d.ts.map deleted file mode 100644 index 3995566395..0000000000 --- a/dist/native/channel/addForumTags.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"addForumTags.d.ts","sourceRoot":"","sources":["../../../src/native/channel/addForumTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4C,MAAM,YAAY,CAAA;AAClF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;eAgB3C,WAAW;;;;;;;;;;;;;;AAblC,wBAoCE"} \ No newline at end of file diff --git a/dist/native/channel/addForumTags.js.map b/dist/native/channel/addForumTags.js.map deleted file mode 100644 index 4263997dbd..0000000000 --- a/dist/native/channel/addForumTags.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"addForumTags.js","sourceRoot":"","sources":["../../../src/native/channel/addForumTags.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,cAAc,CAAC;IACzB,WAAW,EAAE,yCAAyC;IACtD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;YACvC,WAAW,EAAE,0BAA0B;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAE;QACxC,MAAM,IAAI,GAAG,OAAwB,CAAA;QAErC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/addForumTags.d.ts b/dist/native/channel/addPostTags.d.ts similarity index 92% rename from dist/native/channel/addForumTags.d.ts rename to dist/native/channel/addPostTags.d.ts index aeb04dd2e3..1cac746102 100644 --- a/dist/native/channel/addForumTags.d.ts +++ b/dist/native/channel/addPostTags.d.ts @@ -20,4 +20,4 @@ declare const _default: NativeFunction<[{ type: ArgType.String; }], true>; export default _default; -//# sourceMappingURL=addForumTags.d.ts.map \ No newline at end of file +//# sourceMappingURL=addPostTags.d.ts.map \ No newline at end of file diff --git a/dist/native/channel/addPostTags.d.ts.map b/dist/native/channel/addPostTags.d.ts.map new file mode 100644 index 0000000000..66ab6d8fad --- /dev/null +++ b/dist/native/channel/addPostTags.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"addPostTags.d.ts","sourceRoot":"","sources":["../../../src/native/channel/addPostTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;eAc3C,WAAW;;;;;;;;;;;;;;AAZlC,wBAkCE"} \ No newline at end of file diff --git a/dist/native/channel/addForumTags.js b/dist/native/channel/addPostTags.js similarity index 84% rename from dist/native/channel/addForumTags.js rename to dist/native/channel/addPostTags.js index 96ebad14f8..76cf67aef9 100644 --- a/dist/native/channel/addForumTags.js +++ b/dist/native/channel/addPostTags.js @@ -2,9 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ - name: "$addForumTags", + name: "$addPostTags", version: "1.5.0", - aliases: ["$addPostTags"], description: "Adds tags to a forum post, returns bool", unwrap: true, output: structures_1.ArgType.Boolean, @@ -34,7 +33,7 @@ exports.default = new structures_1.NativeFunction({ brackets: true, async execute(ctx, [channel, reason, tags]) { const post = channel; - return this.success(!!(await post.setAppliedTags(tags, reason || undefined).catch(ctx.noop))); + return this.success(!!(await post.setAppliedTags([...post.appliedTags, ...tags], reason || ctx.reason).catch(ctx.noop))); }, }); -//# sourceMappingURL=addForumTags.js.map \ No newline at end of file +//# sourceMappingURL=addPostTags.js.map \ No newline at end of file diff --git a/dist/native/channel/addPostTags.js.map b/dist/native/channel/addPostTags.js.map new file mode 100644 index 0000000000..d579b1d793 --- /dev/null +++ b/dist/native/channel/addPostTags.js.map @@ -0,0 +1 @@ +{"version":3,"file":"addPostTags.js","sourceRoot":"","sources":["../../../src/native/channel/addPostTags.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;YACvC,WAAW,EAAE,0BAA0B;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAE;QACxC,MAAM,IAAI,GAAG,OAAwB,CAAA;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC5H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/archiveThread.d.ts.map b/dist/native/channel/archiveThread.d.ts.map index c5e37ae67e..35e6817e52 100644 --- a/dist/native/channel/archiveThread.d.ts.map +++ b/dist/native/channel/archiveThread.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"archiveThread.d.ts","sourceRoot":"","sources":["../../../src/native/channel/archiveThread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAkB3C,WAAW;;;;;;;AAflC,wBAgCE"} \ No newline at end of file +{"version":3,"file":"archiveThread.d.ts","sourceRoot":"","sources":["../../../src/native/channel/archiveThread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAiB3C,WAAW;;;;;;;AAflC,wBAgCE"} \ No newline at end of file diff --git a/dist/native/channel/archiveThread.js b/dist/native/channel/archiveThread.js index e23efcb1b2..11461b87ad 100644 --- a/dist/native/channel/archiveThread.js +++ b/dist/native/channel/archiveThread.js @@ -27,9 +27,9 @@ exports.default = new structures_1.NativeFunction({ ], async execute(ctx, [channel, reason]) { const thread = (channel ?? ctx.channel); - if (!thread.isThread()) + if (!thread?.isThread()) return this.success(false); - const success = await thread.setArchived(true, reason || undefined).catch(ctx.noop); + const success = await thread.setArchived(true, reason || ctx.reason).catch(ctx.noop); return this.success(!!success); }, }); diff --git a/dist/native/channel/archiveThread.js.map b/dist/native/channel/archiveThread.js.map index 42dccbb0fc..324087e7cf 100644 --- a/dist/native/channel/archiveThread.js.map +++ b/dist/native/channel/archiveThread.js.map @@ -1 +1 @@ -{"version":3,"file":"archiveThread.js","sourceRoot":"","sources":["../../../src/native/channel/archiveThread.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,cAAc,CAAC;IACzB,WAAW,EAAE,iCAAiC;IAC9C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,MAAM,MAAM,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAkB,CAAA;QACxD,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAElD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEnF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"archiveThread.js","sourceRoot":"","sources":["../../../src/native/channel/archiveThread.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,cAAc,CAAC;IACzB,WAAW,EAAE,iCAAiC;IAC9C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,MAAM,MAAM,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAkB,CAAA;QACxD,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAEnD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEpF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/channelHasAnyPerms.d.ts b/dist/native/channel/channelHasAnyPerms.d.ts index fcafe4c67a..648bc6ecdb 100644 --- a/dist/native/channel/channelHasAnyPerms.d.ts +++ b/dist/native/channel/channelHasAnyPerms.d.ts @@ -70,6 +70,7 @@ declare const _default: NativeFunction<[{ readonly SendVoiceMessages: bigint; readonly SendPolls: bigint; readonly UseExternalApps: bigint; + readonly PinMessages: bigint; }; }], true>; export default _default; diff --git a/dist/native/channel/channelHasAnyPerms.d.ts.map b/dist/native/channel/channelHasAnyPerms.d.ts.map index 008bfea0e4..b4edd89fb7 100644 --- a/dist/native/channel/channelHasAnyPerms.d.ts.map +++ b/dist/native/channel/channelHasAnyPerms.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"channelHasAnyPerms.d.ts","sourceRoot":"","sources":["../../../src/native/channel/channelHasAnyPerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA8C,MAAM,YAAY,CAAA;AACpF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;eAmBnC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhBlC,wBAsCE"} \ No newline at end of file +{"version":3,"file":"channelHasAnyPerms.d.ts","sourceRoot":"","sources":["../../../src/native/channel/channelHasAnyPerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA8C,MAAM,YAAY,CAAA;AACpF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;eAmBnC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhBlC,wBAsCE"} \ No newline at end of file diff --git a/dist/native/channel/channelHasPerms.d.ts b/dist/native/channel/channelHasPerms.d.ts index d57f7a15c6..c304363bfb 100644 --- a/dist/native/channel/channelHasPerms.d.ts +++ b/dist/native/channel/channelHasPerms.d.ts @@ -70,6 +70,7 @@ declare const _default: NativeFunction<[{ readonly SendVoiceMessages: bigint; readonly SendPolls: bigint; readonly UseExternalApps: bigint; + readonly PinMessages: bigint; }; }], true>; export default _default; diff --git a/dist/native/channel/channelHasPerms.d.ts.map b/dist/native/channel/channelHasPerms.d.ts.map index 64c9c7da3c..25ba2298ae 100644 --- a/dist/native/channel/channelHasPerms.d.ts.map +++ b/dist/native/channel/channelHasPerms.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"channelHasPerms.d.ts","sourceRoot":"","sources":["../../../src/native/channel/channelHasPerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA8C,MAAM,YAAY,CAAA;AACpF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;eAoBnC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjBlC,wBAuCE"} \ No newline at end of file +{"version":3,"file":"channelHasPerms.d.ts","sourceRoot":"","sources":["../../../src/native/channel/channelHasPerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA8C,MAAM,YAAY,CAAA;AACpF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;eAoBnC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjBlC,wBAuCE"} \ No newline at end of file diff --git a/dist/native/channel/channelPinnedMessages.d.ts.map b/dist/native/channel/channelPinnedMessages.d.ts.map index cd15dce09c..af110c0f57 100644 --- a/dist/native/channel/channelPinnedMessages.d.ts.map +++ b/dist/native/channel/channelPinnedMessages.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"channelPinnedMessages.d.ts","sourceRoot":"","sources":["../../../src/native/channel/channelPinnedMessages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoB,MAAM,YAAY,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAoB3C,WAAW;;;;;;;AAjBlC,wBA+BE"} \ No newline at end of file +{"version":3,"file":"channelPinnedMessages.d.ts","sourceRoot":"","sources":["../../../src/native/channel/channelPinnedMessages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoB,MAAM,YAAY,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAmB3C,WAAW;;;;;;;AAhBlC,wBA+BE"} \ No newline at end of file diff --git a/dist/native/channel/channelPinnedMessages.js b/dist/native/channel/channelPinnedMessages.js index 3b5c4865dd..ebf8c030d2 100644 --- a/dist/native/channel/channelPinnedMessages.js +++ b/dist/native/channel/channelPinnedMessages.js @@ -14,7 +14,6 @@ exports.default = new structures_1.NativeFunction({ "$pinnedMessages" ], unwrap: true, - output: (0, array_1.default)(), args: [ { name: "channel ID", @@ -26,15 +25,16 @@ exports.default = new structures_1.NativeFunction({ }, { name: "separator", - description: "The separator to use for every message id", + description: "The separator to use for each message id", rest: false, type: structures_1.ArgType.String }, ], + output: (0, array_1.default)(), async execute(ctx, [channel, sep]) { channel ??= ctx.channel; - const messages = await channel?.messages.fetchPinned().catch(ctx.noop); - return this.success(messages ? messages.map(msg => msg.id).join(sep ?? ", ") : null); + const pins = await channel?.messages.fetchPins().catch(ctx.noop); + return this.success(pins ? pins.items.map(pin => pin.message.id).join(sep ?? ", ") : null); }, }); //# sourceMappingURL=channelPinnedMessages.js.map \ No newline at end of file diff --git a/dist/native/channel/channelPinnedMessages.js.map b/dist/native/channel/channelPinnedMessages.js.map index 59975e8ffe..4b7ab2c866 100644 --- a/dist/native/channel/channelPinnedMessages.js.map +++ b/dist/native/channel/channelPinnedMessages.js.map @@ -1 +1 @@ -{"version":3,"file":"channelPinnedMessages.js","sourceRoot":"","sources":["../../../src/native/channel/channelPinnedMessages.ts"],"names":[],"mappings":";;;;;AACA,iDAAkE;AAClE,kEAAyC;AAEzC,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0CAA0C;IACvD,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE;QACL,iBAAiB;KACpB;IACD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAA,eAAK,GAAmB;IAChC,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,UAAU,IAAI,CAAC;SAC7C;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,2CAA2C;YACxD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,OAAO,EAAE,GAAG,CAAE;QAC/B,OAAO,KAAK,GAAG,CAAC,OAAQ,CAAA;QACxB,MAAM,QAAQ,GAAG,MAAO,OAA4B,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAC5F,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IACxF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"channelPinnedMessages.js","sourceRoot":"","sources":["../../../src/native/channel/channelPinnedMessages.ts"],"names":[],"mappings":";;;;;AACA,iDAAkE;AAClE,kEAAyC;AAEzC,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0CAA0C;IACvD,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE;QACL,iBAAiB;KACpB;IACD,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,UAAU,IAAI,CAAC;SAC7C;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAA,eAAK,GAAmB;IAChC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,OAAO,EAAE,GAAG,CAAE;QAC/B,OAAO,KAAK,GAAG,CAAC,OAAQ,CAAA;QACxB,MAAM,IAAI,GAAG,MAAO,OAA4B,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACtF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IAC9F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/channelThreadIDs.d.ts b/dist/native/channel/channelThreadIDs.d.ts new file mode 100644 index 0000000000..a9f759c45c --- /dev/null +++ b/dist/native/channel/channelThreadIDs.d.ts @@ -0,0 +1,17 @@ +import { BaseChannel } from "discord.js"; +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + type: ArgType.Channel; + required: true; + check: (i: BaseChannel) => boolean; +}, { + name: string; + description: string; + rest: false; + type: ArgType.String; +}], true>; +export default _default; +//# sourceMappingURL=channelThreadIDs.d.ts.map \ No newline at end of file diff --git a/dist/native/channel/channelThreadIDs.d.ts.map b/dist/native/channel/channelThreadIDs.d.ts.map new file mode 100644 index 0000000000..0255d9b15f --- /dev/null +++ b/dist/native/channel/channelThreadIDs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"channelThreadIDs.d.ts","sourceRoot":"","sources":["../../../src/native/channel/channelThreadIDs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;AAblC,wBA2BE"} \ No newline at end of file diff --git a/dist/native/channel/channelThreadIDs.js b/dist/native/channel/channelThreadIDs.js new file mode 100644 index 0000000000..234fcfb888 --- /dev/null +++ b/dist/native/channel/channelThreadIDs.js @@ -0,0 +1,36 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +const array_1 = __importDefault(require("../../functions/array")); +exports.default = new structures_1.NativeFunction({ + name: "$channelThreadIDs", + version: "2.5.0", + description: "Returns the thread ids of a channel", + brackets: false, + unwrap: true, + args: [ + { + name: "channel ID", + description: "The channel to get its threads", + rest: false, + type: structures_1.ArgType.Channel, + required: true, + check: (i) => "threads" in i + }, + { + name: "separator", + description: "The separator to use for every thread", + rest: false, + type: structures_1.ArgType.String, + }, + ], + output: (0, array_1.default)(), + execute(ctx, [channel, sep]) { + const chan = channel ?? ctx.channel; + return this.success("threads" in chan ? chan.threads.cache.map((x) => x.id).join(sep ?? ", ") : null); + }, +}); +//# sourceMappingURL=channelThreadIDs.js.map \ No newline at end of file diff --git a/dist/native/channel/channelThreadIDs.js.map b/dist/native/channel/channelThreadIDs.js.map new file mode 100644 index 0000000000..7c5e3a56bf --- /dev/null +++ b/dist/native/channel/channelThreadIDs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"channelThreadIDs.js","sourceRoot":"","sources":["../../../src/native/channel/channelThreadIDs.ts"],"names":[],"mappings":";;;;;AACA,iDAAkE;AAClE,kEAAyC;AAEzC,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,SAAS,IAAI,CAAC;SAC5C;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAA,eAAK,GAAmB;IAChC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC;QACvB,MAAM,IAAI,GAAG,OAAO,IAAI,GAAG,CAAC,OAAO,CAAA;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAE,IAAI,CAAC,OAAyB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IAC5H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/clearChannelPerms.js b/dist/native/channel/clearChannelPerms.js index 68d15834e9..cc9f083a2c 100644 --- a/dist/native/channel/clearChannelPerms.js +++ b/dist/native/channel/clearChannelPerms.js @@ -28,10 +28,10 @@ exports.default = new structures_1.NativeFunction({ async execute(ctx, [ch, id]) { const perms = ch.permissionOverwrites; if (id) { - return this.success(!!(await perms.delete(id).catch(ctx.noop))); + return this.success(!!(await perms.delete(id, ctx.reason).catch(ctx.noop))); } else { - return this.success(!!(await perms.set([]).catch(ctx.noop))); + return this.success(!!(await perms.set([], ctx.reason).catch(ctx.noop))); } }, }); diff --git a/dist/native/channel/clearChannelPerms.js.map b/dist/native/channel/clearChannelPerms.js.map index b960b8581c..ca1c9bca6d 100644 --- a/dist/native/channel/clearChannelPerms.js.map +++ b/dist/native/channel/clearChannelPerms.js.map @@ -1 +1 @@ -{"version":3,"file":"clearChannelPerms.js","sourceRoot":"","sources":["../../../src/native/channel/clearChannelPerms.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,8EAA8E;IAC3F,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,sBAAsB,IAAI,CAAC;SACzD;QACD;YACI,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;QACvB,MAAM,KAAK,GAAI,EAAmB,CAAC,oBAAoB,CAAA;QAEvD,IAAI,EAAE,EAAE;YACJ,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;SAClE;aAAM;YACH,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;SAC/D;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"clearChannelPerms.js","sourceRoot":"","sources":["../../../src/native/channel/clearChannelPerms.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,8EAA8E;IAC3F,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,sBAAsB,IAAI,CAAC;SACzD;QACD;YACI,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;QACvB,MAAM,KAAK,GAAI,EAAmB,CAAC,oBAAoB,CAAA;QAEvD,IAAI,EAAE,EAAE;YACJ,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;SAC9E;aAAM;YACH,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;SAC3E;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/cloneChannel.d.ts.map b/dist/native/channel/cloneChannel.d.ts.map index 737db0b33f..a097762dd3 100644 --- a/dist/native/channel/cloneChannel.d.ts.map +++ b/dist/native/channel/cloneChannel.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"cloneChannel.d.ts","sourceRoot":"","sources":["../../../src/native/channel/cloneChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgB,MAAM,YAAY,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;eAiBnC,WAAW;;;;;;;AAdlC,wBA0BE"} \ No newline at end of file +{"version":3,"file":"cloneChannel.d.ts","sourceRoot":"","sources":["../../../src/native/channel/cloneChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgB,MAAM,YAAY,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;eAgBnC,WAAW;;;;;;;AAdlC,wBA+BE"} \ No newline at end of file diff --git a/dist/native/channel/cloneChannel.js b/dist/native/channel/cloneChannel.js index c6a1b4571b..8d9a652e26 100644 --- a/dist/native/channel/cloneChannel.js +++ b/dist/native/channel/cloneChannel.js @@ -25,7 +25,11 @@ exports.default = new structures_1.NativeFunction({ } ], async execute(ctx, [raw, name]) { - return this.success((await raw.clone({ name: name || raw.name }).catch(ctx.noop))?.id); + const channel = await raw.clone({ + name: name || raw.name, + reason: ctx.reason + }).catch(ctx.noop); + return this.success(channel?.id); }, }); //# sourceMappingURL=cloneChannel.js.map \ No newline at end of file diff --git a/dist/native/channel/cloneChannel.js.map b/dist/native/channel/cloneChannel.js.map index ef1ef9dcdc..56e5281fe0 100644 --- a/dist/native/channel/cloneChannel.js.map +++ b/dist/native/channel/cloneChannel.js.map @@ -1 +1 @@ -{"version":3,"file":"cloneChannel.js","sourceRoot":"","sources":["../../../src/native/channel/cloneChannel.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAG1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0BAA0B;IACvC,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,OAAO,IAAI,CAAC;SAC1C;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK;SACd;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,GAAG,EAAE,IAAI,CAAE;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAqB,GAAI,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,IAAK,GAAoB,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAC5H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"cloneChannel.js","sourceRoot":"","sources":["../../../src/native/channel/cloneChannel.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0BAA0B;IACvC,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,OAAO,IAAI,CAAC;SAC1C;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK;SACd;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,GAAG,EAAE,IAAI,CAAE;QAC5B,MAAM,OAAO,GAAG,MAAqB,GAAI,CAAC,KAAK,CAAC;YAC5C,IAAI,EAAE,IAAI,IAAK,GAAoB,CAAC,IAAI;YACxC,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAElB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;IACpC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/cloneChannelPerms.js b/dist/native/channel/cloneChannelPerms.js index 34ce6b9aaa..4259dc3ed3 100644 --- a/dist/native/channel/cloneChannelPerms.js +++ b/dist/native/channel/cloneChannelPerms.js @@ -27,7 +27,7 @@ exports.default = new structures_1.NativeFunction({ ], output: structures_1.ArgType.Boolean, async execute(ctx, [chan1, chan2]) { - return this.success(!!(await chan2.permissionOverwrites.set(chan1.permissionOverwrites.cache).catch(ctx.noop))); + return this.success(!!(await chan2.permissionOverwrites.set(chan1.permissionOverwrites.cache, ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=cloneChannelPerms.js.map \ No newline at end of file diff --git a/dist/native/channel/cloneChannelPerms.js.map b/dist/native/channel/cloneChannelPerms.js.map index 936ef17451..de75d08ee0 100644 --- a/dist/native/channel/cloneChannelPerms.js.map +++ b/dist/native/channel/cloneChannelPerms.js.map @@ -1 +1 @@ -{"version":3,"file":"cloneChannelPerms.js","sourceRoot":"","sources":["../../../src/native/channel/cloneChannelPerms.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mEAAmE;IAChF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,sBAAsB,IAAI,CAAC;SACzD;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,sBAAsB,IAAI,CAAC;SACzD;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,KAAK,EAAE,KAAK,CAAE;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,KAAsB,CAAC,oBAAoB,CAAC,GAAG,CAAE,KAAsB,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACvJ,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"cloneChannelPerms.js","sourceRoot":"","sources":["../../../src/native/channel/cloneChannelPerms.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mEAAmE;IAChF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,sBAAsB,IAAI,CAAC;SACzD;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,sBAAsB,IAAI,CAAC;SACzD;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,KAAK,EAAE,KAAK,CAAE;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,KAAsB,CAAC,oBAAoB,CAAC,GAAG,CAAE,KAAsB,CAAC,oBAAoB,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnK,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/createChannel.d.ts b/dist/native/channel/createChannel.d.ts index 88b157406b..ac8ee77c96 100644 --- a/dist/native/channel/createChannel.d.ts +++ b/dist/native/channel/createChannel.d.ts @@ -1,4 +1,4 @@ -import { ChannelType } from "discord.js"; +import { BaseChannel, ChannelType } from "discord.js"; import { ArgType, NativeFunction } from "../../structures"; declare const _default: NativeFunction<[{ name: string; @@ -28,7 +28,9 @@ declare const _default: NativeFunction<[{ name: string; description: string; rest: false; - type: ArgType.String; + type: ArgType.Channel; + check: (i: BaseChannel) => boolean; + pointer: number; }], true>; export default _default; //# sourceMappingURL=createChannel.d.ts.map \ No newline at end of file diff --git a/dist/native/channel/createChannel.d.ts.map b/dist/native/channel/createChannel.d.ts.map index 0f58cc0848..0546caa03d 100644 --- a/dist/native/channel/createChannel.d.ts.map +++ b/dist/native/channel/createChannel.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"createChannel.d.ts","sourceRoot":"","sources":["../../../src/native/channel/createChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA6B,MAAM,YAAY,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGlE,wBAsDE"} \ No newline at end of file +{"version":3,"file":"createChannel.d.ts","sourceRoot":"","sources":["../../../src/native/channel/createChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmB,WAAW,EAA6B,MAAM,YAAY,CAAA;AACjG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA2C3C,WAAW;;;AAzClC,wBAyDE"} \ No newline at end of file diff --git a/dist/native/channel/createChannel.js b/dist/native/channel/createChannel.js index 6ed053d07d..cff2868aee 100644 --- a/dist/native/channel/createChannel.js +++ b/dist/native/channel/createChannel.js @@ -18,14 +18,14 @@ exports.default = new structures_1.NativeFunction({ type: structures_1.ArgType.Guild, }, { - name: "channel name", + name: "name", description: "The name for the channel", rest: false, required: true, type: structures_1.ArgType.String, }, { - name: "channel type", + name: "type", description: "The type of the channel, some are not supported", rest: false, type: structures_1.ArgType.Enum, @@ -42,16 +42,19 @@ exports.default = new structures_1.NativeFunction({ name: "parent ID", description: "The parent id for the channel", rest: false, - type: structures_1.ArgType.String, + type: structures_1.ArgType.Channel, + check: (i) => i.type === discord_js_1.ChannelType.GuildCategory, + pointer: 0, }, ], - async execute(ctx, [guild, name, type, topic, parentId]) { + async execute(ctx, [guild, name, type, topic, parent]) { const ch = await guild.channels .create({ type: type, name, topic: topic || undefined, - parent: parentId, + parent: parent, + reason: ctx.reason }) .catch(ctx.noop); return this.success(ch ? ch.id : undefined); diff --git a/dist/native/channel/createChannel.js.map b/dist/native/channel/createChannel.js.map index f4ca0e8b58..b9fe30c21e 100644 --- a/dist/native/channel/createChannel.js.map +++ b/dist/native/channel/createChannel.js.map @@ -1 +1 @@ -{"version":3,"file":"createChannel.js","sourceRoot":"","sources":["../../../src/native/channel/createChannel.ts"],"names":[],"mappings":";;AAAA,2CAAmE;AACnE,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sDAAsD;IACnE,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,iDAAiD;YAC9D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,wBAAW;YACjB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC;QACnD,MAAM,EAAE,GAAG,MAAM,KAAK,CAAC,QAAQ;aAC1B,MAAM,CAAC;YACJ,IAAI,EAAE,IAAyC;YAC/C,IAAI;YACJ,KAAK,EAAE,KAAK,IAAI,SAAS;YACzB,MAAM,EAAE,QAAQ;SACnB,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAC/C,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"createChannel.js","sourceRoot":"","sources":["../../../src/native/channel/createChannel.ts"],"names":[],"m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1B,MAAM,CAAC;YACJ,IAAI,EAAE,IAAyC;YAC/C,IAAI;YACJ,KAAK,EAAE,KAAK,IAAI,SAAS;YACzB,MAAM,EAAE,MAAyB;YACjC,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAC/C,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/createForumPost.d.ts.map b/dist/native/channel/createForumPost.d.ts.map index 282f3042ec..c7ec769fbd 100644 --- a/dist/native/channel/createForumPost.d.ts.map +++ b/dist/native/channel/createForumPost.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"createForumPost.d.ts","sourceRoot":"","sources":["../../../src/native/channel/createForumPost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA6B,MAAM,YAAY,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;eAe3C,WAAW;;;;;;;;;;;;;;;;;;;AAZlC,wBAqDE"} \ No newline at end of file +{"version":3,"file":"createForumPost.d.ts","sourceRoot":"","sources":["../../../src/native/channel/createForumPost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqB,MAAM,YAAY,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;eAc3C,WAAW;;;;;;;;;;;;;;;;;;;AAZlC,wBAsDE"} \ No newline at end of file diff --git a/dist/native/channel/createForumPost.js b/dist/native/channel/createForumPost.js index 72f1663c46..bf9499e57c 100644 --- a/dist/native/channel/createForumPost.js +++ b/dist/native/channel/createForumPost.js @@ -1,6 +1,5 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const discord_js_1 = require("discord.js"); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$createForumPost", @@ -14,7 +13,7 @@ exports.default = new structures_1.NativeFunction({ rest: false, required: true, type: structures_1.ArgType.Channel, - check: (i) => i.type === discord_js_1.ChannelType.GuildForum, + check: (i) => i.isThreadOnly(), description: "The channel to create a post on", }, { @@ -46,6 +45,7 @@ exports.default = new structures_1.NativeFunction({ appliedTags: tags, name: title, message: ctx.container.getOptions(), + reason: ctx.reason }) .catch(ctx.noop); ctx.container.reset(); diff --git a/dist/native/channel/createForumPost.js.map b/dist/native/channel/createForumPost.js.map index ca97eb48d8..fb913e1bc6 100644 --- a/dist/native/channel/createForumPost.js.map +++ b/dist/native/channel/createForumPost.js.map @@ -1 +1 @@ -{"version":3,"file":"createForumPost.js","sourceRoot":"","sources":["../../../src/native/channel/createForumPost.ts"],"names":[],"mappings":";;AAAA,2CAAmE;AACnE,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mDAAmD;IAChE,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,UAAU;YAC5D,WAAW,EAAE,iCAAiC;SACjD;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC;QAC3C,MAAM,KAAK,GAAG,OAAuB,CAAA;QAErC,GAAG,CAAC,SAAS,CAAC,OAAO,GAAG,IAAI,IAAI,SAAS,CAAA;QAEzC,MAAM,CAAC,GAAG,MAAM,KAAK,CAAC,OAAO;aACxB,MAAM,CAAC;YACJ,WAAW,EAAE,IAAI;YACjB,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,GAAG,CAAC,SAAS,CAAC,UAAU,EAAE;SACtC,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEpB,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,CAAA;QAErB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAC7C,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"createForumPost.js","sourceRoot":"","sources":["../../../src/native/channel/createForumPost.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mDAAmD;IAChE,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;YAC3C,WAAW,EAAE,iCAAiC;SACjD;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC;QAC3C,MAAM,KAAK,GAAG,OAA4B,CAAA;QAE1C,GAAG,CAAC,SAAS,CAAC,OAAO,GAAG,IAAI,IAAI,SAAS,CAAA;QAEzC,MAAM,CAAC,GAAG,MAAM,KAAK,CAAC,OAAO;aACxB,MAAM,CAAC;YACJ,WAAW,EAAE,IAAI;YACjB,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,GAAG,CAAC,SAAS,CAAC,UAAU,EAAE;YACnC,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEpB,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,CAAA;QAErB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAC7C,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/createForumTag.d.ts b/dist/native/channel/createForumTag.d.ts new file mode 100644 index 0000000000..3aff659d71 --- /dev/null +++ b/dist/native/channel/createForumTag.d.ts @@ -0,0 +1,28 @@ +import { BaseChannel } from "discord.js"; +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + required: true; + type: ArgType.Channel; + check: (i: BaseChannel) => boolean; +}, { + name: string; + description: string; + rest: false; + required: true; + type: ArgType.String; +}, { + name: string; + description: string; + rest: false; + type: ArgType.String; +}, { + name: string; + description: string; + rest: false; + type: ArgType.Boolean; +}], true>; +export default _default; +//# sourceMappingURL=createForumTag.d.ts.map \ No newline at end of file diff --git a/dist/native/channel/createForumTag.d.ts.map b/dist/native/channel/createForumTag.d.ts.map new file mode 100644 index 0000000000..b6bbb267ce --- /dev/null +++ b/dist/native/channel/createForumTag.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createForumTag.d.ts","sourceRoot":"","sources":["../../../src/native/channel/createForumTag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAwC,MAAM,YAAY,CAAA;AAC9E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;;;;;;;;;;;;AAblC,wBA+CE"} \ No newline at end of file diff --git a/dist/native/channel/createForumTag.js b/dist/native/channel/createForumTag.js new file mode 100644 index 0000000000..4d59d2d24c --- /dev/null +++ b/dist/native/channel/createForumTag.js @@ -0,0 +1,51 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +const parseSingleEmoji_1 = require("../../functions/parseSingleEmoji"); +exports.default = new structures_1.NativeFunction({ + name: "$createForumTag", + version: "2.5.0", + description: "Creates a forum tag, returns tag id", + unwrap: true, + brackets: true, + args: [ + { + name: "channel ID", + description: "The forum to create tag on", + rest: false, + required: true, + type: structures_1.ArgType.Channel, + check: (i) => i.isThreadOnly(), + }, + { + name: "name", + description: "The name for the tag", + rest: false, + required: true, + type: structures_1.ArgType.String, + }, + { + name: "emoji", + description: "The emoji for the tag", + rest: false, + type: structures_1.ArgType.String, + }, + { + name: "moderated", + description: "Whether the tag can only be applied by mods", + rest: false, + type: structures_1.ArgType.Boolean, + } + ], + output: structures_1.ArgType.ForumTag, + async execute(ctx, [channel, name, emoji, mod]) { + const forum = channel; + const tag = { + name, + emoji: (0, parseSingleEmoji_1.parseSingleEmoji)(ctx, emoji), + moderated: mod || undefined + }; + return this.success((await forum.setAvailableTags([...forum.availableTags, tag]).catch(ctx.noop))?.availableTags.at(-1)?.id); + }, +}); +//# sourceMappingURL=createForumTag.js.map \ No newline at end of file diff --git a/dist/native/channel/createForumTag.js.map b/dist/native/channel/createForumTag.js.map new file mode 100644 index 0000000000..ab35b0708a --- /dev/null +++ b/dist/native/channel/createForumTag.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createForumTag.js","sourceRoot":"","sources":["../../../src/native/channel/createForumTag.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAClE,uEAAmE;AAEnE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,QAAQ;IACxB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,CAAE;QAC5C,MAAM,KAAK,GAAG,OAA4B,CAAA;QAE1C,MAAM,GAAG,GAAG;YACR,IAAI;YACJ,KAAK,EAAE,IAAA,mCAAgB,EAAC,GAAG,EAAE,KAAK,CAAC;YACnC,SAAS,EAAE,GAAG,IAAI,SAAS;SACT,CAAA;QAEtB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,gBAAgB,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAChI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/createInvite.d.ts.map b/dist/native/channel/createInvite.d.ts.map index 2331d3e7f1..34bac12bbe 100644 --- a/dist/native/channel/createInvite.d.ts.map +++ b/dist/native/channel/createInvite.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"createInvite.d.ts","sourceRoot":"","sources":["../../../src/native/channel/createInvite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAkB3C,WAAW;;;;;;;;;;;;;;;;;AAdlC,wBA+CE"} \ No newline at end of file +{"version":3,"file":"createInvite.d.ts","sourceRoot":"","sources":["../../../src/native/channel/createInvite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;;;;;;;;;;;AAdlC,wBA+CE"} \ No newline at end of file diff --git a/dist/native/channel/createInvite.js b/dist/native/channel/createInvite.js index 26d739b34f..2b51e2f206 100644 --- a/dist/native/channel/createInvite.js +++ b/dist/native/channel/createInvite.js @@ -1,12 +1,11 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../../structures"); -const lodash_1 = require("lodash"); exports.default = new structures_1.NativeFunction({ name: "$createInvite", version: "1.1.0", brackets: true, - description: "Creates an invite, returns the code", + description: "Creates an invite, returns the invite code", unwrap: true, output: structures_1.ArgType.Invite, args: [ @@ -41,9 +40,9 @@ exports.default = new structures_1.NativeFunction({ const channel = (ch ?? ctx.channel); const invite = await channel .createInvite({ - reason: reason || undefined, + reason: reason || ctx.reason, maxUses: maxUses || undefined, - maxAge: (0, lodash_1.isNumber)(maxAge) ? maxAge : undefined, + maxAge: typeof (maxAge) === "number" ? maxAge : undefined, unique: true }) .catch(ctx.noop); diff --git a/dist/native/channel/createInvite.js.map b/dist/native/channel/createInvite.js.map index a40842d5a0..cf07a59673 100644 --- a/dist/native/channel/createInvite.js.map +++ b/dist/native/channel/createInvite.js.map @@ -1 +1 @@ -{"version":3,"file":"createInvite.js","sourceRoot":"","sources":["../../../src/native/channel/createInvite.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,mCAAiC;AAEjC,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,qCAAqC;IAClD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,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QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YACxD,MAAM,EAAE,IAAI;SACf,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACzD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/createThread.d.ts.map b/dist/native/channel/createThread.d.ts.map index 3ec11f3361..3ccedc7188 100644 --- a/dist/native/channel/createThread.d.ts.map +++ b/dist/native/channel/createThread.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"createThread.d.ts","sourceRoot":"","sources":["../../../src/native/channel/createThread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4B,MAAM,YAAY,CAAA;AAClE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;eAgB3C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;AAblC,wBAwDE"} \ No newline at end of file +{"version":3,"file":"createThread.d.ts","sourceRoot":"","sources":["../../../src/native/channel/createThread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4B,MAAM,YAAY,CAAA;AAClE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;eAe3C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;AAblC,wBAwDE"} \ No newline at end of file diff --git a/dist/native/channel/createThread.js b/dist/native/channel/createThread.js index 9f24dc8423..e3e8b30516 100644 --- a/dist/native/channel/createThread.js +++ b/dist/native/channel/createThread.js @@ -39,7 +39,7 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason for creating thread", + description: "The reason for creating thread", rest: false, type: structures_1.ArgType.String } @@ -49,8 +49,8 @@ exports.default = new structures_1.NativeFunction({ const success = await ch.threads .create({ name, - startMessage: m ?? undefined, - reason: reason ?? undefined, + startMessage: m || undefined, + reason: reason || ctx.reason, type: priv ? discord_js_1.ChannelType.PrivateThread : discord_js_1.ChannelType.PublicThread }) .catch(ctx.noop); diff --git a/dist/native/channel/createThread.js.map b/dist/native/channel/createThread.js.map index e47949316e..5c54e058e7 100644 --- a/dist/native/channel/createThread.js.map +++ b/dist/native/channel/createThread.js.map @@ -1 +1 @@ -{"version":3,"file":"createThread.js","sourceRoot":"","sources":["../../../src/native/channel/createThread.ts"],"names":[],"mappings":";;AAAA,2CAAkE;AAClE,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wDAAwD;IACrE,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,SAAS,IAAI,CAAC;SAC5C;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC;QAC/C,MAAM,EAAE,GAAG,OAAsB,CAAA;QAEjC,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,OAAO;aAC3B,MAAM,CAAC;YACJ,IAAI;YACJ,YAAY,EAAE,CAAC,IAAI,SAAS;YAC5B,MAAM,EAAE,MAAM,IAAI,SAAS;YAC3B,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,wBAAW,CAAC,aAAa,CAAC,CAAC,CAAC,wBAAW,CAAC,YAAY;SACpE,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEpB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACzD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"createThread.js","sourceRoot":"","sources":["../../../src/native/channel/createThread.ts"],"names":[],"mappings":";;AAAA,2CAAkE;AAClE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wDAAwD;IACrE,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,SAAS,IAAI,CAAC;SAC5C;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC;QAC/C,MAAM,EAAE,GAAG,OAAsB,CAAA;QAEjC,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,OAAO;aAC3B,MAAM,CAAC;YACJ,IAAI;YACJ,YAAY,EAAE,CAAC,IAAI,SAAS;YAC5B,MAAM,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM;YAC5B,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,wBAAW,CAAC,aAAa,CAAC,CAAC,CAAC,wBAAW,CAAC,YAAY;SACpE,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEpB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACzD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/deleteChannelPerms.d.ts b/dist/native/channel/deleteChannelPerms.d.ts index 9539ab2511..73fce080c9 100644 --- a/dist/native/channel/deleteChannelPerms.d.ts +++ b/dist/native/channel/deleteChannelPerms.d.ts @@ -70,6 +70,7 @@ declare const _default: NativeFunction<[{ readonly SendVoiceMessages: bigint; readonly SendPolls: bigint; readonly UseExternalApps: bigint; + readonly PinMessages: bigint; }; }], true>; export default _default; diff --git a/dist/native/channel/deleteChannelPerms.d.ts.map b/dist/native/channel/deleteChannelPerms.d.ts.map index b892565c8a..393c0bda58 100644 --- a/dist/native/channel/deleteChannelPerms.d.ts.map +++ b/dist/native/channel/deleteChannelPerms.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"deleteChannelPerms.d.ts","sourceRoot":"","sources":["../../../src/native/channel/deleteChannelPerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAwD,MAAM,YAAY,CAAA;AAC9F,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdlC,wBAyCE"} \ No newline at end of file +{"version":3,"file":"deleteChannelPerms.d.ts","sourceRoot":"","sources":["../../../src/native/channel/deleteChannelPerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAwD,MAAM,YAAY,CAAA;AAC9F,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdlC,wBAyCE"} \ No newline at end of file diff --git a/dist/native/channel/deleteChannelPerms.js b/dist/native/channel/deleteChannelPerms.js index cce19980cc..1cd0fa5109 100644 --- a/dist/native/channel/deleteChannelPerms.js +++ b/dist/native/channel/deleteChannelPerms.js @@ -38,7 +38,7 @@ exports.default = new structures_1.NativeFunction({ const channel = ch; const obj = {}; perms.forEach((x) => (obj[x] = null)); - return this.success(!!(await channel.permissionOverwrites.create(id, obj))); + return this.success(!!(await channel.permissionOverwrites.create(id, obj, { reason: ctx.reason }))); }, }); //# sourceMappingURL=deleteChannelPerms.js.map \ No newline at end of file diff --git a/dist/native/channel/deleteChannelPerms.js.map b/dist/native/channel/deleteChannelPerms.js.map index 8dc6aa3919..08aad96dd7 100644 --- a/dist/native/channel/deleteChannelPerms.js.map +++ b/dist/native/channel/deleteChannelPerms.js.map @@ -1 +1 @@ -{"version":3,"file":"deleteChannelPerms.js","sourceRoot":"","sources":["../../../src/native/channel/deleteChannelPerms.ts"],"names":[],"mappings":";;AAAA,2CAA8F;AAC9F,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iEAAiE;IAC9E,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,sBAAsB,IAAI,CAAC;SACzD;QACD;YACI,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,gDAAgD;YAC7D,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,gCAAmB;SAC5B;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QAC9B,MAAM,OAAO,GAAG,EAAkB,CAAA;QAElC,MAAM,GAAG,GAA6C,EAAE,CAAA;QAExD,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAA;QAE1D,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;IAC/E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"deleteChannelPerms.js","sourceRoot":"","sources":["../../../src/native/channel/deleteChannelPerms.ts"],"names":[],"mappings":";;AAAA,2CAA8F;AAC9F,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iEAAiE;IAC9E,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,sBAAsB,IAAI,CAAC;SACzD;QACD;YACI,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,gDAAgD;YAC7D,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,gCAAmB;SAC5B;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QAC9B,MAAM,OAAO,GAAG,EAAkB,CAAA;QAElC,MAAM,GAAG,GAA6C,EAAE,CAAA;QAExD,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAA;QAE1D,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAA;IACvG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/deleteChannels.d.ts.map b/dist/native/channel/deleteChannels.d.ts.map index 2c1f462890..6619ec6936 100644 --- a/dist/native/channel/deleteChannels.d.ts.map +++ b/dist/native/channel/deleteChannels.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"deleteChannels.d.ts","sourceRoot":"","sources":["../../../src/native/channel/deleteChannels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAkB3C,WAAW;;AAflC,wBA4BE"} \ No newline at end of file +{"version":3,"file":"deleteChannels.d.ts","sourceRoot":"","sources":["../../../src/native/channel/deleteChannels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAiB3C,WAAW;;AAflC,wBA4BE"} \ No newline at end of file diff --git a/dist/native/channel/deleteChannels.js.map b/dist/native/channel/deleteChannels.js.map index 5c69e831e6..c0974a0a17 100644 --- a/dist/native/channel/deleteChannels.js.map +++ b/dist/native/channel/deleteChannels.js.map @@ -1 +1 @@ -{"version":3,"file":"deleteChannels.js","sourceRoot":"","sources":["../../../src/native/channel/deleteChannels.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+DAA+D;IAC5E,OAAO,EAAE,CAAC,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,QAAQ,IAAI,CAAC;SAC3C;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC;QACzB,IAAI,KAAK,GAAG,CAAC,CAAA;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACjD,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;YACtB,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YACjD,IAAI,OAAO;gBAAE,KAAK,EAAE,CAAA;SACvB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"deleteChannels.js","sourceRoot":"","sources":["../../../src/native/channel/deleteChannels.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+DAA+D;IAC5E,OAAO,EAAE,CAAC,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,QAAQ,IAAI,CAAC;SAC3C;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC;QACzB,IAAI,KAAK,GAAG,CAAC,CAAA;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACjD,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;YACtB,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YACjD,IAAI,OAAO;gBAAE,KAAK,EAAE,CAAA;SACvB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/deleteForumTags.d.ts b/dist/native/channel/deleteForumTags.d.ts new file mode 100644 index 0000000000..eac3ed7d50 --- /dev/null +++ b/dist/native/channel/deleteForumTags.d.ts @@ -0,0 +1,19 @@ +import { BaseChannel } from "discord.js"; +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + required: true; + type: ArgType.Channel; + check: (i: BaseChannel) => boolean; +}, { + name: string; + description: string; + rest: true; + required: true; + type: ArgType.ForumTag; + pointer: number; +}], true>; +export default _default; +//# sourceMappingURL=deleteForumTags.d.ts.map \ No newline at end of file diff --git a/dist/native/channel/deleteForumTags.d.ts.map b/dist/native/channel/deleteForumTags.d.ts.map new file mode 100644 index 0000000000..05129524cb --- /dev/null +++ b/dist/native/channel/deleteForumTags.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"deleteForumTags.d.ts","sourceRoot":"","sources":["../../../src/native/channel/deleteForumTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqB,MAAM,YAAY,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;;;AAdlC,wBA+BE"} \ No newline at end of file diff --git a/dist/native/channel/deleteForumTags.js b/dist/native/channel/deleteForumTags.js new file mode 100644 index 0000000000..3870458295 --- /dev/null +++ b/dist/native/channel/deleteForumTags.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$deleteForumTags", + version: "2.5.0", + description: "Deletes tags from a forum, returns bool", + aliases: ["$deleteForumTag"], + unwrap: true, + brackets: true, + args: [ + { + name: "channel ID", + description: "The forum to delete tags from", + rest: false, + required: true, + type: structures_1.ArgType.Channel, + check: (i) => i.isThreadOnly(), + }, + { + name: "tags", + description: "The tags to delete", + rest: true, + required: true, + type: structures_1.ArgType.ForumTag, + pointer: 0 + }, + ], + output: structures_1.ArgType.Boolean, + async execute(ctx, [channel, tags]) { + const forum = channel; + const newTags = forum.availableTags.filter((x) => !tags.some((tag) => x.id === tag.id)); + return this.success(!!(await forum.setAvailableTags(newTags).catch(ctx.noop))); + }, +}); +//# sourceMappingURL=deleteForumTags.js.map \ No newline at end of file diff --git a/dist/native/channel/deleteForumTags.js.map b/dist/native/channel/deleteForumTags.js.map new file mode 100644 index 0000000000..14dc31addb --- /dev/null +++ b/dist/native/channel/deleteForumTags.js.map @@ -0,0 +1 @@ +{"version":3,"file":"deleteForumTags.js","sourceRoot":"","sources":["../../../src/native/channel/deleteForumTags.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,OAAO,EAAE,CAAC,iBAAiB,CAAC;IAC5B,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,QAAQ;YACtB,OAAO,EAAE,CAAC;SACb;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,OAAO,EAAE,IAAI,CAAE;QAChC,MAAM,KAAK,GAAG,OAA4B,CAAA;QAC1C,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAA;QACvF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAClF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/deleteThread.d.ts.map b/dist/native/channel/deleteThread.d.ts.map index 099b4889f4..c46efa3fe2 100644 --- a/dist/native/channel/deleteThread.d.ts.map +++ b/dist/native/channel/deleteThread.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"deleteThread.d.ts","sourceRoot":"","sources":["../../../src/native/channel/deleteThread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAiB3C,WAAW;;;;;;;AAdlC,wBA8BE"} \ No newline at end of file +{"version":3,"file":"deleteThread.d.ts","sourceRoot":"","sources":["../../../src/native/channel/deleteThread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;AAdlC,wBA6BE"} \ No newline at end of file diff --git a/dist/native/channel/deleteThread.js b/dist/native/channel/deleteThread.js index cf606e40bc..8d930186c0 100644 --- a/dist/native/channel/deleteThread.js +++ b/dist/native/channel/deleteThread.js @@ -26,7 +26,7 @@ exports.default = new structures_1.NativeFunction({ ], async execute(ctx, [channel, reason]) { const thread = channel; - const success = await thread.delete(reason || undefined).catch(ctx.noop); + const success = await thread.delete(reason || ctx.reason).catch(ctx.noop); return this.success(!!success); }, }); diff --git a/dist/native/channel/deleteThread.js.map b/dist/native/channel/deleteThread.js.map index a26dabb473..bdbf522c1e 100644 --- a/dist/native/channel/deleteThread.js.map +++ b/dist/native/channel/deleteThread.js.map @@ -1 +1 @@ -{"version":3,"file":"deleteThread.js","sourceRoot":"","sources":["../../../src/native/channel/deleteThread.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,MAAM,MAAM,GAAG,OAAwB,CAAA;QAEvC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAExE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"deleteThread.js","sourceRoot":"","sources":["../../../src/native/channel/deleteThread.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,MAAM,MAAM,GAAG,OAAwB,CAAA;QACvC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEzE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/dmChannelID.d.ts.map b/dist/native/channel/dmChannelID.d.ts.map index 5d096ea2de..eb0397396a 100644 --- a/dist/native/channel/dmChannelID.d.ts.map +++ b/dist/native/channel/dmChannelID.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"dmChannelID.d.ts","sourceRoot":"","sources":["../../../src/native/channel/dmChannelID.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAqBE"} \ No newline at end of file +{"version":3,"file":"dmChannelID.d.ts","sourceRoot":"","sources":["../../../src/native/channel/dmChannelID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAqBE"} \ No newline at end of file diff --git a/dist/native/channel/dmChannelID.js.map b/dist/native/channel/dmChannelID.js.map index 21878fecbe..0d0a2fe85b 100644 --- a/dist/native/channel/dmChannelID.js.map +++ b/dist/native/channel/dmChannelID.js.map @@ -1 +1 @@ -{"version":3,"file":"dmChannelID.js","sourceRoot":"","sources":["../../../src/native/channel/dmChannelID.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;QACrB,IAAI,KAAK,GAAG,CAAC,IAAK,CAAA;QAClB,MAAM,EAAE,GAAG,MAAM,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAC/C,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"dmChannelID.js","sourceRoot":"","sources":["../../../src/native/channel/dmChannelID.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;QACrB,IAAI,KAAK,GAAG,CAAC,IAAK,CAAA;QAClB,MAAM,EAAE,GAAG,MAAM,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAC/C,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/editForumTag.d.ts b/dist/native/channel/editForumTag.d.ts new file mode 100644 index 0000000000..447ef4f65e --- /dev/null +++ b/dist/native/channel/editForumTag.d.ts @@ -0,0 +1,34 @@ +import { BaseChannel } from "discord.js"; +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + required: true; + type: ArgType.Channel; + check: (i: BaseChannel) => boolean; +}, { + name: string; + description: string; + rest: false; + required: true; + type: ArgType.ForumTag; + pointer: number; +}, { + name: string; + description: string; + rest: false; + type: ArgType.String; +}, { + name: string; + description: string; + rest: false; + type: ArgType.String; +}, { + name: string; + description: string; + rest: false; + type: ArgType.Boolean; +}], true>; +export default _default; +//# sourceMappingURL=editForumTag.d.ts.map \ No newline at end of file diff --git a/dist/native/channel/editForumTag.d.ts.map b/dist/native/channel/editForumTag.d.ts.map new file mode 100644 index 0000000000..fb36bf1d6b --- /dev/null +++ b/dist/native/channel/editForumTag.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"editForumTag.d.ts","sourceRoot":"","sources":["../../../src/native/channel/editForumTag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqB,MAAM,YAAY,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;AAblC,wBAuDE"} \ No newline at end of file diff --git a/dist/native/channel/editForumTag.js b/dist/native/channel/editForumTag.js new file mode 100644 index 0000000000..0fb4fbddca --- /dev/null +++ b/dist/native/channel/editForumTag.js @@ -0,0 +1,62 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +const parseSingleEmoji_1 = require("../../functions/parseSingleEmoji"); +exports.default = new structures_1.NativeFunction({ + name: "$editForumTag", + version: "2.5.0", + description: "Edits an existing forum tag, returns bool", + unwrap: true, + brackets: true, + args: [ + { + name: "channel ID", + description: "The forum to edit tag on", + rest: false, + required: true, + type: structures_1.ArgType.Channel, + check: (i) => i.isThreadOnly(), + }, + { + name: "tag ID", + description: "The tag to edit", + rest: false, + required: true, + type: structures_1.ArgType.ForumTag, + pointer: 0 + }, + { + name: "name", + description: "The new name for the tag", + rest: false, + type: structures_1.ArgType.String, + }, + { + name: "emoji", + description: "The new emoji for the tag", + rest: false, + type: structures_1.ArgType.String, + }, + { + name: "moderated", + description: "Whether the tag can only be applied by mods", + rest: false, + type: structures_1.ArgType.Boolean, + } + ], + output: structures_1.ArgType.Boolean, + async execute(ctx, [channel, tag, name, emoji, mod]) { + const forum = channel; + const tags = forum.availableTags; + const index = tags.findIndex((x) => x.id === tag.id); + if (name) + tag.name = name; + if (emoji !== null) + tag.emoji = (0, parseSingleEmoji_1.parseSingleEmoji)(ctx, emoji); + if (typeof mod === "boolean") + tag.moderated = mod; + tags[index] = tag; + return this.success(!!(await forum.setAvailableTags(tags).catch(ctx.noop))); + }, +}); +//# sourceMappingURL=editForumTag.js.map \ No newline at end of file diff --git a/dist/native/channel/editForumTag.js.map b/dist/native/channel/editForumTag.js.map new file mode 100644 index 0000000000..7a9fbf45c4 --- /dev/null +++ b/dist/native/channel/editForumTag.js.map @@ -0,0 +1 @@ +{"version":3,"file":"editForumTag.js","sourceRoot":"","sources":["../../../src/native/channel/editForumTag.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAClE,uEAAmE;AAEnE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,QAAQ;YACtB,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,CAAE;QACjD,MAAM,KAAK,GAAG,OAA4B,CAAA;QAC1C,MAAM,IAAI,GAAG,KAAK,CAAC,aAAa,CAAA;QAChC,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC,CAAA;QAEpD,IAAI,IAAI;YAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CAAA;QACzB,IAAI,KAAK,KAAK,IAAI;YAAE,GAAG,CAAC,KAAK,GAAG,IAAA,mCAAgB,EAAC,GAAG,EAAE,KAAK,CAAC,CAAA;QAC5D,IAAI,OAAO,GAAG,KAAK,SAAS;YAAE,GAAG,CAAC,SAAS,GAAG,GAAG,CAAA;QAEjD,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAA;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC/E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/fetchThreads.d.ts b/dist/native/channel/fetchThreads.d.ts new file mode 100644 index 0000000000..536756496e --- /dev/null +++ b/dist/native/channel/fetchThreads.d.ts @@ -0,0 +1,22 @@ +import { BaseChannel } from "discord.js"; +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + type: ArgType.Channel; + required: true; + check: (i: BaseChannel) => boolean; +}, { + name: string; + description: string; + rest: false; + type: ArgType.Boolean; +}, { + name: string; + description: string; + rest: false; + type: ArgType.Boolean; +}], true>; +export default _default; +//# sourceMappingURL=fetchThreads.d.ts.map \ No newline at end of file diff --git a/dist/native/channel/fetchThreads.d.ts.map b/dist/native/channel/fetchThreads.d.ts.map new file mode 100644 index 0000000000..3cf4b1f1ed --- /dev/null +++ b/dist/native/channel/fetchThreads.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"fetchThreads.d.ts","sourceRoot":"","sources":["../../../src/native/channel/fetchThreads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAe3C,WAAW;;;;;;;;;;;;AAblC,wBAwCE"} \ No newline at end of file diff --git a/dist/native/channel/fetchThreads.js b/dist/native/channel/fetchThreads.js new file mode 100644 index 0000000000..a852368db9 --- /dev/null +++ b/dist/native/channel/fetchThreads.js @@ -0,0 +1,44 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$fetchThreads", + version: "2.5.0", + description: "Caches all threads of a channel", + brackets: false, + unwrap: true, + args: [ + { + name: "channel ID", + description: "The channel to cache its threads", + rest: false, + type: structures_1.ArgType.Channel, + required: true, + check: (i) => "threads" in i + }, + { + name: "archived", + description: "Whether to cache archived threads, otherwise active", + rest: false, + type: structures_1.ArgType.Boolean, + }, + { + name: "private", + description: "Whether to cache archived private threads, otherwise public", + rest: false, + type: structures_1.ArgType.Boolean, + }, + ], + async execute(ctx, [channel, archived, priv]) { + const chan = channel ?? ctx.channel; + if ("threads" in chan) { + const threads = chan.threads; + if (archived) + await threads.fetchArchived({ type: priv ? "private" : undefined, fetchAll: true }).catch(ctx.noop); + else + await threads.fetchActive().catch(ctx.noop); + } + return this.success(); + }, +}); +//# sourceMappingURL=fetchThreads.js.map \ No newline at end of file diff --git a/dist/native/channel/fetchThreads.js.map b/dist/native/channel/fetchThreads.js.map new file mode 100644 index 0000000000..e969d81a95 --- /dev/null +++ b/dist/native/channel/fetch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,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;SACnD;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/followChannel.js b/dist/native/channel/followChannel.js index 1d3f65a587..e9c7d5532c 100644 --- a/dist/native/channel/followChannel.js +++ b/dist/native/channel/followChannel.js @@ -34,7 +34,7 @@ exports.default = new structures_1.NativeFunction({ ], output: structures_1.ArgType.Webhook, async execute(ctx, [news, chan, reason]) { - return this.success("guild" in news ? (await news.guild?.channels.addFollower(news, chan, reason || undefined).catch(ctx.noop)) : undefined); + return this.success("guild" in news ? (await news.guild?.channels.addFollower(news, chan, reason || ctx.reason).catch(ctx.noop)) : undefined); }, }); //# sourceMappingURL=followChannel.js.map \ No newline at end of file diff --git a/dist/native/channel/followChannel.js.map b/dist/native/channel/followChannel.js.map index bc4ee3c24e..021f61af90 100644 --- a/dist/native/channel/followChannel.js.map +++ b/dist/native/channel/followChannel.js.map @@ -1 +1 @@ -{"version":3,"file":"followChannel.js","sourceRoot":"","sources":["../../../src/native/channel/followChannel.ts"],"names":[],"mappings":";;AAAA,2CAAsF;AACtF,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wDAAwD;IACrE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,iBAAiB;SACtE;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,SAAS;SAC9D;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK;SACd;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,MAAO,IAAI,CAAC,KAAe,EAAE,QAAQ,CAAC,WAAW,CAAC,IAAmB,EAAE,IAAmB,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACzL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"followChannel.js","sourceRoot":"","sources":["../../../src/native/channel/followChannel.ts"],"names":[],"mappings":";;AAAA,2CAAsF;AACtF,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wDAAwD;IACrE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,iBAAiB;SACtE;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,SAAS;SAC9D;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK;SACd;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,MAAO,IAAI,CAAC,KAAe,EAAE,QAAQ,CAAC,WAAW,CAAC,IAAmB,EAAE,IAAmB,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAC1L,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/forumTags.d.ts.map b/dist/native/channel/forumTags.d.ts.map index 65b5ae4871..d3a1377bf8 100644 --- a/dist/native/channel/forumTags.d.ts.map +++ b/dist/native/channel/forumTags.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"forumTags.d.ts","sourceRoot":"","sources":["../../../src/native/channel/forumTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA6B,MAAM,YAAY,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;AAClE,OAAO,EAAE,gBAAgB,EAAsB,MAAM,2BAA2B,CAAA;;;;;;eAkBzD,WAAW;;;;;;;;;;;;;;AAflC,wBAuCE"} \ No newline at end of file +{"version":3,"file":"forumTags.d.ts","sourceRoot":"","sources":["../../../src/native/channel/forumTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqB,MAAM,YAAY,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;AAClE,OAAO,EAAE,gBAAgB,EAAsB,MAAM,2BAA2B,CAAA;;;;;;eAkBzD,WAAW;;;;;;;;;;;;;;AAflC,wBAuCE"} \ No newline at end of file diff --git a/dist/native/channel/forumTags.js b/dist/native/channel/forumTags.js index 3483674cec..723c7fb3c3 100644 --- a/dist/native/channel/forumTags.js +++ b/dist/native/channel/forumTags.js @@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -const discord_js_1 = require("discord.js"); const structures_1 = require("../../structures"); const forumTag_1 = require("../../properties/forumTag"); const array_1 = __importDefault(require("../../functions/array")); @@ -22,7 +21,7 @@ exports.default = new structures_1.NativeFunction({ description: "The channel to get tags of", rest: false, type: structures_1.ArgType.Channel, - check: (i) => i.type === discord_js_1.ChannelType.GuildForum, + check: (i) => i.isThreadOnly(), required: true }, { diff --git a/dist/native/channel/forumTags.js.map b/dist/native/channel/forumTags.js.map index 289961fa9e..786e3637bf 100644 --- a/dist/native/channel/forumTags.js.map +++ b/dist/native/channel/forumTags.js.map @@ -1 +1 @@ -{"version":3,"file":"forumTags.js","sourceRoot":"","sources":["../../../src/native/channel/forumTags.ts"],"names":[],"mappings":";;;;;AAAA,2CAAmE;AACnE,iDAAkE;AAClE,wDAAgF;AAChF,kEAAyC;AAEzC,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE;QACJ,oBAAO,CAAC,IAAI;QACZ,IAAA,eAAK,GAAmB;KAC3B;IACD,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,UAAU;YAC5D,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,2BAAgB;SACzB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC;QACxB,MAAM,OAAO,GAAG,EAA8B,CAAA;QAC9C,MAAM,IAAI,GAAG,OAAO,EAAE,aAAa,CAAA;QAEnC,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,6BAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;IAC7G,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"forumTags.js","sourceRoot":"","sources":["../../../src/native/channel/forumTags.ts"],"names":[],"mappings":";;;;;AACA,iDAAkE;AAClE,wDAAgF;AAChF,kEAAyC;AAEzC,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE;QACJ,oBAAO,CAAC,IAAI;QACZ,IAAA,eAAK,GAAmB;KAC3B;IACD,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;YAC3C,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,2BAAgB;SACzB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC;QACxB,MAAM,OAAO,GAAG,EAAmC,CAAA;QACnD,MAAM,IAAI,GAAG,OAAO,EAAE,aAAa,CAAA;QAEnC,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,6BAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;IAC7G,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/lockThread.d.ts.map b/dist/native/channel/lockThread.d.ts.map index fd45776f9c..2d38704421 100644 --- a/dist/native/channel/lockThread.d.ts.map +++ b/dist/native/channel/lockThread.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"lockThread.d.ts","sourceRoot":"","sources":["../../../src/native/channel/lockThread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAkB3C,WAAW;;;;;;;AAflC,wBAgCE"} \ No newline at end of file +{"version":3,"file":"lockThread.d.ts","sourceRoot":"","sources":["../../../src/native/channel/lockThread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAiB3C,WAAW;;;;;;;AAflC,wBAgCE"} \ No newline at end of file diff --git a/dist/native/channel/lockThread.js b/dist/native/channel/lockThread.js index f31b8cdff5..23c6e06c73 100644 --- a/dist/native/channel/lockThread.js +++ b/dist/native/channel/lockThread.js @@ -27,9 +27,9 @@ exports.default = new structures_1.NativeFunction({ ], async execute(ctx, [channel, reason]) { const thread = (channel ?? ctx.channel); - if (!thread.isThread()) + if (!thread?.isThread()) return this.success(false); - const success = await thread.setLocked(true, reason || undefined).catch(ctx.noop); + const success = await thread.setLocked(true, reason || ctx.reason).catch(ctx.noop); return this.success(!!success); }, }); diff --git a/dist/native/channel/lockThread.js.map b/dist/native/channel/lockThread.js.map index 6cdf0426de..d2bcd97c5e 100644 --- a/dist/native/channel/lockThread.js.map +++ b/dist/native/channel/lockThread.js.map @@ -1 +1 @@ -{"version":3,"file":"lockThread.js","sourceRoot":"","sources":["../../../src/native/channel/lockThread.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,WAAW,CAAC;IACtB,WAAW,EAAE,8BAA8B;IAC3C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,MAAM,MAAM,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAkB,CAAA;QACxD,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAElD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEjF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"lockThread.js","sourceRoot":"","sources":["../../../src/native/channel/lockThread.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,WAAW,CAAC;IACtB,WAAW,EAAE,8BAA8B;IAC3C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,MAAM,MAAM,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAkB,CAAA;QACxD,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAEnD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAElF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/modifyChannelPerms.d.ts b/dist/native/channel/modifyChannelPerms.d.ts index 7b5fe6a211..920e9af704 100644 --- a/dist/native/channel/modifyChannelPerms.d.ts +++ b/dist/native/channel/modifyChannelPerms.d.ts @@ -72,6 +72,7 @@ declare const _default: NativeFunction<[{ readonly SendVoiceMessages: bigint; readonly SendPolls: bigint; readonly UseExternalApps: bigint; + readonly PinMessages: bigint; }; }], true>; export default _default; diff --git a/dist/native/channel/modifyChannelPerms.d.ts.map b/dist/native/channel/modifyChannelPerms.d.ts.map index 93aecdae5b..692609ce59 100644 --- a/dist/native/channel/modifyChannelPerms.d.ts.map +++ b/dist/native/channel/modifyChannelPerms.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"modifyChannelPerms.d.ts","sourceRoot":"","sources":["../../../src/native/channel/modifyChannelPerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqC,MAAM,YAAY,CAAA;AAC3E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;eAkBnC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdlC,wBA6CE"} \ No newline at end of file +{"version":3,"file":"modifyChannelPerms.d.ts","sourceRoot":"","sources":["../../../src/native/channel/modifyChannelPerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqC,MAAM,YAAY,CAAA;AAC3E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;eAiBnC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdlC,wBA6CE"} \ No newline at end of file diff --git a/dist/native/channel/modifyChannelPerms.js b/dist/native/channel/modifyChannelPerms.js index d115c88e83..45af79b119 100644 --- a/dist/native/channel/modifyChannelPerms.js +++ b/dist/native/channel/modifyChannelPerms.js @@ -45,10 +45,10 @@ exports.default = new structures_1.NativeFunction({ const ch = channel; const mapped = (0, overwritePermissionsArrayToObject_1.default)(raw); if (ch.permissionOverwrites.cache.has(roleOrUser.id)) { - return this.success(!!(await ch.permissionOverwrites.edit(roleOrUser, mapped).catch(ctx.noop))); + return this.success(!!(await ch.permissionOverwrites.edit(roleOrUser, mapped, { reason: ctx.reason }).catch(ctx.noop))); } else { - return this.success(!!(await ch.permissionOverwrites.create(roleOrUser, mapped).catch(ctx.noop))); + return this.success(!!(await ch.permissionOverwrites.create(roleOrUser, mapped, { reason: ctx.reason }).catch(ctx.noop))); } }, }); diff --git a/dist/native/channel/modifyChannelPerms.js.map b/dist/native/channel/modifyChannelPerms.js.map index a971550c9c..bf7470fb8c 100644 --- a/dist/native/channel/modifyChannelPerms.js.map +++ b/dist/native/channel/modifyChannelPerms.js.map @@ -1 +1 @@ -{"version":3,"file":"modifyChannelPerms.js","sourceRoot":"","sources":["../../../src/native/channel/modifyChannelPerms.ts"],"names":[],"mappings":";;;;;AAAA,2CAA2E;AAC3E,iDAA0D;AAC1D,0HAAiG;AAGjG,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,OAAO,EAAE,CAAC,mBAAmB,CAAC;IAC9B,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,sBAAsB,IAAI,CAAC;YACtD,WAAW,EAAE,iCAAiC;SACjD;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,eAAe,EAAE,OAAO;YACxB,IAAI,EAAE,oBAAO,CAAC,UAAU;SAC3B;QACD;YACI,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,mBAAmB;YACjC,WAAW,EAAE,4DAA4D;YACzE,IAAI,EAAE,gCAAmB;SAC5B;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAE;QAC3C,MAAM,EAAE,GAAG,OAAuB,CAAA;QAClC,MAAM,MAAM,GAAG,IAAA,2CAAiC,EAAC,GAAG,CAAC,CAAA;QAErD,IAAI,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;YAClD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;SAClG;aAAM;YACH,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,oBAAoB,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;SACpG;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"modifyChannelPerms.js","sourceRoot":"","sources":["../../../src/native/channel/modifyChannelPerms.ts"],"names":[],"mappings":";;;;;AAAA,2CAA2E;AAC3E,iDAA0D;AAC1D,0HAAiG;AAEjG,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,OAAO,EAAE,CAAC,mBAAmB,CAAC;IAC9B,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC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AAA"} \ No newline at end of file diff --git a/dist/native/channel/modifyForumTags.d.ts.map b/dist/native/channel/modifyForumTags.d.ts.map deleted file mode 100644 index 47cab7a816..0000000000 --- a/dist/native/channel/modifyForumTags.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"modifyForumTags.d.ts","sourceRoot":"","sources":["../../../src/native/channel/modifyForumTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4C,MAAM,YAAY,CAAA;AAClF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;eAgB3C,WAAW;;;;;;;;;;;;;;AAblC,wBAoCE"} \ No newline at end of file diff --git a/dist/native/channel/modifyForumTags.js.map b/dist/native/channel/modifyForumTags.js.map deleted file mode 100644 index 7731ec988b..0000000000 --- a/dist/native/channel/modifyForumTags.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"modifyForumTags.js","sourceRoot":"","sources":["../../../src/native/channel/modifyForumTags.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,iBAAiB,CAAC;IAC5B,WAAW,EAAE,6CAA6C;IAC1D,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;YACvC,WAAW,EAAE,0BAA0B;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAE;QACxC,MAAM,IAAI,GAAG,OAAwB,CAAA;QAErC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC1N,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/modifyForumTags.d.ts b/dist/native/channel/modifyPostTags.d.ts similarity index 92% rename from dist/native/channel/modifyForumTags.d.ts rename to dist/native/channel/modifyPostTags.d.ts index 293acbe908..424887beea 100644 --- a/dist/native/channel/modifyForumTags.d.ts +++ b/dist/native/channel/modifyPostTags.d.ts @@ -20,4 +20,4 @@ declare const _default: NativeFunction<[{ type: ArgType.String; }], true>; export default _default; -//# sourceMappingURL=modifyForumTags.d.ts.map \ No newline at end of file +//# sourceMappingURL=modifyPostTags.d.ts.map \ No newline at end of file diff --git a/dist/native/channel/modifyPostTags.d.ts.map b/dist/native/channel/modifyPostTags.d.ts.map new file mode 100644 index 0000000000..90c7701de5 --- /dev/null +++ b/dist/native/channel/modifyPostTags.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"modifyPostTags.d.ts","sourceRoot":"","sources":["../../../src/native/channel/modifyPostTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;eAe3C,WAAW;;;;;;;;;;;;;;AAblC,wBAmCE"} \ No newline at end of file diff --git a/dist/native/channel/modifyForumTags.js b/dist/native/channel/modifyPostTags.js similarity index 90% rename from dist/native/channel/modifyForumTags.js rename to dist/native/channel/modifyPostTags.js index 0c68317568..eb5f6aa583 100644 --- a/dist/native/channel/modifyForumTags.js +++ b/dist/native/channel/modifyPostTags.js @@ -2,9 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ - name: "$modifyForumTags", + name: "$modifyPostTags", version: "1.5.0", - aliases: ["$modifyPostTags"], + aliases: ["$editPostTags"], description: "Modifies tags of a forum post, returns bool", unwrap: true, output: structures_1.ArgType.Boolean, @@ -34,7 +34,7 @@ exports.default = new structures_1.NativeFunction({ brackets: true, async execute(ctx, [channel, reason, tags]) { const post = channel; - return this.success(!!(await post.setAppliedTags([...new Set(post.appliedTags.filter(tag => !tags.includes(tag)).concat(tags.filter(tag => !post.appliedTags.includes(tag))))], reason || undefined).catch(ctx.noop))); + return this.success(!!(await post.setAppliedTags([...new Set(post.appliedTags.filter(tag => !tags.includes(tag)).concat(tags.filter(tag => !post.appliedTags.includes(tag))))], reason || ctx.reason).catch(ctx.noop))); }, }); -//# sourceMappingURL=modifyForumTags.js.map \ No newline at end of file +//# sourceMappingURL=modifyPostTags.js.map \ No newline at end of file diff --git a/dist/native/channel/modifyPostTags.js.map b/dist/native/channel/modifyPostTags.js.map new file mode 100644 index 0000000000..58cb5aed5a --- /dev/null +++ b/dist/native/channel/modifyPostT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C,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC3N,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/randomChannelID.d.ts b/dist/native/channel/randomChannelID.d.ts index dc02d4de27..1b827151cd 100644 --- a/dist/native/channel/randomChannelID.d.ts +++ b/dist/native/channel/randomChannelID.d.ts @@ -1,4 +1,12 @@ +import { ChannelType } from "discord.js"; import { ArgType, NativeFunction } from "../../structures"; -declare const _default: NativeFunction>[], false>; +declare const _default: NativeFunction<[{ + name: string; + description: string; + type: ArgType.Enum; + rest: true; + required: true; + enum: typeof ChannelType; +}], true>; export default _default; //# sourceMappingURL=randomChannelID.d.ts.map \ No newline at end of file diff --git a/dist/native/channel/randomChannelID.d.ts.map b/dist/native/channel/randomChannelID.d.ts.map index 459981e6d8..ac7eddb17e 100644 --- a/dist/native/channel/randomChannelID.d.ts.map +++ b/dist/native/channel/randomChannelID.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"randomChannelID.d.ts","sourceRoot":"","sources":["../../../src/native/channel/randomChannelID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;AAElE,wBASE"} \ No newline at end of file +{"version":3,"file":"randomChannelID.d.ts","sourceRoot":"","sources":["../../../src/native/channel/randomChannelID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;AAElE,wBAyBE"} \ No newline at end of file diff --git a/dist/native/channel/randomChannelID.js b/dist/native/channel/randomChannelID.js index d010f396d8..c583c7abcb 100644 --- a/dist/native/channel/randomChannelID.js +++ b/dist/native/channel/randomChannelID.js @@ -1,14 +1,28 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +const discord_js_1 = require("discord.js"); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$randomChannelID", version: "1.0.3", description: "Returns a random channel ID", - unwrap: false, + unwrap: true, + brackets: false, + args: [ + { + name: "types", + description: "The channel types to get an id from", + type: structures_1.ArgType.Enum, + rest: true, + required: true, + enum: discord_js_1.ChannelType + } + ], output: structures_1.ArgType.Channel, - execute(ctx) { - return this.success(ctx.client.channels.cache.randomKey()); + execute(ctx, [types]) { + types ??= []; + return this.success(types.length === 0 ? ctx.client.channels.cache.randomKey() : + ctx.client.channels.cache.filter(x => types.includes(x.type)).randomKey()); }, }); //# sourceMappingURL=randomChannelID.js.map \ No newline at end of file diff --git a/dist/native/channel/randomChannelID.js.map b/dist/native/channel/randomChannelID.js.map index 6d82f496cc..a3a7b96c35 100644 --- a/dist/native/channel/randomChannelID.js.map +++ b/dist/native/channel/randomChannelID.js.map @@ -1 +1 @@ -{"version":3,"file":"randomChannelID.js","sourceRoot":"","sources":["../../../src/native/channel/randomChannelID.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6BAA6B;IAC1C,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,CAAC,GAAG;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAA;IAC9D,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"randomChannelID.js","sourceRoot":"","sources":["../../../src/native/channel/randomChannelID.ts"],"names":[],"mappings":";;AAAA,2CAAwC;AACxC,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6BAA6B;IAC1C,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE;QACF;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,wBAAW;SACpB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;QAChB,KAAK,KAAK,EAAE,CAAA;QAEZ,OAAO,IAAI,CAAC,OAAO,CACf,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;YACxD,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAChF,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/removeChannelPerms.d.ts b/dist/native/channel/removeChannelPerms.d.ts index 5f107c1244..6937ebce83 100644 --- a/dist/native/channel/removeChannelPerms.d.ts +++ b/dist/native/channel/removeChannelPerms.d.ts @@ -70,6 +70,7 @@ declare const _default: NativeFunction<[{ readonly SendVoiceMessages: bigint; readonly SendPolls: bigint; readonly UseExternalApps: bigint; + readonly PinMessages: bigint; }; }], true>; export default _default; diff --git a/dist/native/channel/removeChannelPerms.d.ts.map b/dist/native/channel/removeChannelPerms.d.ts.map index 2232a6c963..d3d1f6ad41 100644 --- a/dist/native/channel/removeChannelPerms.d.ts.map +++ b/dist/native/channel/removeChannelPerms.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"removeChannelPerms.d.ts","sourceRoot":"","sources":["../../../src/native/channel/removeChannelPerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAwD,MAAM,YAAY,CAAA;AAC9F,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdlC,wBAyCE"} \ No newline at end of file +{"version":3,"file":"removeChannelPerms.d.ts","sourceRoot":"","sources":["../../../src/native/channel/removeChannelPerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAwD,MAAM,YAAY,CAAA;AAC9F,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdlC,wBAyCE"} \ No newline at end of file diff --git a/dist/native/channel/removeChannelPerms.js b/dist/native/channel/removeChannelPerms.js index 2cf270f1ad..457f7604fa 100644 --- a/dist/native/channel/removeChannelPerms.js +++ b/dist/native/channel/removeChannelPerms.js @@ -38,7 +38,7 @@ exports.default = new structures_1.NativeFunction({ const channel = ch; const obj = {}; perms.forEach((x) => (obj[x] = false)); - return this.success(!!(await channel.permissionOverwrites.create(id, obj))); + return this.success(!!(await channel.permissionOverwrites.create(id, obj, { reason: ctx.reason }))); }, }); //# sourceMappingURL=removeChannelPerms.js.map \ No newline at end of file diff --git a/dist/native/channel/removeChannelPerms.js.map b/dist/native/channel/removeChannelPerms.js.map index cf36a19892..d971aba721 100644 --- a/dist/native/channel/removeChannelPerms.js.map +++ b/dist/native/channel/removeChannelPerms.js.map @@ -1 +1 @@ -{"version":3,"file":"removeChann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AE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;IAC/E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"removeChannelPerms.js","sourceRoot":"","sources":["../../../src/native/channel/removeChannelPerms.ts"],"names":[],"mappings":";;AAAA,2CAA8F;AAC9F,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4DAA4D;IACzE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,sBAAsB,IAAI,CAAC;SACzD;QACD;YACI,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,kDAAkD;YAC/D,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,gCAAmB;SAC5B;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QAC9B,MAAM,OAAO,GAAG,EAAkB,CAAA;QAElC,MAAM,GAAG,GAAgD,EAAE,CAAA;QAE3D,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAA;QAE3D,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAA;IACvG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setChannelArchiveDuration.d.ts.map b/dist/native/channel/setChannelArchiveDuration.d.ts.map index 60d705a0f8..5e0a4697a5 100644 --- a/dist/native/channel/setChannelArchiveDuration.d.ts.map +++ b/dist/native/channel/setChannelArchiveDuration.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"setChannelArchiveDuration.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setChannelArchiveDuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAwD,yBAAyB,EAAiB,MAAM,YAAY,CAAA;AACxI,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;eAanC,WAAW;;;;;;;;;;;;;;;;;AAXlC,wBAkCE"} \ No newline at end of file +{"version":3,"file":"setChannelArchiveDuration.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setChannelArchiveDuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,yBAAyB,EAAE,MAAM,YAAY,CAAA;AAChF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;eAanC,WAAW;;;;;;;;;;;;;;;;;AAXlC,wBAkCE"} \ No newline at end of file diff --git a/dist/native/channel/setChannelArchiveDuration.js b/dist/native/channel/setChannelArchiveDuration.js index a2fa0eabbe..07eac61d89 100644 --- a/dist/native/channel/setChannelArchiveDuration.js +++ b/dist/native/channel/setChannelArchiveDuration.js @@ -28,13 +28,13 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason for modifying archive duration", + description: "The reason for modifying archive duration", rest: false, type: structures_1.ArgType.String } ], async execute(ctx, [ch, dur, reason]) { - return this.success(!!(ch.setDefaultAutoArchiveDuration(dur, reason ?? undefined))); + return this.success(!!(ch.setDefaultAutoArchiveDuration(dur, reason || ctx.reason))); }, }); //# sourceMappingURL=setChannelArchiveDuration.js.map \ No newline at end of file diff --git a/dist/native/channel/setChannelArchiveDuration.js.map b/dist/native/channel/setChannelArchiveDuration.js.map index bb9522e0cc..5514cd5957 100644 --- a/dist/native/channel/setChannelArchiveDuration.js.map +++ b/dist/native/channel/setChannelArchiveDuration.js.map @@ -1 +1 @@ -{"version":3,"file":"setChannelArchiveDuration.js","sourceRoot":"","sources":["../../../src/native/channel/setChannelArchiveDuration.ts"],"names":[],"mappings":";;AAAA,2CAAwI;AACxI,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,4BAA4B;IAClC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,+BAA+B,IAAI,CAAC;YAC/D,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,sCAAyB;YAC/B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,EAAE,EAAE,GAAG,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,EAAkB,CAAC,6BAA6B,CAAC,GAAG,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,CAAA;IACxG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setChannelArchiveDuration.js","sourceRoot":"","sources":["../../../src/native/channel/setChannelArchiveDuration.ts"],"names":[],"mappings":";;AAAA,2CAAgF;AAChF,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,4BAA4B;IAClC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,+BAA+B,IAAI,CAAC;YAC/D,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,sCAAyB;YAC/B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2CAA2C;YACxD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,EAAE,EAAE,GAAG,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,EAAkB,CAAC,6BAA6B,CAAC,GAAG,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IACzG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setChannelCategory.d.ts.map b/dist/native/channel/setChannelCategory.d.ts.map index 11dd02807b..2d5027b971 100644 --- a/dist/native/channel/setChannelCategory.d.ts.map +++ b/dist/native/channel/setChannelCategory.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"setChannelCategory.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setChannelCategory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA6C,MAAM,YAAY,CAAA;AACnF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;eAgB3C,WAAW;;;;;;;;eASX,WAAW;;AAtBlC,wBA4BE"} \ No newline at end of file +{"version":3,"file":"setChannelCategory.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setChannelCategory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA6C,MAAM,YAAY,CAAA;AACnF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;eAe3C,WAAW;;;;;;;;eASX,WAAW;;AAtBlC,wBA4BE"} \ No newline at end of file diff --git a/dist/native/channel/setChannelCategory.js b/dist/native/channel/setChannelCategory.js index db40665bc4..4a59e49db4 100644 --- a/dist/native/channel/setChannelCategory.js +++ b/dist/native/channel/setChannelCategory.js @@ -13,7 +13,7 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "channel ID", - description: "The channel id to set its category", + description: "The channel to set its category", rest: false, check: (i) => "setParent" in i, type: structures_1.ArgType.Channel, @@ -28,7 +28,7 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [channel, parent]) { - return this.success(!!(await channel.setParent(parent || null).catch(ctx.noop))); + return this.success(!!(await channel.setParent(parent || null, { reason: ctx.reason }).catch(ctx.noop))); }, }); //# sourceMappingURL=setChannelCategory.js.map \ No newline at end of file diff --git a/dist/native/channel/setChannelCategory.js.map b/dist/native/channel/setChannelCategory.js.map index 33b9789d24..bc7ed67bbf 100644 --- a/dist/native/channel/setChannelCategory.js.map +++ b/dist/native/channel/setChannelCategory.js.map @@ -1 +1 @@ -{"version":3,"file":"setChannelCategory.js","sourceRoot":"","sources":["../../../src/native/channel/setChannelCategory.ts"],"names":[],"mappings":";;AAAA,2CAAmF;AACnF,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,mBAAmB,CAAC;IAC9B,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,WAAW,IAAI,CAAC;YAC3C,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,aAAa;SAClE;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAuB,CAAC,SAAS,CAAC,MAAyB,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACxH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setChannelCategory.js","sourceRoot":"","sources":["../../../src/native/channel/setChannelCategory.ts"],"names":[],"mappings":";;AAAA,2CAAmF;AACnF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,mBAAmB,CAAC;IAC9B,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,WAAW,IAAI,CAAC;YAC3C,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,aAAa;SAClE;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAuB,CAAC,SAAS,CAAC,MAAyB,IAAI,IAAI,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAChJ,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setChannelNSFW.d.ts.map b/dist/native/channel/setChannelNSFW.d.ts.map index 4f2b20c355..580a397e6f 100644 --- a/dist/native/channel/setChannelNSFW.d.ts.map +++ b/dist/native/channel/setChannelNSFW.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"setChannelNSFW.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setChannelNSFW.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;eAe3C,WAAW;;;;;;;;;AAZlC,wBA0BE"} \ No newline at end of file +{"version":3,"file":"setChannelNSFW.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setChannelNSFW.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;eAc3C,WAAW;;;;;;;;;AAZlC,wBA0BE"} \ No newline at end of file diff --git a/dist/native/channel/setChannelNSFW.js b/dist/native/channel/setChannelNSFW.js index 012d1cb5ec..4f7edf3611 100644 --- a/dist/native/channel/setChannelNSFW.js +++ b/dist/native/channel/setChannelNSFW.js @@ -11,7 +11,7 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "channel ID", - description: "The channel id to set its nsfw state", + description: "The channel to set its nsfw state", rest: false, check: (i) => "setNSFW" in i, type: structures_1.ArgType.Channel, @@ -25,7 +25,7 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [channel, state]) { - return this.success(!!(await channel.setNSFW(state || false).catch(ctx.noop))); + return this.success(!!(await channel.setNSFW(state || false, ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setChannelNSFW.js.map \ No newline at end of file diff --git a/dist/native/channel/setChannelNSFW.js.map b/dist/native/channel/setChannelNSFW.js.map index d1f719775c..a71bf40ead 100644 --- a/dist/native/channel/setChannelNSFW.js.map +++ b/dist/native/channel/setChannelNSFW.js.map @@ -1 +1 @@ -{"version":3,"file":"setChannelNSFW.js","sourceRoot":"","sources":["../../../src/native/channel/setChannelNSFW.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,SAAS,IAAI,CAAC;YACzC,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAuB,CAAC,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setChannelNSFW.js","sourceRoot":"","sources":["../../../src/native/channel/setChannelNSFW.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,SAAS,IAAI,CAAC;YACzC,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAuB,CAAC,OAAO,CAAC,KAAK,IAAI,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC/G,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setChannelName.d.ts.map b/dist/native/channel/setChannelName.d.ts.map index f7a0089041..94a34d4747 100644 --- a/dist/native/channel/setChannelName.d.ts.map +++ b/dist/native/channel/setChannelName.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"setChannelName.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setChannelName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;eAe3C,WAAW;;;;;;;;;;AAZlC,wBA2BE"} \ No newline at end of file +{"version":3,"file":"setChannelName.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setChannelName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;eAc3C,WAAW;;;;;;;;;;AAZlC,wBA2BE"} \ No newline at end of file diff --git a/dist/native/channel/setChannelName.js b/dist/native/channel/setChannelName.js index 8cd3380242..07225971f5 100644 --- a/dist/native/channel/setChannelName.js +++ b/dist/native/channel/setChannelName.js @@ -11,7 +11,7 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "channel ID", - description: "The channel id to set its name", + description: "The channel to set its name", rest: false, check: (i) => "setName" in i, type: structures_1.ArgType.Channel, @@ -26,7 +26,7 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [channel, name]) { - return this.success(!!(await channel.setName(name).catch(ctx.noop))); + return this.success(!!(await channel.setName(name, ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setChannelName.js.map \ No newline at end of file diff --git a/dist/native/channel/setChannelName.js.map b/dist/native/channel/setChannelName.js.map index 91ea40c33d..2ae0f0444f 100644 --- a/dist/native/channel/setChannelName.js.map +++ b/dist/native/channel/setChannelName.js.map @@ -1 +1 @@ -{"version":3,"file":"setChannelName.js","sourceRoot":"","sources":["../../../src/native/channel/setChannelName.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,SAAS,IAAI,CAAC;YACzC,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAuB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACzF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setChannelName.js","sourceRoot":"","sources":["../../../src/native/channel/setChannelName.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,SAAS,IAAI,CAAC;YACzC,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAuB,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACrG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setChannelSlowmode.d.ts.map b/dist/native/channel/setChannelSlowmode.d.ts.map index 267c8436fd..036b557fe2 100644 --- a/dist/native/channel/setChannelSlowmode.d.ts.map +++ b/dist/native/channel/setChannelSlowmode.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"setChannelSlowmode.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setChannelSlowmode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;eAe3C,WAAW;;;;;;;;;AAZlC,wBA0BE"} \ No newline at end of file +{"version":3,"file":"setChannelSlowmode.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setChannelSlowmode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;eAc3C,WAAW;;;;;;;;;AAZlC,wBA0BE"} \ No newline at end of file diff --git a/dist/native/channel/setChannelSlowmode.js b/dist/native/channel/setChannelSlowmode.js index c1dbf5443d..31975b2233 100644 --- a/dist/native/channel/setChannelSlowmode.js +++ b/dist/native/channel/setChannelSlowmode.js @@ -11,7 +11,7 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "channel ID", - description: "The channel id to set its nsfw state", + description: "The channel to set its nsfw state", rest: false, check: (i) => "setRateLimitPerUser" in i, type: structures_1.ArgType.Channel, @@ -25,7 +25,7 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [channel, seconds]) { - return this.success(!!(await channel.setRateLimitPerUser(seconds || 0).catch(ctx.noop))); + return this.success(!!(await channel.setRateLimitPerUser(seconds || 0, ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setChannelSlowmode.js.map \ No newline at end of file diff --git a/dist/native/channel/setChannelSlowmode.js.map b/dist/native/channel/setChannelSlowmode.js.map index edfb218bfa..cbf52b2356 100644 --- a/dist/native/channel/setChannelSlowmode.js.map +++ b/dist/native/channel/setChannelSlowmode.js.map @@ -1 +1 @@ -{"version":3,"file":"setChannelSlowmode.js","sourceRoot":"","sources":["../../../src/native/channel/setChannelSlowmode.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,qBAAqB,IAAI,CAAC;YACrD,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAuB,CAAC,mBAAmB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC7G,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setChannelSlowmode.js","sourceRoot":"","sources":["../../../src/native/channel/setChannelSlowmode.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,qBAAqB,IAAI,CAAC;YACrD,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAuB,CAAC,mBAAmB,CAAC,OAAO,IAAI,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACzH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setChannelTopic.d.ts.map b/dist/native/channel/setChannelTopic.d.ts.map index 3fd01476ec..2e60593079 100644 --- a/dist/native/channel/setChannelTopic.d.ts.map +++ b/dist/native/channel/setChannelTopic.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"setChannelTopic.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setChannelTopic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;eAe3C,WAAW;;;;;;;;;AAZlC,wBA0BE"} \ No newline at end of file +{"version":3,"file":"setChannelTopic.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setChannelTopic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;eAc3C,WAAW;;;;;;;;;AAZlC,wBA0BE"} \ No newline at end of file diff --git a/dist/native/channel/setChannelTopic.js b/dist/native/channel/setChannelTopic.js index f1c196af21..f09e7c996d 100644 --- a/dist/native/channel/setChannelTopic.js +++ b/dist/native/channel/setChannelTopic.js @@ -11,7 +11,7 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "channel ID", - description: "The channel id to set its topic", + description: "The channel to set its topic", rest: false, check: (i) => "setTopic" in i, type: structures_1.ArgType.Channel, @@ -25,7 +25,7 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [channel, topic]) { - return this.success(!!(await channel.setTopic(topic || null).catch(ctx.noop))); + return this.success(!!(await channel.setTopic(topic || null, ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setChannelTopic.js.map \ No newline at end of file diff --git a/dist/native/channel/setChannelTopic.js.map b/dist/native/channel/setChannelTopic.js.map index 1531468fdf..3df85ac2cf 100644 --- a/dist/native/channel/setChannelTopic.js.map +++ b/dist/native/channel/setChannelTopic.js.map @@ -1 +1 @@ -{"version":3,"file":"setChannelTopic.js","sourceRoot":"","sources":["../../../src/native/channel/setChannelTopic.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,UAAU,IAAI,CAAC;YAC1C,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAuB,CAAC,QAAQ,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setChannelTopic.js","sourceRoot":"","sources":["../../../src/native/channel/setChannelTopic.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,UAAU,IAAI,CAAC;YAC1C,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAuB,CAAC,QAAQ,CAAC,KAAK,IAAI,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC/G,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setDefaultForumLayout.js b/dist/native/channel/setDefaultForumLayout.js index f2ea724b75..72643e90a4 100644 --- a/dist/native/channel/setDefaultForumLayout.js +++ b/dist/native/channel/setDefaultForumLayout.js @@ -27,14 +27,14 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason for modifying default layout", + description: "The reason for modifying default layout", rest: false, type: structures_1.ArgType.String } ], output: structures_1.ArgType.Boolean, async execute(ctx, [chan, layout, reason]) { - return this.success(!!(await chan.setDefaultForumLayout(layout, reason || undefined).catch(ctx.noop))); + return this.success(!!(await chan.setDefaultForumLayout(layout, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setDefaultForumLayout.js.map \ No newline at end of file diff --git a/dist/native/channel/setDefaultForumLayout.js.map b/dist/native/channel/setDefaultForumLayout.js.map index beeec623f8..8d226cb8ca 100644 --- a/dist/native/channel/setDefaultForumLayout.js.map +++ b/dist/native/channel/setDefaultForumLayout.js.map @@ -1 +1 @@ -{"version":3,"file":"setDefaultForumLayout.js","sourceRoot":"","sources":["../../../src/native/channel/setDefaultForumLayout.ts"],"names":[],"mappings":";;AAAA,2CAAoF;AACpF,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wCAAwC;IACrD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,UAAU;SAC/D;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,4BAAe;SACxB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAE;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,IAAqB,CAAC,qBAAqB,CAAC,MAAM,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC5H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setDefaultForumLayout.js","sourceRoot":"","sources":["../../../src/native/channel/setDefaultForumLayout.ts"],"names":[],"mappings":";;AAAA,2CAAoF;AACpF,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wCAAwC;IACrD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,UAAU;SAC/D;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,4BAAe;SACxB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAE;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,IAAqB,CAAC,qBAAqB,CAAC,MAAM,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC7H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setDefaultReactionEmoji.js b/dist/native/channel/setDefaultReactionEmoji.js index 34a16dc33f..528c7110e0 100644 --- a/dist/native/channel/setDefaultReactionEmoji.js +++ b/dist/native/channel/setDefaultReactionEmoji.js @@ -25,14 +25,14 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason for modifying default emoji", + description: "The reason for modifying default emoji", rest: false, type: structures_1.ArgType.String } ], output: structures_1.ArgType.Boolean, async execute(ctx, [chan, emoji, reason]) { - return this.success(!!(await chan.setDefaultReactionEmoji((0, parseSingleEmoji_1.parseSingleEmoji)(ctx, emoji), reason || undefined).catch(ctx.noop))); + return this.success(!!(await chan.setDefaultReactionEmoji((0, parseSingleEmoji_1.parseSingleEmoji)(ctx, emoji), reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setDefaultReactionEmoji.js.map \ No newline at end of file diff --git a/dist/native/channel/setDefaultReactionEmoji.js.map b/dist/native/channel/setDefaultReactionEmoji.js.map index aa01ba4ccd..227c0f6494 100644 --- a/dist/native/channel/setDefaultReactionEmoji.js.map +++ b/dist/native/channel/setDefaultReactionEmoji.js.map @@ -1 +1 @@ -{"version":3,"file":"setDefaultReactionEmoji.js","sourceRoot":"","sources":["../../../src/native/channel/setDefaultReactionEmoji.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAC1D,uEAAmE;AAEnE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,IAAI,EAAE,KAAK,EAAE,MAAM,CAAE;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,IAA0B,CAAC,uBAAuB,CAC5E,IAAA,mCAAgB,EAAC,GAAG,EAAE,KAAK,CAAyB,EACpD,MAAM,IAAI,SAAS,CACtB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACvB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setDefaultReactionEmoji.js","sourceRoot":"","sources":["../../../src/native/channel/setDefaultReactionEmoji.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAC1D,uEAAmE;AAEnE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,IAAI,EAAE,KAAK,EAAE,MAAM,CAAE;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,IAA0B,CAAC,uBAAuB,CAC5E,IAAA,mCAAgB,EAAC,GAAG,EAAE,KAAK,CAAyB,EACpD,MAAM,IAAI,GAAG,CAAC,MAAM,CACvB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACvB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setDefaultSortOrder.js b/dist/native/channel/setDefaultSortOrder.js index 2f068cc882..7b7b703f16 100644 --- a/dist/native/channel/setDefaultSortOrder.js +++ b/dist/native/channel/setDefaultSortOrder.js @@ -26,14 +26,14 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason for modifying default sort order", + description: "The reason for modifying default sort order", rest: false, type: structures_1.ArgType.String } ], output: structures_1.ArgType.Boolean, async execute(ctx, [chan, sortOrder, reason]) { - return this.success(!!(await chan.setDefaultSortOrder(sortOrder || null, reason || undefined).catch(ctx.noop))); + return this.success(!!(await chan.setDefaultSortOrder(sortOrder || null, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setDefaultSortOrder.js.map \ No newline at end of file diff --git a/dist/native/channel/setDefaultSortOrder.js.map b/dist/native/channel/setDefaultSortOrder.js.map index 9a5c88d92b..53e32653a5 100644 --- a/dist/native/channel/setDefaultSortOrder.js.map +++ b/dist/native/channel/setDefaultSortOrder.js.map @@ -1 +1 @@ -{"version":3,"file":"setDefaultSortOrder.js","sourceRoot":"","sources":["../../../src/native/channel/setDefaultSortOrder.ts"],"names":[],"mappings":";;AAAA,2CAA0E;AAC1E,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4CAA4C;IACzD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kDAAkD;YAC/D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,0BAAa;SACtB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAE;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,IAA0B,CAAC,mBAAmB,CAAC,SAAS,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC1I,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setDefaultSortOrder.js","sourceRoot":"","sources":["../../../src/native/channel/setDefaultSortOrder.ts"],"names":[],"mappings":";;AAAA,2CAA0E;AAC1E,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4CAA4C;IACzD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kDAAkD;YAC/D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,0BAAa;SACtB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAE;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,IAA0B,CAAC,mBAAmB,CAAC,SAAS,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC3I,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setDefaultThreadArchiveDuration.js b/dist/native/channel/setDefaultThreadArchiveDuration.js index f6ed0904e9..7b11f3507e 100644 --- a/dist/native/channel/setDefaultThreadArchiveDuration.js +++ b/dist/native/channel/setDefaultThreadArchiveDuration.js @@ -31,13 +31,13 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason for modifying archive duration", + description: "The reason for modifying archive duration", rest: false, type: structures_1.ArgType.String } ], async execute(ctx, [ch, dur, reason]) { - return this.success(!!(await ch.setDefaultAutoArchiveDuration(dur, reason || undefined).catch(ctx.noop))); + return this.success(!!(await ch.setDefaultAutoArchiveDuration(dur, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setDefaultThreadArchiveDuration.js.map \ No newline at end of file diff --git a/dist/native/channel/setDefaultThreadArchiveDuration.js.map b/dist/native/channel/setDefaultThreadArchiveDuration.js.map index 7401293083..46bfc4d3d3 100644 --- a/dist/native/channel/setDefaultThreadArchiveDuration.js.map +++ b/dist/native/channel/setDefaultThreadArchiveDuration.js.map @@ -1 +1 @@ -{"version":3,"file":"setDefaultThreadArchiveDuration.js","sourceRoot":"","sources":["../../../src/native/channel/setDefaultThreadArchiveDuration.ts"],"names":[],"mappings":";;AAAA,2CAAsF;AACtF,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kCAAkC;IACxC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uDAAuD;IACpE,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,EAAE;QACL,sCAAsC;KACzC;IACD,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,sCAAyB;YAC/B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,EAAE,EAAE,GAAG,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,EAAwB,CAAC,6BAA6B,CAAC,GAAG,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACpI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setDefaultThreadArchiveDuration.js","sourceRoot":"","sources":["../../../src/native/channel/setDefaultThreadArchiveDuration.ts"],"names":[],"mappings":";;AAAA,2CAAsF;AACtF,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kCAAkC;IACxC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uDAAuD;IACpE,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,EAAE;QACL,sCAAsC;KACzC;IACD,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,sCAAyB;YAC/B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2CAA2C;YACxD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,EAAE,EAAE,GAAG,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,EAAwB,CAAC,6BAA6B,CAAC,GAAG,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACrI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setDefaultThreadSlowmode.d.ts.map b/dist/native/channel/setDefaultThreadSlowmode.d.ts.map index 5b4b2f1c03..17e15066aa 100644 --- a/dist/native/channel/setDefaultThreadSlowmode.d.ts.map +++ b/dist/native/channel/setDefaultThreadSlowmode.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"setDefaultThreadSlowmode.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setDefaultThreadSlowmode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoC,MAAM,YAAY,CAAA;AAC1E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;eAenC,WAAW;;;;;;;;;;;;;AAblC,wBAiCE"} \ No newline at end of file +{"version":3,"file":"setDefaultThreadSlowmode.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setDefaultThreadSlowmode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqB,MAAM,YAAY,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;eAenC,WAAW;;;;;;;;;;;;;AAblC,wBAiCE"} \ No newline at end of file diff --git a/dist/native/channel/setDefaultThreadSlowmode.js b/dist/native/channel/setDefaultThreadSlowmode.js index 08127b8512..2fbd552273 100644 --- a/dist/native/channel/setDefaultThreadSlowmode.js +++ b/dist/native/channel/setDefaultThreadSlowmode.js @@ -25,14 +25,14 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason for modifying default slowmode", + description: "The reason for modifying default slowmode", rest: false, type: structures_1.ArgType.String } ], output: structures_1.ArgType.Boolean, async execute(ctx, [chan, seconds, reason]) { - return this.success(!!(await chan.setDefaultThreadRateLimitPerUser(seconds, reason || undefined).catch(ctx.noop))); + return this.success(!!(await chan.setDefaultThreadRateLimitPerUser(seconds, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setDefaultThreadSlowmode.js.map \ No newline at end of file diff --git a/dist/native/channel/setDefaultThreadSlowmode.js.map b/dist/native/channel/setDefaultThreadSlowmode.js.map index ea94fbdeae..cb15369de9 100644 --- a/dist/native/channel/setDefaultThreadSlowmode.js.map +++ b/dist/native/channel/setDefaultThreadSlowmode.js.map @@ -1 +1 @@ -{"version":3,"file":"setDefaultThreadSlowmode.js","sourceRoot":"","sources":["../../../src/native/channel/setDefaultThreadSlowmode.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,2BAA2B;IACjC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,IAAI,EAAE,OAAO,EAAE,MAAM,CAAE;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,IAA0B,CAAC,gCAAgC,CAAC,OAAO,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC7I,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setDefaultThreadSlowmode.js","sourceRoot":"","sources":["../../../src/native/channel/setDefaultThreadSlowmode.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,2BAA2B;IACjC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2CAA2C;YACxD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,IAAI,EAAE,OAAO,EAAE,MAAM,CAAE;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,IAA0B,CAAC,gCAAgC,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC9I,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setPostTags.d.ts b/dist/native/channel/setPostTags.d.ts new file mode 100644 index 0000000000..800ceac774 --- /dev/null +++ b/dist/native/channel/setPostTags.d.ts @@ -0,0 +1,22 @@ +import { BaseChannel } from "discord.js"; +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + rest: false; + required: true; + type: ArgType.Channel; + check: (i: BaseChannel) => boolean; + description: string; +}, { + name: string; + description: string; + rest: false; + type: ArgType.String; +}, { + name: string; + description: string; + rest: true; + type: ArgType.String; +}], true>; +export default _default; +//# sourceMappingURL=setPostTags.d.ts.map \ No newline at end of file diff --git a/dist/native/channel/setPostTags.d.ts.map b/dist/native/channel/setPostTags.d.ts.map new file mode 100644 index 0000000000..1ddf6d972c --- /dev/null +++ b/dist/native/channel/setPostTags.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"setPostTags.d.ts","sourceRoot":"","sources":["../../../src/native/channel/setPostTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;eAc3C,WAAW;;;;;;;;;;;;;AAZlC,wBAiCE"} \ No newline at end of file diff --git a/dist/native/channel/setPostTags.js b/dist/native/channel/setPostTags.js new file mode 100644 index 0000000000..1d47a94223 --- /dev/null +++ b/dist/native/channel/setPostTags.js @@ -0,0 +1,38 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$setPostTags", + version: "2.5.0", + description: "Sets tags to a forum post, returns bool", + unwrap: true, + output: structures_1.ArgType.Boolean, + args: [ + { + name: "channel ID", + rest: false, + required: true, + type: structures_1.ArgType.Channel, + check: (i) => i.isThread(), + description: "The post to set tags on", + }, + { + name: "reason", + description: "The reason for setting post tags", + rest: false, + type: structures_1.ArgType.String, + }, + { + name: "tags", + description: "The tags for the post", + rest: true, + type: structures_1.ArgType.String, + } + ], + brackets: true, + async execute(ctx, [channel, reason, tags]) { + const post = channel; + return this.success(!!(await post.setAppliedTags(tags, reason || ctx.reason).catch(ctx.noop))); + }, +}); +//# sourceMappingURL=setPostTags.js.map \ No newline at end of file diff --git a/dist/native/channel/setPostTags.js.map b/dist/native/channel/setPostTags.js.map new file mode 100644 index 0000000000..f24cd81e5b --- /dev/null +++ b/dist/native/channel/setPostTags.js.map @@ -0,0 +1 @@ +{"version":3,"file":"setPostTags.js","sourceRoot":"","sources":["../../../src/native/channel/setPostTags.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;YACvC,WAAW,EAAE,yBAAyB;SACzC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAE;QACxC,MAAM,IAAI,GAAG,OAAwB,CAAA;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAClG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setThreadArchiveDuration.js b/dist/native/channel/setThreadArchiveDuration.js index 4a1411f567..9912c9d1a9 100644 --- a/dist/native/channel/setThreadArchiveDuration.js +++ b/dist/native/channel/setThreadArchiveDuration.js @@ -31,13 +31,13 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason for modifying archive duration", + description: "The reason for modifying archive duration", rest: false, type: structures_1.ArgType.String } ], async execute(ctx, [ch, dur, reason]) { - return this.success(!!(await ch.setAutoArchiveDuration(dur, reason || undefined).catch(ctx.noop))); + return this.success(!!(await ch.setAutoArchiveDuration(dur, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setThreadArchiveDuration.js.map \ No newline at end of file diff --git a/dist/native/channel/setThreadArchiveDuration.js.map b/dist/native/channel/setThreadArchiveDuration.js.map index 119b89f38f..25a527bea1 100644 --- a/dist/native/channel/setThreadArchiveDuration.js.map +++ b/dist/native/channel/setThreadArchiveDuration.js.map @@ -1 +1 @@ -{"version":3,"file":"setThreadArchiveDuration.js","sourceRoot":"","sources":["../../../src/native/channel/setThreadArchiveDuration.ts"],"names":[],"mappings":";;AAAA,2CAAkF;AAClF,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,2BAA2B;IACjC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,EAAE;QACL,+BAA+B;KAClC;IACD,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;YACvC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,sCAAyB;YAC/B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,EAAE,EAAE,GAAG,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,EAAoB,CAAC,sBAAsB,CAAC,GAAG,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACzH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setThreadArchiveDuration.js","sourceRoot":"","sources":["../../../src/native/channel/setThreadArchiveDuration.ts"],"names":[],"mappings":";;AAAA,2CAAkF;AAClF,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,2BAA2B;IACjC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,EAAE;QACL,+BAA+B;KAClC;IACD,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;YACvC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,sCAAyB;YAC/B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2CAA2C;YACxD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,EAAE,EAAE,GAAG,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,EAAoB,CAAC,sBAAsB,CAAC,GAAG,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC1H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setVoiceBitrate.js b/dist/native/channel/setVoiceBitrate.js index 3a33f8fe24..79b4ccee9f 100644 --- a/dist/native/channel/setVoiceBitrate.js +++ b/dist/native/channel/setVoiceBitrate.js @@ -25,7 +25,7 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason to change the bitrate", + description: "The reason to change the bitrate", rest: false, required: false, type: structures_1.ArgType.String @@ -33,7 +33,7 @@ exports.default = new structures_1.NativeFunction({ ], unwrap: true, async execute(ctx, [channel, bitrate, reason]) { - return this.success(!!(await channel.setBitrate(bitrate, reason || undefined).catch(ctx.noop))); + return this.success(!!(await channel.setBitrate(bitrate, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setVoiceBitrate.js.map \ No newline at end of file diff --git a/dist/native/channel/setVoiceBitrate.js.map b/dist/native/channel/setVoiceBitrate.js.map index 503896e28f..59fbac3044 100644 --- a/dist/native/channel/setVoiceBitrate.js.map +++ b/dist/native/channel/setVoiceBitrate.js.map @@ -1 +1 @@ -{"version":3,"file":"setVoiceBitrate.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceBitrate.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAG1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2DAA2D;IACxE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,iBAAiB;SACjC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAwB,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACrH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setVoiceBitrate.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceBitrate.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAG1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2DAA2D;IACxE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,iBAAiB;SACjC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAwB,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACtH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setVoiceDeaf.js b/dist/native/channel/setVoiceDeaf.js index 4118709c62..318ba6e7e0 100644 --- a/dist/native/channel/setVoiceDeaf.js +++ b/dist/native/channel/setVoiceDeaf.js @@ -28,7 +28,7 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason to deafen this user", + description: "The reason to deafen this user", rest: false, required: false, type: structures_1.ArgType.String @@ -36,7 +36,7 @@ exports.default = new structures_1.NativeFunction({ ], unwrap: true, async execute(ctx, [, member, reason]) { - return this.success(!!(await member.voice.setDeaf(true, reason || undefined).catch(ctx.noop))); + return this.success(!!(await member.voice.setDeaf(true, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setVoiceDeaf.js.map \ No newline at end of file diff --git a/dist/native/channel/setVoiceDeaf.js.map b/dist/native/channel/setVoiceDeaf.js.map index 63040e0b50..a5831910cd 100644 --- a/dist/native/channel/setVoiceDeaf.js.map +++ b/dist/native/channel/setVoiceDeaf.js.map @@ -1 +1 @@ -{"version":3,"file":"setVoiceDeaf.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceDeaf.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,YAAY;KACf;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,oBAAoB;SACpC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAClG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setVoiceDeaf.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceDeaf.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,YAAY;KACf;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,oBAAoB;SACpC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setVoiceMute.js b/dist/native/channel/setVoiceMute.js index f88fd0391f..85bfada800 100644 --- a/dist/native/channel/setVoiceMute.js +++ b/dist/native/channel/setVoiceMute.js @@ -28,7 +28,7 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason to mute this user", + description: "The reason to mute this user", rest: false, required: false, type: structures_1.ArgType.String @@ -36,7 +36,7 @@ exports.default = new structures_1.NativeFunction({ ], unwrap: true, async execute(ctx, [, member, reason]) { - return this.success(!!(await member.voice.setMute(true, reason || undefined).catch(ctx.noop))); + return this.success(!!(await member.voice.setMute(true, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setVoiceMute.js.map \ No newline at end of file diff --git a/dist/native/channel/setVoiceMute.js.map b/dist/native/channel/setVoiceMute.js.map index e15468422c..3751d780ae 100644 --- a/dist/native/channel/setVoiceMute.js.map +++ b/dist/native/channel/setVoiceMute.js.map @@ -1 +1 @@ -{"version":3,"file":"setVoiceMute.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceMute.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,YAAY;KACf;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,kBAAkB;SAClC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAClG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setVoiceMute.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceMute.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,YAAY;KACf;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,kBAAkB;SAClC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setVoiceRegion.js b/dist/native/channel/setVoiceRegion.js index c40b7e49f2..d7b11c62c9 100644 --- a/dist/native/channel/setVoiceRegion.js +++ b/dist/native/channel/setVoiceRegion.js @@ -44,7 +44,7 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason to set the voice region", + description: "The reason to set the voice region", rest: false, required: false, type: structures_1.ArgType.String @@ -52,7 +52,7 @@ exports.default = new structures_1.NativeFunction({ ], output: structures_1.ArgType.Boolean, async execute(ctx, [voice, region, reason]) { - return this.success(!!(await voice.setRTCRegion(region || null, reason || undefined).catch(ctx.noop))); + return this.success(!!(await voice.setRTCRegion(region || null, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setVoiceRegion.js.map \ No newline at end of file diff --git a/dist/native/channel/setVoiceRegion.js.map b/dist/native/channel/setVoiceRegion.js.map index 4818be132c..fd42fd45ed 100644 --- a/dist/native/channel/setVoiceRegion.js.map +++ b/dist/native/channel/setVoiceRegion.js.map @@ -1 +1 @@ -{"version":3,"file":"setVoiceRegion.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceRegion.ts"],"names":[],"mappings":";;;AACA,iDAA0D;AAE1D,IAAY,eAeX;AAfD,WAAY,eAAe;IACvB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,0CAAuB,CAAA;IACvB,oCAAiB,CAAA;IACjB,0CAAuB,CAAA;IACvB,8CAA6B,CAAA;IAC7B,8CAA2B,CAAA;IAC3B,oCAAiB,CAAA;IACjB,4CAA2B,CAAA;IAC3B,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;AACzB,CAAC,EAfW,eAAe,+BAAf,eAAe,QAe1B;AAED,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,kDAAkD;IAC/D,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yDAAyD;YACtE,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,eAAe;SACxB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,KAAsB,CAAC,YAAY,CAAC,MAAM,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC5H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setVoiceRegion.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceRegion.ts"],"names":[],"mappings":";;;AACA,iDAA0D;AAE1D,IAAY,eAeX;AAfD,WAAY,eAAe;IACvB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,0CAAuB,CAAA;IACvB,oCAAiB,CAAA;IACjB,0CAAuB,CAAA;IACvB,8CAA6B,CAAA;IAC7B,8CAA2B,CAAA;IAC3B,oCAAiB,CAAA;IACjB,4CAA2B,CAAA;IAC3B,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;AACzB,CAAC,EAfW,eAAe,+BAAf,eAAe,QAe1B;AAED,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,kDAAkD;IAC/D,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yDAAyD;YACtE,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,eAAe;SACxB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,KAAsB,CAAC,YAAY,CAAC,MAAM,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC7H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setVoiceUndeaf.js b/dist/native/channel/setVoiceUndeaf.js index dc65748231..8751ab7168 100644 --- a/dist/native/channel/setVoiceUndeaf.js +++ b/dist/native/channel/setVoiceUndeaf.js @@ -28,7 +28,7 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason to undeafen this user", + description: "The reason to undeafen this user", rest: false, required: false, type: structures_1.ArgType.String @@ -36,7 +36,7 @@ exports.default = new structures_1.NativeFunction({ ], unwrap: true, async execute(ctx, [, member, reason]) { - return this.success(!!(await member.voice.setDeaf(false, reason || undefined).catch(ctx.noop))); + return this.success(!!(await member.voice.setDeaf(false, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setVoiceUndeaf.js.map \ No newline at end of file diff --git a/dist/native/channel/setVoiceUndeaf.js.map b/dist/native/channel/setVoiceUndeaf.js.map index 1a1b762d34..ea9c4e3092 100644 --- a/dist/native/channel/setVoiceUndeaf.js.map +++ b/dist/native/channel/setVoiceUndeaf.js.map @@ -1 +1 @@ -{"version":3,"file":"setVoiceUndeaf.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceUndeaf.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,cAAc;KACjB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,sBAAsB;SACtC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setVoiceUndeaf.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceUndeaf.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,cAAc;KACjB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,sBAAsB;SACtC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACpG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setVoiceUnmute.js b/dist/native/channel/setVoiceUnmute.js index 0cfbb446b1..08c98094e6 100644 --- a/dist/native/channel/setVoiceUnmute.js +++ b/dist/native/channel/setVoiceUnmute.js @@ -28,7 +28,7 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason to unmute this user", + description: "The reason to unmute this user", rest: false, required: false, type: structures_1.ArgType.String @@ -36,7 +36,7 @@ exports.default = new structures_1.NativeFunction({ ], unwrap: true, async execute(ctx, [, member, reason]) { - return this.success(!!(await member.voice.setMute(false, reason || undefined).catch(ctx.noop))); + return this.success(!!(await member.voice.setMute(false, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setVoiceUnmute.js.map \ No newline at end of file diff --git a/dist/native/channel/setVoiceUnmute.js.map b/dist/native/channel/setVoiceUnmute.js.map index 74a03ac422..74da204e59 100644 --- a/dist/native/channel/setVoiceUnmute.js.map +++ b/dist/native/channel/setVoiceUnmute.js.map @@ -1 +1 @@ -{"version":3,"file":"setVoiceUnmute.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceUnmute.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,cAAc;KACjB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,oBAAoB;SACpC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setVoiceUnmute.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceUnmute.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,cAAc;KACjB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,oBAAoB;SACpC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACpG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setVoiceUserLimit.js b/dist/native/channel/setVoiceUserLimit.js index ac23773fe6..f47c1ff169 100644 --- a/dist/native/channel/setVoiceUserLimit.js +++ b/dist/native/channel/setVoiceUserLimit.js @@ -25,7 +25,7 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason to change the user limit", + description: "The reason to change the user limit", rest: false, required: false, type: structures_1.ArgType.String @@ -33,7 +33,7 @@ exports.default = new structures_1.NativeFunction({ ], unwrap: true, async execute(ctx, [channel, limit, reason]) { - return this.success(!!(await channel.setUserLimit(limit, reason || undefined).catch(ctx.noop))); + return this.success(!!(await channel.setUserLimit(limit, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setVoiceUserLimit.js.map \ No newline at end of file diff --git a/dist/native/channel/setVoiceUserLimit.js.map b/dist/native/channel/setVoiceUserLimit.js.map index cbeca1f9dd..39fdeecb71 100644 --- a/dist/native/channel/setVoiceUserLimit.js.map +++ b/dist/native/channel/setVoiceUserLimit.js.map @@ -1 +1 @@ -{"version":3,"file":"setVoiceUserLimit.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceUserLimit.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAG1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gEAAgE;IAC7E,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,oBAAoB;SACpC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAE;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAwB,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACrH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setVoiceUserLimit.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceUserLimit.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAG1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gEAAgE;IAC7E,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,oBAAoB;SACpC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAE;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAwB,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACtH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/setVoiceVideoQuality.js b/dist/native/channel/setVoiceVideoQuality.js index 4f0b93f050..ae5dfb6585 100644 --- a/dist/native/channel/setVoiceVideoQuality.js +++ b/dist/native/channel/setVoiceVideoQuality.js @@ -27,7 +27,7 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason to change the video quality", + description: "The reason to change the video quality", rest: false, required: false, type: structures_1.ArgType.String @@ -35,7 +35,7 @@ exports.default = new structures_1.NativeFunction({ ], unwrap: true, async execute(ctx, [channel, quality, reason]) { - return this.success(!!(await channel.setVideoQualityMode(quality, reason || undefined).catch(ctx.noop))); + return this.success(!!(await channel.setVideoQualityMode(quality, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=setVoiceVideoQuality.js.map \ No newline at end of file diff --git a/dist/native/channel/setVoiceVideoQuality.js.map b/dist/native/channel/setVoiceVideoQuality.js.map index ffdec0f6a8..803ba44041 100644 --- a/dist/native/channel/setVoiceVideoQuality.js.map +++ b/dist/native/channel/setVoiceVideoQuality.js.map @@ -1 +1 @@ -{"version":3,"file":"setVoiceVideoQuality.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceVideoQuality.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAC1D,2CAAwE;AAExE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yDAAyD;IACtE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,6BAAgB;YACtB,WAAW,EAAE,uBAAuB;SACvC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAwB,CAAC,mBAAmB,CAAC,OAAO,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC9H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setVoiceVideoQuality.js","sourceRoot":"","sources":["../../../src/native/channel/setVoiceVideoQuality.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAC1D,2CAAwE;AAExE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yDAAyD;IACtE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,6BAAgB;YACtB,WAAW,EAAE,uBAAuB;SACvC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAO,OAAwB,CAAC,mBAAmB,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC/H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/unarchiveThread.js b/dist/native/channel/unarchiveThread.js index 8c3188f85c..593a40c369 100644 --- a/dist/native/channel/unarchiveThread.js +++ b/dist/native/channel/unarchiveThread.js @@ -29,7 +29,7 @@ exports.default = new structures_1.NativeFunction({ const thread = (channel ?? ctx.channel); if (!thread?.isThread()) return this.success(false); - const success = await thread.setArchived(false, reason || undefined).catch(ctx.noop); + const success = await thread.setArchived(false, reason || ctx.reason).catch(ctx.noop); return this.success(!!success); }, }); diff --git a/dist/native/channel/unarchiveThread.js.map b/dist/native/channel/unarchiveThread.js.map index efa0d7b6d8..b722281991 100644 --- a/dist/native/channel/unarchiveThread.js.map +++ b/dist/native/channel/unarchiveThread.js.map @@ -1 +1 @@ -{"version":3,"file":"unarchiveThread.js","sourceRoot":"","sources":["../../../src/native/channel/unarchiveThread.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,gBAAgB,CAAC;IAC3B,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,MAAM,MAAM,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAkB,CAAA;QACxD,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAEnD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEpF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"unarchiveThread.js","sourceRoot":"","sources":["../../../src/native/channel/unarchiveThread.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,gBAAgB,CAAC;IAC3B,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,MAAM,MAAM,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAkB,CAAA;QACxD,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAEnD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAErF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/channel/unlockThread.js b/dist/native/channel/unlockThread.js index c606d7f66a..4294a5e143 100644 --- a/dist/native/channel/unlockThread.js +++ b/dist/native/channel/unlockThread.js @@ -29,7 +29,7 @@ exports.default = new structures_1.NativeFunction({ const thread = (channel ?? ctx.channel); if (!thread?.isThread()) return this.success(false); - const success = await thread.setLocked(false, reason || undefined).catch(ctx.noop); + const success = await thread.setLocked(false, reason || ctx.reason).catch(ctx.noop); return this.success(!!success); }, }); diff --git a/dist/native/channel/unlockThread.js.map b/dist/native/channel/unlockThread.js.map index 7a68f044bd..c5cb750b09 100644 --- a/dist/native/channel/unlockThread.js.map +++ b/dist/native/channel/unlockThread.js.map @@ -1 +1 @@ -{"version":3,"file":"unlockThread.js","sourceRoot":"","sources":["../../../src/native/channel/unlockThread.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,MAAM,MAAM,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAkB,CAAA;QACxD,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAEnD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAElF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"unlockThread.js","sourceRoot":"","sources":["../../../src/native/channel/unlockThread.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;SAC1C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,MAAM,MAAM,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAkB,CAAA;QACxD,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAEnD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEnF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/component/editButton.js.map b/dist/native/component/editButton.js.map index 04b67a05bc..c82cee2e8c 100644 --- a/dist/native/component/editButton.js.map +++ b/dist/native/component/editButton.js.map @@ -1 +1 @@ -{"version":3,"file":"editButton.js","sourceRoot":"","sources":["../../../src/native/component/editButton.ts"],"names":[],"mappings":";;AAAA,2CAA2F;AAC3F,iDAAkE;AAClE,+CAAyD;AAEzD,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0BAA0B;IACvC,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,wBAAW;YACjB,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,KAAK;SACd;QACD;YACI,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,WAAW,EAAE,2BAA2B;SAC3C;QACD;YACI,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,WAAW,EAAE,+BAA+B;SAC/C;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,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AC,CAAA;aACzC,IAAI,KAAK,KAAK,wBAAW,CAAC,OAAO;YAAE,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;;YACnD,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAA;QAE5B,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"editButton.js","sourceRoot":"","sources":["../../../src/native/component/editButton.ts"],"names":[],"mappings":";;AAAA,2CAA2F;AAC3F,iDAAkE;AAClE,+CAAyD;AAEzD,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0BAA0B;IACvC,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,wBAAW;YACjB,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,KAAK;SACd;QACD;YACI,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,WAAW,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KAAK;YAAE,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;QAC9B,IAAI,OAAO,QAAQ,KAAK,SAAS;YAAE,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;QAE5D,IAAI,KAAK,KAAK,wBAAW,CAAC,IAAI;YAAE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;aACzC,IAAI,KAAK,KAAK,wBAAW,CAAC,OAAO;YAAE,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;;YACnD,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAA;QAExB,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/component/editButtonOf.js.map b/dist/native/component/editButtonOf.js.map index 582084fb96..5b02962bd3 100644 --- a/dist/native/component/editButtonOf.js.map +++ b/dist/native/component/editButtonOf.js.map @@ -1 +1 @@ -{"version":3,"file":"editButtonOf.js","sourceRoot":"","sources":["../../../src/native/component/editButtonOf.ts"],"names":[],"mappings":";;AAAA,2CAA+G;AAC/G,iDAAkE;AAClE,+CAAyD;AAEzD,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,WAAW;SAC5B;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EA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AAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACpG,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"editButtonOf.js","sourceRoot":"","sources":["../../../src/native/component/editButtonOf.ts"],"names":[],"mappings":";;AAAA,2CAA+G;AAC/G,iDAAkE;AAClE,+CAAyD;AAEzD,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,WAAW;SAC5B;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,wBAAW;YACjB,IAAI,EAAE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KAAK,GAAG,IAAA,yBAAkB,EAAC,wBAAW,EAAE,KAAK,CAAC,CAAA;QAE9C,aAAa;QACb,GAAG,CAAC,QAAQ,CAAC,KAAK,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;aAChC,QAAQ,CAAC,KAAK,CAAC,CAAA;QAEpB,IAAI,KAAK;YAAE,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;QAC9B,IAAI,OAAO,QAAQ,KAAK,SAAS;YAAE,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;QAE5D,IAAI,KAAK,KAAK,wBAAW,CAAC,IAAI;YAAE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;aACzC,IAAI,KAAK,KAAK,wBAAW,CAAC,OAAO;YAAE,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;;YACnD,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAA;QAExB,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,UAA+C,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACpG,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/embed/footer.js b/dist/native/embed/footer.js index ae0e873650..88c0cfe13d 100644 --- a/dist/native/embed/footer.js +++ b/dist/native/embed/footer.js @@ -15,8 +15,8 @@ exports.default = new structures_1.NativeFunction({ rest: false, }, { - name: "url", - description: "The url for the embed footer", + name: "icon", + description: "The icon url for the embed footer", type: structures_1.ArgType.String, rest: false, }, diff --git a/dist/native/embed/footer.js.map b/dist/native/embed/footer.js.map index 78df86f6e3..04424709ba 100644 --- a/dist/native/embed/footer.js.map +++ b/dist/native/embed/footer.js.map @@ -1 +1 @@ -{"version":3,"file":"footer.js","sourceRoot":"","sources":["../../../src/native/embed/footer.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sBAAsB;IACnC,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,+BAA+B;YAC5C,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK;SACd;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK;SACd;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC;QAC/B,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtC,IAAI;YACJ,OAAO,EAAE,OAAO,IAAI,SAAS;SAChC,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"footer.js","sourceRoot":"","sources":["../../../src/native/embed/footer.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sBAAsB;IACnC,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,+BAA+B;YAC5C,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK;SACd;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK;SACd;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC;QAC/B,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtC,IAAI;YACJ,OAAO,EAAE,OAAO,IAAI,SAAS;SAChC,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/emoji/addApplicationEmoji.d.ts.map b/dist/native/emoji/addApplicationEmoji.d.ts.map index 5f176aecd4..5ba5cf47cf 100644 --- a/dist/native/emoji/addApplicationEmoji.d.ts.map +++ b/dist/native/emoji/addApplicationEmoji.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"addApplicationEmoji.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/addApplicationEmoji.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;AAEvE,wBAsCE"} \ No newline at end of file +{"version":3,"file":"addApplicationEmoji.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/addApplicationEmoji.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;AAElE,wBAsCE"} \ No newline at end of file diff --git a/dist/native/emoji/addApplicationEmoji.js.map b/dist/native/emoji/addApplicationEmoji.js.map index 686168a837..1d7fc7f9d6 100644 --- a/dist/native/emoji/addApplicationEmoji.js.map +++ b/dist/native/emoji/addApplicationEmoji.js.map @@ -1 +1 @@ -{"version":3,"file":"addApplicationEmoji.js","sourceRoot":"","sources":["../../../src/native/emoji/addApplicationEmoji.ts"],"names":[],"mappings":";;AACA,iDAAuE;AAEvE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,gBAAgB;IAChC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,CAAC;QAC1C,aAAa,KAAK,IAAI,CAAA;QACtB,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;YACrD,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,IAAI;SACnB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAElB,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACtE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"addApplicationEmoji.js","sourceRoot":"","sources":["../../../src/native/emoji/addApplicationEmoji.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,gBAAgB;IAChC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,CAAC;QAC1C,aAAa,KAAK,IAAI,CAAA;QACtB,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;YACrD,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,IAAI;SACnB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAElB,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACtE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/emoji/addEmoji.d.ts.map b/dist/native/emoji/addEmoji.d.ts.map index deedf981cb..2fdd37aab1 100644 --- a/dist/native/emoji/addEmoji.d.ts.map +++ b/dist/native/emoji/addEmoji.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"addEmoji.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/addEmoji.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAsDE"} \ No newline at end of file +{"version":3,"file":"addEmoji.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/addEmoji.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAuDE"} \ No newline at end of file diff --git a/dist/native/emoji/addEmoji.js b/dist/native/emoji/addEmoji.js index 3668f48f81..1c93370ae3 100644 --- a/dist/native/emoji/addEmoji.js +++ b/dist/native/emoji/addEmoji.js @@ -50,6 +50,7 @@ exports.default = new structures_1.NativeFunction({ attachment: icon, name, roles: roles || undefined, + reason: ctx.reason }) .catch(ctx.noop); return this.success(returnEmojiID && em ? em.id : undefined); diff --git a/dist/native/emoji/addEmoji.js.map b/dist/native/emoji/addEmoji.js.map index 6154d3eeb6..b85e2a7e48 100644 --- a/dist/native/emoji/addEmoji.js.map +++ b/dist/native/emoji/addEmoji.js.map @@ -1 +1 @@ -{"version":3,"file":"addEmoji.js","sourceRoot":"","sources":["../../../src/native/emoji/addEmoji.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO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AE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAChE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"addEmoji.js","sourceRoot":"","sources":["../../../src/native/emoji/addEmoji.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,UAAU;IAC1B,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;SACb;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC;QACxD,MAAM,EAAE,GAAG,MAAM,KAAK,CAAC,MAAM;aACxB,MAAM,CAAC;YACJ,UAAU,EAAE,IAAI;YAChB,IAAI;YACJ,KAAK,EAAE,KAAK,IAAI,SAAS;YACzB,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEpB,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAChE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/emoji/deleteEmojiMessageReactions.d.ts.map b/dist/native/emoji/deleteEmojiMessageReactions.d.ts.map index 7a6dd8041f..3f8740a112 100644 --- a/dist/native/emoji/deleteEmojiMessageReactions.d.ts.map +++ b/dist/native/emoji/deleteEmojiMessageReactions.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"deleteEmojiMessageReactions.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/deleteEmojiMessageReactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAiB3C,gBAAgB;;;;;;;;;;;;;;;;AAdvC,wBA2CE"} \ No newline at end of file +{"version":3,"file":"deleteEmojiMessageReactions.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/deleteEmojiMessageReactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,gBAAgB;;;;;;;;;;;;;;;;AAdvC,wBA2CE"} \ No newline at end of file diff --git a/dist/native/emoji/deleteEmojiMessageReactions.js.map b/dist/native/emoji/deleteEmojiMessageReactions.js.map index d3fb185d59..ba76722575 100644 --- a/dist/native/emoji/deleteEmojiMessageReactions.js.map +++ b/dist/native/emoji/deleteEmojiMessageReactions.js.map @@ -1 +1 @@ -{"version":3,"file":"deleteEmojiMessageReactions.js","sourceRoot":"","sources":["../../../src/native/emoji/deleteEmojiMessageReactions.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,8BAA8B;IACpC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oGAAoG;IACjH,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAmB,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;SAClD;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,4CAA4C;YACzD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,QAAQ;SACzB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,AAAD,EAAG,MAAM,CAAC;QAC3B,IAAI,KAAK,GAAG,CAAC,CAAA;QAEb,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;YACxB,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YACpD,IAAI,OAAO;gBAAE,KAAK,EAAE,CAAA;SACvB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"deleteEmojiMessageReactions.js","sourceRoot":"","sources":["../../../src/native/emoji/deleteEmojiMessageReactions.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,8BAA8B;IACpC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oGAAoG;IACjH,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAmB,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;SAClD;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,4CAA4C;YACzD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,QAAQ;SACzB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,AAAD,EAAG,MAAM,CAAC;QAC3B,IAAI,KAAK,GAAG,CAAC,CAAA;QAEb,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;YACxB,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YACpD,IAAI,OAAO;gBAAE,KAAK,EAAE,CAAA;SACvB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/emoji/deleteEmojis.d.ts.map b/dist/native/emoji/deleteEmojis.d.ts.map index 99380573c3..efad4a262c 100644 --- a/dist/native/emoji/deleteEmojis.d.ts.map +++ b/dist/native/emoji/deleteEmojis.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"deleteEmojis.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/deleteEmojis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;AAGlE,wBAkCE"} \ No newline at end of file +{"version":3,"file":"deleteEmojis.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/deleteEmojis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;AAElE,wBAkCE"} \ No newline at end of file diff --git a/dist/native/emoji/deleteEmojis.js b/dist/native/emoji/deleteEmojis.js index c87f23c587..de3d3cfd86 100644 --- a/dist/native/emoji/deleteEmojis.js +++ b/dist/native/emoji/deleteEmojis.js @@ -29,7 +29,7 @@ exports.default = new structures_1.NativeFunction({ let count = 0; for (let i = 0, len = emotes.length; i < len; i++) { const emote = emotes[i]; - const success = await emote.delete().catch(ctx.noop); + const success = await emote.delete(ctx.reason).catch(ctx.noop); if (success) count++; } diff --git a/dist/native/emoji/deleteEmojis.js.map b/dist/native/emoji/deleteEmojis.js.map index c1a6013da3..ada72a6fcb 100644 --- a/dist/native/emoji/deleteEmojis.js.map +++ b/dist/native/emoji/deleteEmojis.js.map @@ -1 +1 @@ -{"version":3,"file":"deleteEmojis.js","sourceRoot":"","sources":["../../../src/native/emoji/deleteEmojis.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,WAAW,EAAE,wEAAwE;IACrF,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,UAAU;SAC3B;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,CAAC;QACzB,IAAI,KAAK,GAAG,CAAC,CAAA;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YAC/C,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;YACvB,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YACpD,IAAI,OAAO;gBAAE,KAAK,EAAE,CAAA;SACvB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"deleteEmojis.js","sourceRoot":"","sources":["../../../src/native/emoji/deleteEmojis.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,WAAW,EAAE,wEAAwE;IACrF,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,UAAU;SAC3B;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,CAAC;QACzB,IAAI,KAAK,GAAG,CAAC,CAAA;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YAC/C,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;YACvB,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YAC9D,IAAI,OAAO;gBAAE,KAAK,EAAE,CAAA;SACvB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/emoji/editEmoji.d.ts.map b/dist/native/emoji/editEmoji.d.ts.map index 761d246068..3b2f8d9948 100644 --- a/dist/native/emoji/editEmoji.d.ts.map +++ b/dist/native/emoji/editEmoji.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"editEmoji.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/editEmoji.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAuDE"} \ No newline at end of file +{"version":3,"file":"editEmoji.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/editEmoji.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAuDE"} \ No newline at end of file diff --git a/dist/native/emoji/editEmoji.js b/dist/native/emoji/editEmoji.js index be420ffbdb..ef4be0c2a3 100644 --- a/dist/native/emoji/editEmoji.js +++ b/dist/native/emoji/editEmoji.js @@ -48,7 +48,7 @@ exports.default = new structures_1.NativeFunction({ return this.success(!!(await emoji .edit({ name: name || undefined, - reason: reason || undefined, + reason: reason || ctx.reason, roles: roles || undefined, }) .catch(ctx.noop))); diff --git a/dist/native/emoji/editEmoji.js.map b/dist/native/emoji/editEmoji.js.map index c99536e6cc..ced846316d 100644 --- a/dist/native/emoji/editEmoji.js.map +++ b/dist/native/emoji/editEmoji.js.map @@ -1 +1 @@ -{"version":3,"file":"editEmoji.js","sourceRoot":"","sources":["../../../src/native/emoji/editEmoji.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,UAAU;YACxB,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;SACb;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC;QAC7C,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,KAAK;aACT,IAAI,CAAC;YACF,IAAI,EAAE,IAAI,IAAI,SAAS;YACvB,MAAM,EAAE,MAAM,IAAI,SAAS;YAC3B,KAAK,EAAE,KAAK,IAAI,SAAS;SAC5B,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CACnB,CACJ,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"editEmoji.js","sourceRoot":"","sources":["../../../src/native/emoji/editEmoji.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,I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d.ts.map index 130e00f5ed..98fc0e6240 100644 --- a/dist/native/emoji/emojiID.d.ts.map +++ b/dist/native/emoji/emojiID.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"emojiID.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/emojiID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAqBE"} \ No newline at end of file +{"version":3,"file":"emojiID.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/emojiID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAsBE"} \ No newline at end of file diff --git a/dist/native/emoji/emojiID.js b/dist/native/emoji/emojiID.js index 7a01e052f0..021ddadea2 100644 --- a/dist/native/emoji/emojiID.js +++ b/dist/native/emoji/emojiID.js @@ -18,8 +18,9 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [emoji]) { - if (this.hasFields) - return this.success(ctx.client.emojis.cache.find((x) => x.name === emoji)?.id || (await ctx.client.application.emojis.fetch().catch(ctx.noop))?.find((x) => x.name === emoji)?.id); + if (this.hasFields) { + return this.success(ctx.client.emojis.cache.find((x) => x.name === emoji)?.id || (await ctx.fetchApplicationEmojis(true))?.find((x) => x.name === emoji)?.id); + } return this.success(ctx.emoji?.id); }, }); diff --git a/dist/native/emoji/emojiID.js.map b/dist/native/emoji/emojiID.js.map index d2282485bf..b1169e0d2f 100644 --- a/dist/native/emoji/emojiID.js.map +++ b/dist/native/emoji/emojiID.js.map @@ -1 +1 @@ -{"version":3,"file":"emojiID.js","sourceRoot":"","sources":["../../../src/native/emoji/emojiID.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sBAAsB;IACnC,QAAQ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,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;QACtB,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,EAAE,EAAE,CAAC,CAAA;SAChK;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;IACtC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/emoji/fetchApplicationEmojis.d.ts b/dist/native/emoji/fetchApplicationEmojis.d.ts new file mode 100644 index 0000000000..16f4f0b679 --- /dev/null +++ b/dist/native/emoji/fetchApplicationEmojis.d.ts @@ -0,0 +1,4 @@ +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction>[], false>; +export default _default; +//# sourceMappingURL=fetchApplicationEmojis.d.ts.map \ No newline at end of file diff --git a/dist/native/emoji/fetchApplicationEmojis.d.ts.map b/dist/native/emoji/fetchApplicationEmojis.d.ts.map new file mode 100644 index 0000000000..92c91590fa --- /dev/null +++ b/dist/native/emoji/fetchApplicationEmojis.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"fetchApplicationEmojis.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/fetchApplicationEmojis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;AAElE,wBASE"} \ No newline at end of file diff --git a/dist/native/emoji/fetchApplicationEmojis.js b/dist/native/emoji/fetchApplicationEmojis.js new file mode 100644 index 0000000000..33c2761da9 --- /dev/null +++ b/dist/native/emoji/fetchApplicationEmojis.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$fetchApplicationEmojis", + version: "2.5.0", + description: "Caches all application emojis of the client", + unwrap: false, + async execute(ctx) { + await ctx.fetchApplicationEmojis(); + return this.success(); + }, +}); +//# sourceMappingURL=fetchApplicationEmojis.js.map \ No newline at end of file diff --git a/dist/native/emoji/fetchApplicationEmojis.js.map b/dist/native/emoji/fetchApplicationEmojis.js.map new file mode 100644 index 0000000000..e61c519e66 --- /dev/null +++ b/dist/native/emoji/fetchApplicationEmojis.js.map @@ -0,0 +1 @@ +{"version":3,"file":"fetchApplicationEmojis.js","sourceRoot":"","sources":["../../../src/native/emoji/fetchApplicationEmojis.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6CAA6C;IAC1D,MAAM,EAAE,KAAK;IACb,KAAK,CAAC,OAAO,CAAC,GAAG;QACb,MAAM,GAAG,CAAC,sBAAsB,EAAE,CAAA;QAClC,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/emoji/getApplicationEmojis.d.ts.map b/dist/native/emoji/getApplicationEmojis.d.ts.map index d6f4cfbca4..37c6a79c7a 100644 --- a/dist/native/emoji/getApplicationEmojis.d.ts.map +++ b/dist/native/emoji/getApplicationEmojis.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"getApplicationEmojis.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/getApplicationEmojis.ts"],"names":[],"mappings":"AACA,OAAO,EAA8B,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AACxG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;AAElE,wBA6BE"} \ No newline at end of file +{"version":3,"file":"getApplicationEmojis.d.ts","sourceRoot":"","sources":["../../../src/native/emoji/getApplicationEmojis.ts"],"names":[],"mappings":"AACA,OAAO,EAA8B,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AACxG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;AAElE,wBA8BE"} \ No newline at end of file diff --git a/dist/native/emoji/getApplicationEmojis.js b/dist/native/emoji/getApplicationEmojis.js index b78334cc60..e4ca125d62 100644 --- a/dist/native/emoji/getApplicationEmojis.js +++ b/dist/native/emoji/getApplicationEmojis.js @@ -32,8 +32,10 @@ exports.default = new structures_1.NativeFunction({ (0, array_1.default)() ], async execute(ctx, [prop, sep]) { - const emojis = await ctx.client.application.emojis.fetch().catch(ctx.noop); - return this.successJSON(!prop ? emojis : emojis?.map(emoji => applicationEmoji_1.ApplicationEmojiProperties[prop](emoji)).join(sep ?? ", ")); + const emojis = await ctx.fetchApplicationEmojis(true); + if (!prop) + return this.successJSON(emojis); + return this.success(emojis ? emojis.map(emoji => applicationEmoji_1.ApplicationEmojiProperties[prop](emoji)).join(sep ?? ", ") : null); }, }); //# sourceMappingURL=getApplicationEmojis.js.map \ No newline at end of file diff --git a/dist/native/emoji/getApplicationEmojis.js.map b/dist/native/emoji/getApplicationEmojis.js.map index bd6278a1db..47011f458d 100644 --- a/dist/native/emoji/getApplicationEmojis.js.map +++ b/dist/native/emoji/getApplicationEmojis.js.map @@ -1 +1 @@ -{"version":3,"file":"getApplicationEmojis.js","sourceRoot":"","sources":["../../../src/native/emoji/getApplicationEmojis.ts"],"names":[],"mappings":";;;;;AAAA,kEAAyC;AACzC,wEAAwG;AACxG,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,2CAAwB;SACjC;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE;QACJ,oBAAO,CAAC,IAAI;QACZ,IAAA,eAAK,GAAmB;KAC3B;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QAC1B,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAC1E,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,6CAA0B,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;IAC7H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"getApplicationEmojis.js","sourceRoot":"","sources":["../../../src/native/emoji/getApplicationEmojis.ts"],"names":[],"mappings":";;;;;AAAA,kEAAyC;AACzC,wEAAwG;AACxG,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,2CAAwB;SACjC;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE;QACJ,oBAAO,CAAC,IAAI;QACZ,IAAA,eAAK,GAAmB;KAC3B;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QAC1B,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAA;QACrD,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,6CAA0B,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IACvH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/emoji/randomApplicationEmojiID.js b/dist/native/emoji/randomApplicationEmojiID.js index b554787ae7..d2a38da9f0 100644 --- a/dist/native/emoji/randomApplicationEmojiID.js +++ b/dist/native/emoji/randomApplicationEmojiID.js @@ -8,7 +8,7 @@ exports.default = new structures_1.NativeFunction({ unwrap: false, output: structures_1.ArgType.ApplicationEmoji, async execute(ctx) { - const emojis = await ctx.client.application.emojis.fetch().catch(ctx.noop); + const emojis = await ctx.fetchApplicationEmojis(true); return this.success(emojis ? emojis.randomKey() : null); }, }); diff --git a/dist/native/emoji/randomApplicationEmojiID.js.map b/dist/native/emoji/randomApplicationEmojiID.js.map index 6ddebdad89..75b1ff2ed6 100644 --- a/dist/native/emoji/randomApplicationEmojiID.js.map +++ b/dist/native/emoji/randomApplicationEmojiID.js.map @@ -1 +1 @@ -{"version":3,"file":"randomApplicationEmojiID.js","sourceRoot":"","sources":["../../../src/native/emoji/randomApplicationEmojiID.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,2BAA2B;IACjC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,8CAA8C;IAC3D,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,oBAAO,CAAC,gBAAgB;IAChC,KAAK,CAAC,OAAO,CAAC,GAAG;QACb,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IAC3D,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"randomApplicationEmojiID.js","sourceRoot":"","sources":["../../../src/native/emoji/randomApplicationEmojiID.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,2BAA2B;IACjC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,8CAA8C;IAC3D,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,oBAAO,CAAC,gBAAgB;IAChC,KAAK,CAAC,OAAO,CAAC,GAAG;QACb,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAA;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IAC3D,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/getGuildPreview.d.ts b/dist/native/guild/getGuildPreview.d.ts new file mode 100644 index 0000000000..602ded2241 --- /dev/null +++ b/dist/native/guild/getGuildPreview.d.ts @@ -0,0 +1,22 @@ +import { GuildPreviewProperty } from "../../properties/guild"; +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + required: true; + type: ArgType.String; +}, { + name: string; + description: string; + rest: false; + type: ArgType.Enum; + enum: typeof GuildPreviewProperty; +}, { + name: string; + description: string; + rest: false; + type: ArgType.String; +}], true>; +export default _default; +//# sourceMappingURL=getGuildPreview.d.ts.map \ No newline at end of file diff --git a/dist/native/guild/getGuildPreview.d.ts.map b/dist/native/guild/getGuildPreview.d.ts.map new file mode 100644 index 0000000000..7f7fa5411c --- /dev/null +++ b/dist/native/guild/getGuildPreview.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getGuildPreview.d.ts","sourceRoot":"","sources":["../../../src/native/guild/getGuildPreview.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AACrF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;AAElE,wBAqCE"} \ No newline at end of file diff --git a/dist/native/guild/getGuildPreview.js b/dist/native/guild/getGuildPreview.js new file mode 100644 index 0000000000..eb93653d86 --- /dev/null +++ b/dist/native/guild/getGuildPreview.js @@ -0,0 +1,44 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const guild_1 = require("../../properties/guild"); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$getGuildPreview", + version: "2.5.0", + description: "Returns the preview of a guild", + brackets: false, + unwrap: true, + args: [ + { + name: "guild ID", + description: "The guild to fetch preview from", + rest: false, + required: true, + type: structures_1.ArgType.String, + }, + { + name: "property", + description: "The property to return", + rest: false, + type: structures_1.ArgType.Enum, + enum: guild_1.GuildPreviewProperty + }, + { + name: "separator", + description: "The separator to use in case of array", + rest: false, + type: structures_1.ArgType.String, + }, + ], + output: [ + structures_1.ArgType.Json, + structures_1.ArgType.Unknown + ], + async execute(ctx, [guild, prop, sep]) { + const preview = await (this.hasFields ? ctx.client.fetchGuildPreview(guild).catch(ctx.noop) : ctx.guild?.fetchPreview().catch(ctx.noop)); + if (preview && prop) + return this.success(guild_1.GuildPreviewProperties[prop](preview, sep)); + return this.successJSON(preview); + }, +}); +//# sourceMappingURL=getGuildPreview.js.map \ No newline at end of file diff --git a/dist/native/guild/getGuildPreview.js.map b/dist/native/guild/getGuildPreview.js.map new file mode 100644 index 0000000000..5bed9c2773 --- /dev/null +++ b/dist/native/guild/getGuildPreview.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getGuildPreview.js","sourceRoot":"","sources":["../../../src/native/guild/getGuildPreview.ts"],"names":[],"mappings":";;AAAA,kDAAqF;AACrF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,4BAAoB;SAC7B;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE;QACJ,oBAAO,CAAC,IAAI;QACZ,oBAAO,CAAC,OAAO;KAClB;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC;QACjC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAA;QACxI,IAAI,OAAO,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC,8BAAsB,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAA;QACpF,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;IACpC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/guildEmojiExists.d.ts b/dist/native/guild/guildEmojiExists.d.ts new file mode 100644 index 0000000000..c302876573 --- /dev/null +++ b/dist/native/guild/guildEmojiExists.d.ts @@ -0,0 +1,16 @@ +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + required: true; + type: ArgType.Guild; +}, { + name: string; + description: string; + rest: false; + required: true; + type: ArgType.String; +}], true>; +export default _default; +//# sourceMappingURL=guildEmojiExists.d.ts.map \ No newline at end of file diff --git a/dist/native/guild/guildEmojiExists.d.ts.map b/dist/native/guild/guildEmojiExists.d.ts.map new file mode 100644 index 0000000000..c9acc166ce --- /dev/null +++ b/dist/native/guild/guildEmojiExists.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"guildEmojiExists.d.ts","sourceRoot":"","sources":["../../../src/native/guild/guildEmojiExists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAoB,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAEpF,wBA6BE"} \ No newline at end of file diff --git a/dist/native/guild/guildEmojiExists.js b/dist/native/guild/guildEmojiExists.js new file mode 100644 index 0000000000..40237d548f --- /dev/null +++ b/dist/native/guild/guildEmojiExists.js @@ -0,0 +1,34 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$guildEmojiExists", + version: "2.5.0", + description: "Returns whether an emoji id exists on a guild", + unwrap: true, + aliases: [ + "$serverEmojiExists" + ], + brackets: true, + args: [ + { + name: "guild ID", + description: "The guild to pull emoji from", + rest: false, + required: true, + type: structures_1.ArgType.Guild, + }, + { + name: "emoji ID", + description: "The emoji to check for", + rest: false, + required: true, + type: structures_1.ArgType.String, + }, + ], + output: structures_1.ArgType.Boolean, + async execute(ctx, [guild, id]) { + return this.success(structures_1.CompiledFunction.IdRegex.test(id) && guild.emojis.cache.has(id)); + }, +}); +//# sourceMappingURL=guildEmojiExists.js.map \ No newline at end of file diff --git a/dist/native/guild/guildEmojiExists.js.map b/dist/native/guild/guildEmojiExists.js.map new file mode 100644 index 0000000000..ed1cc45d12 --- /dev/null +++ b/dist/native/guild/guildEmojiExists.js.map @@ -0,0 +1 @@ +{"version":3,"file":"guildEmojiExists.js","sourceRoot":"","sources":["../../../src/native/guild/guildEmojiExists.ts"],"names":[],"mappings":";;AAAA,iDAAoF;AAEpF,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,oBAAoB;KACvB;IACD,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,6BAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAA;IACxF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/guildInvites.d.ts b/dist/native/guild/guildInvites.d.ts new file mode 100644 index 0000000000..10496c56b7 --- /dev/null +++ b/dist/native/guild/guildInvites.d.ts @@ -0,0 +1,22 @@ +import { InviteProperty } from "../../properties/invite"; +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + rest: false; + required: true; + type: ArgType.Guild; + description: string; +}, { + name: string; + rest: false; + type: ArgType.Enum; + description: string; + enum: typeof InviteProperty; +}, { + name: string; + rest: false; + type: ArgType.String; + description: string; +}], true>; +export default _default; +//# sourceMappingURL=guildInvites.d.ts.map \ No newline at end of file diff --git a/dist/native/guild/guildInvites.d.ts.map b/dist/native/guild/guildInvites.d.ts.map new file mode 100644 index 0000000000..fc90be7c77 --- /dev/null +++ b/dist/native/guild/guildInvites.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"guildInvites.d.ts","sourceRoot":"","sources":["../../../src/native/guild/guildInvites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;AAG1D,wBAwCE"} \ No newline at end of file diff --git a/dist/native/guild/guildInvites.js b/dist/native/guild/guildInvites.js new file mode 100644 index 0000000000..07ded0adfb --- /dev/null +++ b/dist/native/guild/guildInvites.js @@ -0,0 +1,51 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const invite_1 = require("../../properties/invite"); +const structures_1 = require("../../structures"); +const array_1 = __importDefault(require("../../functions/array")); +exports.default = new structures_1.NativeFunction({ + name: "$guildInvites", + version: "2.5.0", + description: "Returns all invites of a guild", + aliases: [ + "$serverInvites" + ], + unwrap: true, + brackets: false, + args: [ + { + name: "guild ID", + rest: false, + required: true, + type: structures_1.ArgType.Guild, + description: "The guild to pull invites from" + }, + { + name: "property", + rest: false, + type: structures_1.ArgType.Enum, + description: "The property of the invites to return", + enum: invite_1.InviteProperty + }, + { + name: "separator", + rest: false, + type: structures_1.ArgType.String, + description: "The separator to use for each property" + } + ], + output: [ + structures_1.ArgType.Json, + (0, array_1.default)() + ], + async execute(ctx, [guild, prop, sep]) { + const invites = await (guild ?? ctx.guild)?.invites.fetch().catch(ctx.noop); + if (invites && prop) + return this.success(invites.map((x) => invite_1.InviteProperties[prop](x)).join(sep ?? ", ")); + return this.successJSON(invites); + }, +}); +//# sourceMappingURL=guildInvites.js.map \ No newline at end of file diff --git a/dist/native/guild/guildInvites.js.map b/dist/native/guild/guildInvites.js.map new file mode 100644 index 0000000000..eb192ea5a8 --- /dev/null +++ b/dist/native/guild/guildInvites.js.map @@ -0,0 +1 @@ +{"version":3,"file":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AI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;QACzG,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;IACpC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/guildSoundboardLimit.d.ts b/dist/native/guild/guildSoundboardLimit.d.ts new file mode 100644 index 0000000000..224b874db6 --- /dev/null +++ b/dist/native/guild/guildSoundboardLimit.d.ts @@ -0,0 +1,10 @@ +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + required: true; + type: ArgType.Guild; +}], true>; +export default _default; +//# sourceMappingURL=guildSoundboardLimit.d.ts.map \ No newline at end of file diff --git a/dist/native/guild/guildSoundboardLimit.d.ts.map b/dist/native/guild/guildSoundboardLimit.d.ts.map new file mode 100644 index 0000000000..954b828c57 --- /dev/null +++ b/dist/native/guild/guildSoundboardLimit.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"guildSoundboardLimit.d.ts","sourceRoot":"","sources":["../../../src/native/guild/guildSoundboardLimit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAiCE"} \ No newline at end of file diff --git a/dist/native/guild/guildSoundboardLimit.js b/dist/native/guild/guildSoundboardLimit.js new file mode 100644 index 0000000000..1ea164d23b --- /dev/null +++ b/dist/native/guild/guildSoundboardLimit.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$guildSoundboardLimit", + version: "2.5.0", + description: "Returns the soundboard sound limit of a guild", + brackets: false, + unwrap: true, + aliases: [ + "$serverSoundboardLimit" + ], + args: [ + { + name: "guild ID", + description: "The guild to retrieve the data", + rest: false, + required: true, + type: structures_1.ArgType.Guild, + }, + ], + output: structures_1.ArgType.Number, + execute(ctx, [guild]) { + let tier = (guild ?? ctx.guild)?.premiumTier; + return this.success(tier === 0 + ? 8 + : tier === 1 + ? 24 + : tier === 2 + ? 36 + : tier === 3 + ? 48 + : undefined); + }, +}); +//# sourceMappingURL=guildSoundboardLimit.js.map \ No newline at end of file diff --git a/dist/native/guild/guildSoundboardLimit.js.map b/dist/native/guild/guildSoundboardLimit.js.map new file mode 100644 index 0000000000..bdc43cfbe5 --- /dev/null +++ b/dist/native/guild/guildSoundboardLimit.js.map @@ -0,0 +1 @@ +{"version":3,"file":"guildSoundboardLimit.js","sourceRoot":"","sources":["../../../src/native/guild/guildSoundboardLimit.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,wBAAwB;KAC3B;IACD,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;QAChB,IAAI,IAAI,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,KAAK,CAAC,EAAE,WAAW,CAAA;QAC5C,OAAO,IAAI,CAAC,OAAO,CACf,IAAI,KAAK,CAAC;YACN,CAAC,CAAC,CAAC;YACH,CAAC,CAAC,IAAI,KAAK,CAAC;gBACR,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,IAAI,KAAK,CAAC;oBACR,CAAC,CAAC,EAAE;oBACJ,CAAC,CAAC,IAAI,KAAK,CAAC;wBACR,CAAC,CAAC,EAAE;wBACJ,CAAC,CAAC,SAAS,CAC9B,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/guildStickerExists.d.ts b/dist/native/guild/guildStickerExists.d.ts new file mode 100644 index 0000000000..db060af5c5 --- /dev/null +++ b/dist/native/guild/guildStickerExists.d.ts @@ -0,0 +1,16 @@ +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + required: true; + type: ArgType.Guild; +}, { + name: string; + description: string; + rest: false; + required: true; + type: ArgType.String; +}], true>; +export default _default; +//# sourceMappingURL=guildStickerExists.d.ts.map \ No newline at end of file diff --git a/dist/native/guild/guildStickerExists.d.ts.map b/dist/native/guild/guildStickerExists.d.ts.map new file mode 100644 index 0000000000..f74c43e426 --- /dev/null +++ b/dist/native/guild/guildStickerExists.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"guildStickerExists.d.ts","sourceRoot":"","sources":["../../../src/native/guild/guildStickerExists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAoB,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAEpF,wBA6BE"} \ No newline at end of file diff --git a/dist/native/guild/guildStickerExists.js b/dist/native/guild/guildStickerExists.js new file mode 100644 index 0000000000..268122ec68 --- /dev/null +++ b/dist/native/guild/guildStickerExists.js @@ -0,0 +1,34 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$guildStickerExists", + version: "2.5.0", + description: "Returns whether a sticker id exists on a guild", + unwrap: true, + aliases: [ + "$serverStickerExists" + ], + brackets: true, + args: [ + { + name: "guild ID", + description: "The guild to pull sticker from", + rest: false, + required: true, + type: structures_1.ArgType.Guild, + }, + { + name: "sticker ID", + description: "The sticker to check for", + rest: false, + required: true, + type: structures_1.ArgType.String, + }, + ], + output: structures_1.ArgType.Boolean, + async execute(ctx, [guild, id]) { + return this.success(structures_1.CompiledFunction.IdRegex.test(id) && guild.stickers.cache.has(id)); + }, +}); +//# sourceMappingURL=guildStickerExists.js.map \ No newline at end of file diff --git a/dist/native/guild/guildStickerExists.js.map b/dist/native/guild/guildStickerExists.js.map new file mode 100644 index 0000000000..efa2c46e38 --- /dev/null +++ b/dist/native/guild/guildStickerExists.js.map @@ -0,0 +1 @@ +{"version":3,"file":"guildStickerExists.js","sourceRoot":"","sources":["../../../src/native/guild/guildStickerExists.ts"],"names":[],"mappings":";;AAAA,iDAAoF;AAEpF,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,sBAAsB;KACzB;IACD,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,6BAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAA;IAC1F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/guildVanityUses.d.ts.map b/dist/native/guild/guildVanityUses.d.ts.map index 79862f8c6a..583fbd79a9 100644 --- a/dist/native/guild/guildVanityUses.d.ts.map +++ b/dist/native/guild/guildVanityUses.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"guildVanityUses.d.ts","sourceRoot":"","sources":["../../../src/native/guild/guildVanityUses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAuBE"} \ No newline at end of file +{"version":3,"file":"guildVanityUses.d.ts","sourceRoot":"","sources":["../../../src/native/guild/guildVanityUses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAwBE"} \ No newline at end of file diff --git a/dist/native/guild/guildVanityUses.js b/dist/native/guild/guildVanityUses.js index 5f794a1af3..624cf582e7 100644 --- a/dist/native/guild/guildVanityUses.js +++ b/dist/native/guild/guildVanityUses.js @@ -22,7 +22,8 @@ exports.default = new structures_1.NativeFunction({ brackets: false, async execute(ctx, [guild]) { guild ??= ctx.guild; - return this.success(guild?.vanityURLUses ?? (await guild?.fetchVanityData().catch(ctx.noop))?.uses); + const vanity = await guild?.fetchVanityData().catch(ctx.noop); + return this.success(vanity ? vanity.uses : null); }, }); //# sourceMappingURL=guildVanityUses.js.map \ No newline at end of file diff --git a/dist/native/guild/guildVanityUses.js.map b/dist/native/guild/guildVanityUses.js.map index 54334795b1..f33cc7ebb4 100644 --- a/dist/native/guild/guildVanityUses.js.map +++ b/dist/native/guild/guildVanityUses.js.map @@ -1 +1 @@ -{"version":3,"file":"guildVanityUses.js","sourceRoot":"","sources":["../../../src/native/guild/guildVanityUses.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gCAAgC;IAC7C,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,mBAAmB;KACtB;IACD,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE,KAAK;IACf,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;QACtB,KAAK,KAAK,GAAG,CAAC,KAAM,CAAA;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,aAAa,IAAI,CAAC,MAAM,KAAK,EAAE,eAAe,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;IACvG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"guildVanityUses.js","sourceRoot":"","sources":["../../../src/native/guild/guildVanityUses.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gCAAgC;IAC7C,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,mBAAmB;KACtB;IACD,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE,KAAK;IACf,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;QACtB,KAAK,KAAK,GAAG,CAAC,KAAM,CAAA;QACpB,MAAM,MAAM,GAAG,MAAM,KAAK,EAAE,eAAe,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IACpD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildAFKChannel.js b/dist/native/guild/setGuildAFKChannel.js index ca880d469b..0c680162df 100644 --- a/dist/native/guild/setGuildAFKChannel.js +++ b/dist/native/guild/setGuildAFKChannel.js @@ -36,7 +36,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, channel, reason]) { - return this.success((await guild.setAFKChannel(channel || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setAFKChannel(channel || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildAFKChannel.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildAFKChannel.js.map b/dist/native/guild/setGuildAFKChannel.js.map index 9e3cbeb9c9..9d8d7bb2ab 100644 --- a/dist/native/guild/setGuildAFKChannel.js.map +++ b/dist/native/guild/setGuildAFKChannel.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildAFKChannel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildAFKChannel.ts"],"names":[],"mappings":";;AAAA,2CAAmE;AACnE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,sBAAsB;KACzB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,UAAU;YAC5D,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,aAAa,CAAC,OAAuB,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACvI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildAFKChannel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildAFKChannel.ts"],"names":[],"mappings":";;AAAA,2CAAmE;AACnE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,sBAAsB;KACzB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,UAAU;YAC5D,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,aAAa,CAAC,OAAuB,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACxI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildAFKTimeout.js b/dist/native/guild/setGuildAFKTimeout.js index a3291d23b2..c27cdb8d06 100644 --- a/dist/native/guild/setGuildAFKTimeout.js +++ b/dist/native/guild/setGuildAFKTimeout.js @@ -34,7 +34,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, seconds, reason]) { - return this.success((await guild.setAFKTimeout(seconds, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setAFKTimeout(seconds, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildAFKTimeout.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildAFKTimeout.js.map b/dist/native/guild/setGuildAFKTimeout.js.map index 0c75b518f6..60d39b83c0 100644 --- a/dist/native/guild/setGuildAFKTimeout.js.map +++ b/dist/native/guild/setGuildAFKTimeout.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildAFKTimeout.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildAFKTimeout.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,sBAAsB;KACzB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,2DAA2D;YACxE,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC/G,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildAFKTimeout.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildAFKTimeout.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,sBAAsB;KACzB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,2DAA2D;YACxE,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAChH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildBanner.js b/dist/native/guild/setGuildBanner.js index 8b8781ba7d..3ec8f783a1 100644 --- a/dist/native/guild/setGuildBanner.js +++ b/dist/native/guild/setGuildBanner.js @@ -33,7 +33,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, banner, reason]) { - return this.success((await guild.setBanner(banner || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setBanner(banner || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildBanner.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildBanner.js.map b/dist/native/guild/setGuildBanner.js.map index d3338a0779..d6eb199a47 100644 --- a/dist/native/guild/setGuildBanner.js.map +++ b/dist/native/guild/setGuildBanner.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildBanner.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildBanner.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sCAAsC;IACnD,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,kBAAkB;KACrB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,4BAA4B;SAC5C;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAClH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildBanner.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildBanner.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sCAAsC;IACnD,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,kBAAkB;KACrB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,4BAA4B;SAC5C;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACnH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildBoostProgressBar.js b/dist/native/guild/setGuildBoostProgressBar.js index 4836c8a765..492e556e41 100644 --- a/dist/native/guild/setGuildBoostProgressBar.js +++ b/dist/native/guild/setGuildBoostProgressBar.js @@ -34,7 +34,7 @@ exports.default = new structures_1.NativeFunction({ ], output: structures_1.ArgType.Boolean, async execute(ctx, [guild, enabled, reason]) { - return this.success((await guild.setPremiumProgressBarEnabled(enabled, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setPremiumProgressBarEnabled(enabled, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildBoostProgressBar.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildBoostProgressBar.js.map b/dist/native/guild/setGuildBoostProgressBar.js.map index cc861a64bd..4f69289d45 100644 --- a/dist/native/guild/setGuildBoostProgressBar.js.map +++ b/dist/native/guild/setGuildBoostProgressBar.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildBoostProgressBar.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildBoostProgressBar.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,2BAA2B;IACjC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,OAAO,EAAE;QACL,4BAA4B;KAC/B;IACD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sDAAsD;YACnE,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,4BAA4B,CAAC,OAAO,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC9H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildBoostProgressBar.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildBoostProgressBar.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,2BAA2B;IACjC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,OAAO,EAAE;QACL,4BAA4B;KAC/B;IACD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sDAAsD;YACnE,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,4BAA4B,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC/H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildDefaultMessageNotifications.js b/dist/native/guild/setGuildDefaultMessageNotifications.js index b2e20f399b..a275e56f90 100644 --- a/dist/native/guild/setGuildDefaultMessageNotifications.js +++ b/dist/native/guild/setGuildDefaultMessageNotifications.js @@ -35,7 +35,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, setting, reason]) { - return this.success((await guild.setDefaultMessageNotifications(setting || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setDefaultMessageNotifications(setting || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildDefaultMessageNotifications.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildDefaultMessageNotifications.js.map b/dist/native/guild/setGuildDefaultMessageNotifications.js.map index 552bc9a582..8498d0e05a 100644 --- a/dist/native/guild/setGuildDefaultMessageNotifications.js.map +++ b/dist/native/guild/setGuildDefaultMessageNotifications.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildDefaultMessageNotifications.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildDefaultMessageNotifications.ts"],"names":[],"mappings":";;AAAA,2CAA6D;AAC7D,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,sCAAsC;IAC5C,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0EAA0E;IACvF,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,uCAAuC;KAC1C;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,oDAAoD;YACjE,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,6CAAgC;SACzC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,8BAA8B,CAAC,OAAO,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACxI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildDefaultMessageNotifications.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildDefaultMessageNotifications.ts"],"names":[],"mappings":";;AAAA,2CAA6D;AAC7D,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,sCAAsC;IAC5C,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0EAA0E;IACvF,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,uCAAuC;KAC1C;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,oDAAoD;YACjE,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,6CAAgC;SACzC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,8BAA8B,CAAC,OAAO,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACzI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildDiscoverySplash.js b/dist/native/guild/setGuildDiscoverySplash.js index 4d19b5d7b4..3af6665ded 100644 --- a/dist/native/guild/setGuildDiscoverySplash.js +++ b/dist/native/guild/setGuildDiscoverySplash.js @@ -33,7 +33,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, icon, reason]) { - return this.success((await guild.setDiscoverySplash(icon || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setDiscoverySplash(icon || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildDiscoverySplash.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildDiscoverySplash.js.map b/dist/native/guild/setGuildDiscoverySplash.js.map index 271e1d5af7..84b29d7710 100644 --- a/dist/native/guild/setGuildDiscoverySplash.js.map +++ b/dist/native/guild/setGuildDiscoverySplash.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildDiscoverySplash.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildDiscoverySplash.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qDAAqD;IAClE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,2BAA2B;KAC9B;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,kBAAkB,CAAC,IAAI,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACzH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildDiscoverySplash.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildDiscoverySplash.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qDAAqD;IAClE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,2BAA2B;KAC9B;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,kBAAkB,CAAC,IAAI,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC1H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildExplicitContentFilter.js b/dist/native/guild/setGuildExplicitContentFilter.js index c9c6bbe40c..cc81330386 100644 --- a/dist/native/guild/setGuildExplicitContentFilter.js +++ b/dist/native/guild/setGuildExplicitContentFilter.js @@ -35,7 +35,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, filter, reason]) { - return this.success((await guild.setExplicitContentFilter(filter || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setExplicitContentFilter(filter || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildExplicitContentFilter.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildExplicitContentFilter.js.map b/dist/native/guild/setGuildExplicitContentFilter.js.map index 2e0d29db27..5a321ec181 100644 --- a/dist/native/guild/setGuildExplicitContentFilter.js.map +++ b/dist/native/guild/setGuildExplicitContentFilter.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildExplicitContentFilter.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildExplicitContentFilter.ts"],"names":[],"mappings":";;AAAA,2CAAuD;AACvD,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gCAAgC;IACtC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4DAA4D;IACzE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,iCAAiC;KACpC;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,uCAA0B;SACnC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,wBAAwB,CAAC,MAAM,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACjI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildExplicitContentFilter.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildExplicitContentFilter.ts"],"names":[],"mappings":";;AAAA,2CAAuD;AACvD,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gCAAgC;IACtC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4DAA4D;IACzE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,iCAAiC;KACpC;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,uCAA0B;SACnC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,wBAAwB,CAAC,MAAM,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAClI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildIcon.js b/dist/native/guild/setGuildIcon.js index 42af208c77..1df3391148 100644 --- a/dist/native/guild/setGuildIcon.js +++ b/dist/native/guild/setGuildIcon.js @@ -33,7 +33,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, icon, reason]) { - return this.success((await guild.setIcon(icon || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setIcon(icon || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildIcon.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildIcon.js.map b/dist/native/guild/setGuildIcon.js.map index 7c3b8cbf0b..2575eed196 100644 --- a/dist/native/guild/setGuildIcon.js.map +++ b/dist/native/guild/setGuildIcon.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildIcon.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildIcon.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oCAAoC;IACjD,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,gBAAgB;KACnB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,0BAA0B;SAC1C;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC9G,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildIcon.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildIcon.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oCAAoC;IACjD,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,gBAAgB;KACnB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,0BAA0B;SAC1C;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC/G,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildMFALevel.js b/dist/native/guild/setGuildMFALevel.js index dd6c149f89..3b8777497f 100644 --- a/dist/native/guild/setGuildMFALevel.js +++ b/dist/native/guild/setGuildMFALevel.js @@ -37,7 +37,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, level, reason]) { - return this.success((await guild.setMFALevel(level, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setMFALevel(level, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildMFALevel.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildMFALevel.js.map b/dist/native/guild/setGuildMFALevel.js.map index def5e60772..e42705c8f5 100644 --- a/dist/native/guild/setGuildMFALevel.js.map +++ b/dist/native/guild/setGuildMFALevel.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildMFALevel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildMFALevel.ts"],"names":[],"mappings":";;AAAA,2CAA0C;AAC1C,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,8CAA8C;IAC3D,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE;QACL,oBAAoB;KACvB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,0BAAa;SACtB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC3G,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildMFALevel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildMFALevel.ts"],"names":[],"mappings":";;AAAA,2CAA0C;AAC1C,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,8CAA8C;IAC3D,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE;QACL,oBAAoB;KACvB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,0BAAa;SACtB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC5G,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildName.js b/dist/native/guild/setGuildName.js index 144522bb20..9a0ae54f34 100644 --- a/dist/native/guild/setGuildName.js +++ b/dist/native/guild/setGuildName.js @@ -34,7 +34,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, name, reason]) { - return this.success((await guild.setName(name, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setName(name, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildName.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildName.js.map b/dist/native/guild/setGuildName.js.map index da8f4b7f42..dc956ce38c 100644 --- a/dist/native/guild/setGuildName.js.map +++ b/dist/native/guild/setGuildName.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildName.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildName.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oCAAoC;IACjD,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,gBAAgB;KACnB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,uBAAuB;SACvC;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACtG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildName.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildName.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oCAAoC;IACjD,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,gBAAgB;KACnB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,uBAAuB;SACvC;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACvG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildOwner.js b/dist/native/guild/setGuildOwner.js index 4e444f56fc..5eb346052e 100644 --- a/dist/native/guild/setGuildOwner.js +++ b/dist/native/guild/setGuildOwner.js @@ -36,7 +36,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, member, reason]) { - return this.success((await guild.setOwner(member, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setOwner(member, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildOwner.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildOwner.js.map b/dist/native/guild/setGuildOwner.js.map index d26724e884..56af885484 100644 --- a/dist/native/guild/setGuildOwner.js.map +++ b/dist/native/guild/setGuildOwner.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildOwner.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildOwner.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE;QACL,iBAAiB;KACpB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACzG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildOwner.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildOwner.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE;QACL,iBAAiB;KACpB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC1G,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildPreferredLocale.js b/dist/native/guild/setGuildPreferredLocale.js index db10f94420..de238c9452 100644 --- a/dist/native/guild/setGuildPreferredLocale.js +++ b/dist/native/guild/setGuildPreferredLocale.js @@ -35,7 +35,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, locale, reason]) { - return this.success((await guild.setPreferredLocale(locale || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setPreferredLocale(locale || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildPreferredLocale.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildPreferredLocale.js.map b/dist/native/guild/setGuildPreferredLocale.js.map index 5a4baec255..2663a44358 100644 --- a/dist/native/guild/setGuildPreferredLocale.js.map +++ b/dist/native/guild/setGuildPreferredLocale.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildPreferredLocale.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildPreferredLocale.ts"],"names":[],"mappings":";;AAAA,2CAAmC;AACnC,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,2BAA2B;KAC9B;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,mBAAM;SACf;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,kBAAkB,CAAC,MAAM,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC3H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildPreferredLocale.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildPreferredLocale.ts"],"names":[],"mappings":";;AAAA,2CAAmC;AACnC,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,2BAA2B;KAC9B;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,mBAAM;SACf;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,kBAAkB,CAAC,MAAM,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC5H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildPublicUpdatesChannel.js b/dist/native/guild/setGuildPublicUpdatesChannel.js index 32ec529309..168c8769be 100644 --- a/dist/native/guild/setGuildPublicUpdatesChannel.js +++ b/dist/native/guild/setGuildPublicUpdatesChannel.js @@ -36,7 +36,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, channel, reason]) { - return this.success((await guild.setPublicUpdatesChannel(channel || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setPublicUpdatesChannel(channel || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildPublicUpdatesChannel.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildPublicUpdatesChannel.js.map b/dist/native/guild/setGuildPublicUpdatesChannel.js.map index 1b5e1ac9f5..22b4b95bdd 100644 --- a/dist/native/guild/setGuildPublicUpdatesChannel.js.map +++ b/dist/native/guild/setGuildPublicUpdatesChannel.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildPublicUpdatesChannel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildPublicUpdatesChannel.ts"],"names":[],"mappings":";;AAAA,2CAAkE;AAClE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,+BAA+B;IACrC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2DAA2D;IACxE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,gCAAgC;KACnC;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,SAAS;YAC3D,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,uBAAuB,CAAC,OAAsB,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAChJ,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildPublicUpdatesChannel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildPublicUpdatesChannel.ts"],"names":[],"mappings":";;AAAA,2CAAkE;AAClE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,+BAA+B;IACrC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2DAA2D;IACxE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,gCAAgC;KACnC;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,SAAS;YAC3D,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,uBAAuB,CAAC,OAAsB,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACjJ,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildRulesChannel.js b/dist/native/guild/setGuildRulesChannel.js index 46c7ad21ad..a47e45d3ef 100644 --- a/dist/native/guild/setGuildRulesChannel.js +++ b/dist/native/guild/setGuildRulesChannel.js @@ -36,7 +36,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, channel, reason]) { - return this.success((await guild.setRulesChannel(channel || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setRulesChannel(channel || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildRulesChannel.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildRulesChannel.js.map b/dist/native/guild/setGuildRulesChannel.js.map index bf050d3a52..19f313cc35 100644 --- a/dist/native/guild/setGuildRulesChannel.js.map +++ b/dist/native/guild/setGuildRulesChannel.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildRulesChannel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildRulesChannel.ts"],"names":[],"mappings":";;AAAA,2CAAkE;AAClE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,kDAAkD;IAC/D,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,wBAAwB;KAC3B;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,SAAS;YAC3D,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,eAAe,CAAC,OAAsB,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACxI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildRulesChannel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildRulesChannel.ts"],"names":[],"mappings":";;AAAA,2CAAkE;AAClE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,kDAAkD;IAC/D,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,wBAAwB;KAC3B;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,SAAS;YAC3D,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,eAAe,CAAC,OAAsB,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACzI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildSafetyAlertsChannel.js b/dist/native/guild/setGuildSafetyAlertsChannel.js index da89d89241..c5303ed601 100644 --- a/dist/native/guild/setGuildSafetyAlertsChannel.js +++ b/dist/native/guild/setGuildSafetyAlertsChannel.js @@ -36,7 +36,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, channel, reason]) { - return this.success((await guild.setSafetyAlertsChannel(channel || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setSafetyAlertsChannel(channel || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildSafetyAlertsChannel.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildSafetyAlertsChannel.js.map b/dist/native/guild/setGuildSafetyAlertsChannel.js.map index 84a48438fb..15027e7f72 100644 --- a/dist/native/guild/setGuildSafetyAlertsChannel.js.map +++ b/dist/native/guild/setGuildSafetyAlertsChannel.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildSafetyAlertsChannel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildSafetyAlertsChannel.ts"],"names":[],"mappings":";;AAAA,2CAAkE;AAClE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,8BAA8B;IACpC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0DAA0D;IACvE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,+BAA+B;KAClC;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,4CAA4C;YACzD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,SAAS;YAC3D,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,sBAAsB,CAAC,OAAsB,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC/I,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildSafetyAlertsChannel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildSafetyAlertsChannel.ts"],"names":[],"mappings":";;AAAA,2CAAkE;AAClE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,8BAA8B;IACpC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0DAA0D;IACvE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,+BAA+B;KAClC;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,4CAA4C;YACzD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,SAAS;YAC3D,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,sBAAsB,CAAC,OAAsB,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAChJ,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildSplash.js b/dist/native/guild/setGuildSplash.js index 7ade6199e2..1b8a468fcb 100644 --- a/dist/native/guild/setGuildSplash.js +++ b/dist/native/guild/setGuildSplash.js @@ -33,7 +33,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, icon, reason]) { - return this.success((await guild.setSplash(icon || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setSplash(icon || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildSplash.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildSplash.js.map b/dist/native/guild/setGuildSplash.js.map index 968f963f02..65629a7b91 100644 --- a/dist/native/guild/setGuildSplash.js.map +++ b/dist/native/guild/setGuildSplash.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildSplash.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildSplash.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sCAAsC;IACnD,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,kBAAkB;KACrB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,4BAA4B;SAC5C;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAChH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildSplash.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildSplash.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sCAAsC;IACnD,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,kBAAkB;KACrB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,4BAA4B;SAC5C;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACjH,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildSystemChannel.js b/dist/native/guild/setGuildSystemChannel.js index d3ee70384b..cb2cc90b33 100644 --- a/dist/native/guild/setGuildSystemChannel.js +++ b/dist/native/guild/setGuildSystemChannel.js @@ -36,7 +36,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, channel, reason]) { - return this.success((await guild.setSystemChannel(channel || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setSystemChannel(channel || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildSystemChannel.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildSystemChannel.js.map b/dist/native/guild/setGuildSystemChannel.js.map index 76952cc860..40b3a37dc4 100644 --- a/dist/native/guild/setGuildSystemChannel.js.map +++ b/dist/native/guild/setGuildSystemChannel.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildSystemChannel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildSystemChannel.ts"],"names":[],"mappings":";;AAAA,2CAAkE;AAClE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mDAAmD;IAChE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,yBAAyB;KAC5B;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,SAAS;YAC3D,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,gBAAgB,CAAC,OAAsB,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACzI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildSystemChannel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildSystemChannel.ts"],"names":[],"mappings":";;AAAA,2CAAkE;AAClE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mDAAmD;IAChE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,yBAAyB;KAC5B;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAW,CAAC,SAAS;YAC3D,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,gBAAgB,CAAC,OAAsB,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC1I,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildVerificationLevel.js b/dist/native/guild/setGuildVerificationLevel.js index 1788d87661..c36c0313b6 100644 --- a/dist/native/guild/setGuildVerificationLevel.js +++ b/dist/native/guild/setGuildVerificationLevel.js @@ -35,7 +35,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [guild, level, reason]) { - return this.success((await guild.setVerificationLevel(level || null, reason || undefined).catch(() => false)) !== false); + return this.success((await guild.setVerificationLevel(level || null, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildVerificationLevel.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildVerificationLevel.js.map b/dist/native/guild/setGuildVerificationLevel.js.map index 06966031af..a547b0aaa0 100644 --- a/dist/native/guild/setGuildVerificationLevel.js.map +++ b/dist/native/guild/setGuildVerificationLevel.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildVerificationLevel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildVerificationLevel.ts"],"names":[],"mappings":";;AAAA,2CAAmD;AACnD,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,4BAA4B;IAClC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sDAAsD;IACnE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,6BAA6B;KAChC;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,mCAAsB;SAC/B;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,oBAAoB,CAAC,KAAK,IAAI,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC5H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildVerificationLevel.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildVerificationLevel.ts"],"names":[],"mappings":";;AAAA,2CAAmD;AACnD,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,4BAA4B;IAClC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sDAAsD;IACnE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,6BAA6B;KAChC;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,mCAAsB;SAC/B;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,oBAAoB,CAAC,KAAK,IAAI,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC7H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/guild/setGuildWidgetSettings.js b/dist/native/guild/setGuildWidgetSettings.js index 94f7c4e267..bb91cf3b14 100644 --- a/dist/native/guild/setGuildWidgetSettings.js +++ b/dist/native/guild/setGuildWidgetSettings.js @@ -43,8 +43,8 @@ exports.default = new structures_1.NativeFunction({ async execute(ctx, [guild, chan, enabled, reason]) { return this.success((await guild.setWidgetSettings({ channel: chan || null, - enabled: enabled ?? guild.widgetEnabled ?? false - }, reason || undefined).catch(() => false)) !== false); + enabled: enabled || guild.widgetEnabled || false + }, reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildWidgetSettings.js.map \ No newline at end of file diff --git a/dist/native/guild/setGuildWidgetSettings.js.map b/dist/native/guild/setGuildWidgetSettings.js.map index 8544dacc96..e2c9270a8b 100644 --- a/dist/native/guild/setGuildWidgetSettings.js.map +++ b/dist/native/guild/setGuildWidgetSettings.js.map @@ -1 +1 @@ -{"version":3,"file":"setGuildWidgetSettings.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildWidgetSettings.ts"],"names":[],"mappings":";;AAAA,2CAA8J;AAC9J,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mDAAmD;IAChE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,0BAA0B;KAC7B;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,yBAAY,IAAI,CAAC,CAAC,CAAC,YAAY,yBAAY,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,4BAAe,CAAC,CAAC;SAC5H;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,iBAAiB,CAC9C;YACI,OAAO,EAAE,IAAmF,IAAI,IAAI;YACpG,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC,aAAa,IAAI,KAAK;SACnD,EACD,MAAM,IAAI,SAAS,CACtB,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IACpC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setGuildWidgetSettings.js","sourceRoot":"","sources":["../../../src/native/guild/setGuildWidgetSettings.ts"],"names":[],"mappings":";;AAAA,2CAA8J;AAC9J,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mDAAmD;IAChE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QAC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Invite.d.ts.map b/dist/native/invite/deleteInvite.d.ts.map index 68c7ef6286..14dcd979ef 100644 --- a/dist/native/invite/deleteInvite.d.ts.map +++ b/dist/native/invite/deleteInvite.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"deleteInvite.d.ts","sourceRoot":"","sources":["../../../src/native/invite/deleteInvite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;AAGlE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"deleteInvite.d.ts","sourceRoot":"","sources":["../../../src/native/invite/deleteInvite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/invite/deleteInvite.js b/dist/native/invite/deleteInvite.js index a89cbece92..848ed65867 100644 --- a/dist/native/invite/deleteInvite.js +++ b/dist/native/invite/deleteInvite.js @@ -25,7 +25,7 @@ exports.default = new structures_1.NativeFunction({ ], async execute(ctx, [code, reason]) { const invite = await ctx.client.fetchInvite(code).catch(ctx.noop); - return this.success(!!(await invite?.delete(reason || undefined).catch(ctx.noop))); + return this.success(!!(await invite?.delete(reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=deleteInvite.js.map \ No newline at end of file diff --git a/dist/native/invite/deleteInvite.js.map b/dist/native/invite/deleteInvite.js.map index d782c0dfc9..e79889202e 100644 --- a/dist/native/invite/deleteInvite.js.map +++ b/dist/native/invite/deleteInvite.js.map @@ -1 +1 @@ -{"version":3,"file":"deleteInvite.js","sourceRoot":"","sources":["../../../src/native/invite/deleteInvite.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,iCAAiC;IAC9C,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;QAC7B,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACtF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"deleteInvite.js","sourceRoot":"","sources":["../../../src/native/invite/deleteInvite.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,iCAAiC;IAC9C,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;QAC7B,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACvF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/lookup/findApplicationEmoji.js b/dist/native/lookup/findApplicationEmoji.js index 3166aac5ab..7352123749 100644 --- a/dist/native/lookup/findApplicationEmoji.js +++ b/dist/native/lookup/findApplicationEmoji.js @@ -18,12 +18,13 @@ exports.default = new structures_1.NativeFunction({ ], unwrap: true, async execute(ctx, [q]) { + const emojis = await ctx.fetchApplicationEmojis(true); if (structures_1.CompiledFunction.IdRegex.test(q)) { - const e = await ctx.client.application.emojis.fetch(q).catch(ctx.noop); + const e = emojis?.get(q); if (e) return this.success(e.id); } - return this.success((await ctx.client.application.emojis.fetch().catch(ctx.noop))?.find((x) => x.id === q || x.name?.toLowerCase() === q.toLowerCase() || x.toString() === q)?.id); + return this.success(emojis?.find((x) => x.id === q || x.name?.toLowerCase() === q.toLowerCase() || x.toString() === q)?.id); }, }); //# sourceMappingURL=findApplicationEmoji.js.map \ No newline at end of file diff --git a/dist/native/lookup/findApplicationEmoji.js.map b/dist/native/lookup/findApplicationEmoji.js.map index c6898be2f6..f131747ac3 100644 --- a/dist/native/lookup/findApplicationEmoji.js.map +++ b/dist/native/lookup/findApplicationEmoji.js.map @@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ACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"findApplicationEmoji.js","sourceRoot":"","sources":["../../../src/native/lookup/findApplicationEmoji.ts"],"names":[],"mappings":";;AAAA,iDAAoF;AAEpF,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0CAA0C;IACvD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,gBAAgB;IAChC,IAAI,EAAE;QACF;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAClB,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAA;QAErD,IAAI,6BAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;YAClC,MAAM,CAAC,GAAG,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;YACxB,IAAI,CAAC;gBAAE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;SACnC;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAC/H,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/lookup/findEmoji.d.ts.map b/dist/native/lookup/findEmoji.d.ts.map index c9a33cd4de..d4b69cecb7 100644 --- a/dist/native/lookup/findEmoji.d.ts.map +++ b/dist/native/lookup/findEmoji.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"findEmoji.d.ts","sourceRoot":"","sources":["../../../src/native/lookup/findEmoji.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAoB,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAEpF,wBA8BE"} \ No newline at end of file +{"version":3,"file":"findEmoji.d.ts","sourceRoot":"","sources":["../../../src/native/lookup/findEmoji.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAoB,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAEpF,wBA+BE"} \ No newline at end of file diff --git a/dist/native/lookup/findEmoji.js b/dist/native/lookup/findEmoji.js index 43e88333cd..14bd227f7a 100644 --- a/dist/native/lookup/findEmoji.js +++ b/dist/native/lookup/findEmoji.js @@ -19,14 +19,15 @@ exports.default = new structures_1.NativeFunction({ ], unwrap: true, async execute(ctx, [q]) { + const emojis = await ctx.fetchApplicationEmojis(true); const parsed = (0, discord_js_1.parseEmoji)(q); if (structures_1.CompiledFunction.IdRegex.test(q)) { - const e = ctx.client.emojis.cache.get(q) || await ctx.client.application.emojis.fetch(q).catch(ctx.noop); + const e = ctx.client.emojis.cache.get(q) || emojis?.get(q); if (e) return this.success(e.id); } const name = parsed?.name.toLowerCase(); - return this.success(ctx.client.emojis.cache.find((x) => x.id === q || x.name?.toLowerCase() === name || x.toString() === q)?.id || (await ctx.client.application.emojis.fetch().catch(ctx.noop))?.find((x) => x.id === q || x.name?.toLowerCase() === name || x.toString() === q)?.id); + return this.success(ctx.client.emojis.cache.find((x) => x.id === q || x.name?.toLowerCase() === name || x.toString() === q)?.id || emojis?.find((x) => x.id === q || x.name?.toLowerCase() === name || x.toString() === q)?.id); }, }); //# sourceMappingURL=findEmoji.js.map \ No newline at end of file diff --git a/dist/native/lookup/findEmoji.js.map b/dist/native/lookup/findEmoji.js.map index b9c4160e48..a0188cb8f1 100644 --- a/dist/native/lookup/findEmoji.js.map +++ b/dist/native/lookup/findEmoji.js.map @@ -1 +1 @@ -{"version":3,"file":"findEmoji.js","sourceRoot":"","sources":["../../../src/native/lookup/findEmoji.ts"],"names":[],"mappings":";;AAAA,2CAAuC;AACvC,iDAAoF;AAEpF,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gBAAgB;IAC7B,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,KAAK;IACrB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAClB,MAAM,MAAM,GAAG,IAAA,uBAAU,EAAC,CAAC,CAAC,CAAA;QAE5B,IAAI,6BAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;YAClC,MAAM,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,MAAM,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YACxG,IAAI,CAAC;gBAAE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;SACnC;QAED,MAAM,IAAI,GAAG,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,CAAA;QAEvC,OAAO,IAAI,CAAC,OAAO,CACf,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,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C,CAAA;QAE5B,IAAI,6BAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;YAClC,MAAM,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;YAC1D,IAAI,CAAC;gBAAE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;SACnC;QAED,MAAM,IAAI,GAAG,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,CAAA;QAEvC,OAAO,IAAI,CAAC,OAAO,CACf,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,IAAI,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,EAAE,EAAE,IAAI,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,IAAI,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,EAAE,EAAE,CAC7M,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/ban.d.ts.map b/dist/native/member/ban.d.ts.map index 045909de2e..4d105f9aa9 100644 --- a/dist/native/member/ban.d.ts.map +++ b/dist/native/member/ban.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ban.d.ts","sourceRoot":"","sources":["../../../src/native/member/ban.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAiDE"} \ No newline at end of file +{"version":3,"file":"ban.d.ts","sourceRoot":"","sources":["../../../src/native/member/ban.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAkDE"} \ No newline at end of file diff --git a/dist/native/member/ban.js b/dist/native/member/ban.js index 7064d145b5..6a6d7ddb55 100644 --- a/dist/native/member/ban.js +++ b/dist/native/member/ban.js @@ -5,7 +5,8 @@ exports.default = new structures_1.NativeFunction({ name: "$ban", version: "1.0.0", aliases: [ - "$memberBan" + "$memberBan", + "$banMember" ], description: "Bans a member from the guild, returns true or false depending on whether the action was successfully performed", unwrap: true, @@ -42,7 +43,7 @@ exports.default = new structures_1.NativeFunction({ async execute(ctx, [guild, user, reason, seconds]) { return this.success((await guild.members .ban(user, { - reason: reason || undefined, + reason: reason || ctx.reason, deleteMessageSeconds: seconds || undefined, }) .catch(() => false)) !== false); diff --git a/dist/native/member/ban.js.map b/dist/native/member/ban.js.map index 697bf7c2bb..0c3c3e7da5 100644 --- a/dist/native/member/ban.js.map +++ b/dist/native/member/ban.js.map @@ -1 +1 @@ -{"version":3,"file":"ban.js","sourceRoot":"","sources":["../../../src/native/member/ban.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE;QACL,YAAY;KACf;IACD,WAAW,EACP,gHAAgH;IACpH,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,wBAAwB;YAC9B,WAAW,EAAE,2EAA2E;YACxF,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC;QAC7C,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,MAAM,KAAK,CAAC,OAAO;aACf,GAAG,CAAC,IAAI,EAAE;YACP,MAAM,EAAE,MAAM,IAAI,SAAS;YAC3B,oBAAoB,EAAE,OAAO,IAAI,SAAS;SAC7C,CAAC;aACD,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CACrC,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"ban.js","sourceRoot":"","sources":["../../../src/native/member/ban.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE;QACL,YAAY;QACZ,YAAY;KACf;IACD,WAAW,EACP,gHAAgH;IACpH,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,wBAAwB;YAC9B,WAAW,EAAE,2EAA2E;YACxF,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC;QAC7C,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,MAAM,KAAK,CAAC,OAAO;aACf,GAAG,CAAC,IAAI,EAAE;YACP,MAAM,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM;YAC5B,oBAAoB,EAAE,OAAO,IAAI,SAAS;SAC7C,CAAC;aACD,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CACrC,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/hasAnyPerms.d.ts b/dist/native/member/hasAnyPerms.d.ts index 8b826caa79..854423e983 100644 --- a/dist/native/member/hasAnyPerms.d.ts +++ b/dist/native/member/hasAnyPerms.d.ts @@ -68,6 +68,7 @@ declare const _default: NativeFunction<[{ readonly SendVoiceMessages: bigint; readonly SendPolls: bigint; readonly UseExternalApps: bigint; + readonly PinMessages: bigint; }; required: true; }], true>; diff --git a/dist/native/member/hasAnyPerms.d.ts.map b/dist/native/member/hasAnyPerms.d.ts.map index 1574701860..ab8c504b45 100644 --- a/dist/native/member/hasAnyPerms.d.ts.map +++ b/dist/native/member/hasAnyPerms.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"hasAnyPerms.d.ts","sourceRoot":"","sources":["../../../src/native/member/hasAnyPerms.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAoCE"} \ No newline at end of file +{"version":3,"file":"hasAnyPerms.d.ts","sourceRoot":"","sources":["../../../src/native/member/hasAnyPerms.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAoCE"} \ No newline at end of file diff --git a/dist/native/member/hasPerms.d.ts b/dist/native/member/hasPerms.d.ts index 43e46d0c2d..c9b8b1db5c 100644 --- a/dist/native/member/hasPerms.d.ts +++ b/dist/native/member/hasPerms.d.ts @@ -68,6 +68,7 @@ declare const _default: NativeFunction<[{ readonly SendVoiceMessages: bigint; readonly SendPolls: bigint; readonly UseExternalApps: bigint; + readonly PinMessages: bigint; }; required: true; }], true>; diff --git a/dist/native/member/hasPerms.d.ts.map b/dist/native/member/hasPerms.d.ts.map index d0abfcd211..41bdf67a39 100644 --- a/dist/native/member/hasPerms.d.ts.map +++ b/dist/native/member/hasPerms.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"hasPerms.d.ts","sourceRoot":"","sources":["../../../src/native/member/hasPerms.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAsCE"} \ No newline at end of file +{"version":3,"file":"hasPerms.d.ts","sourceRoot":"","sources":["../../../src/native/member/hasPerms.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAsCE"} \ No newline at end of file diff --git a/dist/native/member/kickMember.js b/dist/native/member/kickMember.js index ea7f206987..5d450fa243 100644 --- a/dist/native/member/kickMember.js +++ b/dist/native/member/kickMember.js @@ -35,7 +35,7 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [, member, reason]) { - return this.success((await member.kick(reason || undefined).catch(() => false)) !== false); + return this.success((await member.kick(reason || ctx.reason).catch(() => false)) !== false); }, }); //# sourceMappingURL=kickMember.js.map \ No newline at end of file diff --git a/dist/native/member/kickMember.js.map b/dist/native/member/kickMember.js.map index 1dffc22565..9ed8549f12 100644 --- a/dist/native/member/kickMember.js.map +++ b/dist/native/member/kickMember.js.map @@ -1 +1 @@ -{"version":3,"file":"kickMember.js","sourceRoot":"","sources":["../../../src/native/member/kickMember.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EACP,iHAAiH;IACrH,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,aAAa;KAChB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC9F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"kickMember.js","sourceRoot":"","sources":["../../../src/native/member/kickMember.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EACP,iHAAiH;IACrH,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,aAAa;KAChB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAA;IAC/F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/memberAddRoles.d.ts.map b/dist/native/member/memberAddRoles.d.ts.map index 0d5b48bcc0..4fc1a04f30 100644 --- a/dist/native/member/memberAddRoles.d.ts.map +++ b/dist/native/member/memberAddRoles.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"memberAddRoles.d.ts","sourceRoot":"","sources":["../../../src/native/member/memberAddRoles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAElE,wBAqCE"} \ No newline at end of file +{"version":3,"file":"memberAddRoles.d.ts","sourceRoot":"","sources":["../../../src/native/member/memberAddRoles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAElE,wBAqCE"} \ No newline at end of file diff --git a/dist/native/member/memberAddRoles.js b/dist/native/member/memberAddRoles.js index 0f21e13f55..dfbaed92ed 100644 --- a/dist/native/member/memberAddRoles.js +++ b/dist/native/member/memberAddRoles.js @@ -4,7 +4,7 @@ const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$memberAddRoles", version: "1.0.0", - description: "Adds roles to a member and returns bool", + description: "Adds roles to a member, returns bool", unwrap: true, brackets: true, output: structures_1.ArgType.Boolean, @@ -34,7 +34,7 @@ exports.default = new structures_1.NativeFunction({ ], async execute(ctx, [, member, roles]) { member ??= ctx.member; - const d = await member.roles.add(roles).catch(ctx.noop); + const d = await member.roles.add(roles, ctx.reason).catch(ctx.noop); return this.success(!!d); }, }); diff --git a/dist/native/member/memberAddRoles.js.map b/dist/native/member/memberAddRoles.js.map index 3ba77641f5..5390511f63 100644 --- a/dist/native/member/memberAddRoles.js.map +++ b/dist/native/member/memberAddRoles.js.map @@ -1 +1 @@ -{"version":3,"file":"memberAddRoles.js","sourceRoot":"","sources":["../../../src/native/member/memberAddRoles.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;SACb;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC;QAChC,MAAM,KAAK,GAAG,CAAC,MAAO,CAAA;QACtB,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEvD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"memberAddRoles.js","sourceRoot":"","sources":["../../../src/native/member/memberAddRoles.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sCAAsC;IACnD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;SACb;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC;QAChC,MAAM,KAAK,GAAG,CAAC,MAAO,CAAA;QACtB,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEnE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/memberJoinedAt.js.map b/dist/native/member/memberJoinedAt.js.map index 93155b3ce9..2e83b09c7c 100644 --- a/dist/native/member/memberJoinedAt.js.map +++ b/dist/native/member/memberJoinedAt.js.map @@ -1 +1 @@ -{"version":3,"file":"memberJoinedAt.js","sourceRoot":"","sources":["../../../src/native/member/memberJoinedAt.ts"],"names":[],"mappings":";;AAAA,2CAAmE;AACnE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4CAA4C;IACzD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,MAAM,MAAM,GAAG,IAAI,IAAI,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,WAAW,EAAE,MAAM,CAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CACf,MAAM,YAAY,wBAAW;YACzB,CAAC,CAAC,MAAM,EAAE,eAAe;YACzB,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,MAAoC,CAAA,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CACvJ,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"memberJoinedAt.js","sourceRoot":"","sources":["../../../src/native/member/memberJoinedAt.ts"],"names":[],"mappings":";;AAAA,2CAAmE;AACnE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4CAA4C;IACzD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,MAAM,MAAM,GAAG,IAAI,IAAI,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,WAAW,EAAE,MAAM,CAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CACf,MAAM,YAAY,wBAAW;YACzB,CAAC,CAAC,MAAM,EAAE,eAAe;YACzB,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,MAAoC,CAAA,CAAC,SAAU,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CACxJ,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/memberPerms.d.ts b/dist/native/member/memberPerms.d.ts index 4e8a73922f..561f0bf022 100644 --- a/dist/native/member/memberPerms.d.ts +++ b/dist/native/member/memberPerms.d.ts @@ -18,6 +18,11 @@ declare const _default: NativeFunction<[{ type: ArgType.String; required: false; rest: false; +}, { + name: string; + description: string; + type: ArgType.Boolean; + rest: false; }], true>; export default _default; //# sourceMappingURL=memberPerms.d.ts.map \ No newline at end of file diff --git a/dist/native/member/memberPerms.d.ts.map b/dist/native/member/memberPerms.d.ts.map index 3aeaa17477..5c91836676 100644 --- a/dist/native/member/memberPerms.d.ts.map +++ b/dist/native/member/memberPerms.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"memberPerms.d.ts","sourceRoot":"","sources":["../../../src/native/member/memberPerms.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAElE,wBAmCE"} \ No newline at end of file +{"version":3,"file":"memberPerms.d.ts","sourceRoot":"","sources":["../../../src/native/member/memberPerms.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBA0CE"} \ No newline at end of file diff --git a/dist/native/member/memberPerms.js b/dist/native/member/memberPerms.js index 68433dc331..b7a8ec4dbf 100644 --- a/dist/native/member/memberPerms.js +++ b/dist/native/member/memberPerms.js @@ -16,14 +16,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the member from", + description: "The guild to pull the member from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "user ID", - description: "The member id to return its perms", + description: "The member to return its perms", rest: false, type: structures_1.ArgType.Member, pointer: 0, @@ -36,10 +36,17 @@ exports.default = new structures_1.NativeFunction({ required: false, rest: false, }, + { + name: "return int", + description: "Whether to return the perms as bitfield int", + type: structures_1.ArgType.Boolean, + rest: false, + }, ], - execute(ctx, [, user, sep]) { + execute(ctx, [, user, sep, int]) { const member = user ?? ctx.member ?? ctx.interaction?.member; - return this.success(new discord_js_1.PermissionsBitField(member?.permissions).toArray().join(sep || ", ")); + const perms = new discord_js_1.PermissionsBitField(member?.permissions); + return this.success(int ? perms.bitfield : perms.toArray().join(sep ?? ", ")); }, }); //# sourceMappingURL=memberPerms.js.map \ No newline at end of file diff --git a/dist/native/member/memberPerms.js.map b/dist/native/member/memberPerms.js.map index c21e0338bf..cd7f36242e 100644 --- a/dist/native/member/memberPerms.js.map +++ b/dist/native/member/memberPerms.js.map @@ -1 +1 @@ -{"version":3,"file":"memberPerms.js","sourceRoot":"","sources":["../../../src/native/member/memberPerms.ts"],"names":[],"mappings":";;;;;AAAA,2CAAqE;AACrE,kEAAyC;AACzC,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0BAA0B;IACvC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAA,eAAK,EAAC,gCAAmB,CAAC;IAClC,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,KAAK;SACd;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC;QACtB,MAAM,MAAM,GAAG,IAAI,IAAI,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,WAAW,EAAE,MAAM,CAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,gCAAmB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;IACjG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"memberPerms.js","sourceRoot":"","sources":["../../../src/native/member/memberPerms.ts"],"names":[],"mappings":";;;;;AAAA,2CAAqE;AACrE,kEAAyC;AACzC,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0BAA0B;IACvC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAA,eAAK,EAAC,gCAAmB,CAAC;IAClC,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,KAAK;SACd;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;SACd;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC;QAC3B,MAAM,MAAM,GAAG,IAAI,IAAI,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,WAAW,EAAE,MAAM,CAAA;QAC5D,MAAM,KAAK,GAAG,IAAI,gCAAmB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;IACjF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/memberRemoveRoles.d.ts.map b/dist/native/member/memberRemoveRoles.d.ts.map index 87e669e44d..291ca1f075 100644 --- a/dist/native/member/memberRemoveRoles.d.ts.map +++ b/dist/native/member/memberRemoveRoles.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"memberRemoveRoles.d.ts","sourceRoot":"","sources":["../../../src/native/member/memberRemoveRoles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAElE,wBAqCE"} \ No newline at end of file +{"version":3,"file":"memberRemoveRoles.d.ts","sourceRoot":"","sources":["../../../src/native/member/memberRemoveRoles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAElE,wBAqCE"} \ No newline at end of file diff --git a/dist/native/member/memberRemoveRoles.js b/dist/native/member/memberRemoveRoles.js index 4109f8691d..ad903e21fc 100644 --- a/dist/native/member/memberRemoveRoles.js +++ b/dist/native/member/memberRemoveRoles.js @@ -4,7 +4,7 @@ const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$memberRemoveRoles", version: "1.0.0", - description: "Removes roles from a member and returns bool", + description: "Removes roles from a member, returns bool", unwrap: true, brackets: true, output: structures_1.ArgType.Boolean, @@ -34,7 +34,7 @@ exports.default = new structures_1.NativeFunction({ ], async execute(ctx, [, member, roles]) { member ??= ctx.member; - const d = await member.roles.remove(roles).catch(ctx.noop); + const d = await member.roles.remove(roles, ctx.reason).catch(ctx.noop); return this.success(!!d); }, }); diff --git a/dist/native/member/memberRemoveRoles.js.map b/dist/native/member/memberRemoveRoles.js.map index 57bbcdced7..57443efc65 100644 --- a/dist/native/member/memberRemoveRoles.js.map +++ b/dist/native/member/memberRemoveRoles.js.map @@ -1 +1 @@ -{"version":3,"file":"memberRemoveRoles.js","sourceRoot":"","sources":["../../../src/native/member/memberRemoveRoles.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,8CAA8C;IAC3D,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;SACb;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC;QAChC,MAAM,KAAK,GAAG,CAAC,MAAO,CAAA;QACtB,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAE1D,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"memberRemoveRoles.js","sourceRoot":"","sources":["../../../src/native/member/memberRemoveRoles.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;SACb;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC;QAChC,MAAM,KAAK,GAAG,CAAC,MAAO,CAAA;QACtB,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEtE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/memberSetNickname.d.ts.map b/dist/native/member/memberSetNickname.d.ts.map index aa80f6c68b..57de2b7877 100644 --- a/dist/native/member/memberSetNickname.d.ts.map +++ b/dist/native/member/memberSetNickname.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"memberSetNickname.d.ts","sourceRoot":"","sources":["../../../src/native/member/memberSetNickname.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;AAElE,wBAiCE"} \ No newline at end of file +{"version":3,"file":"memberSetNickname.d.ts","sourceRoot":"","sources":["../../../src/native/member/memberSetNickname.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;AAElE,wBAiCE"} \ No newline at end of file diff --git a/dist/native/member/memberSetNickname.js b/dist/native/member/memberSetNickname.js index 1fccf7efd1..ed146da55b 100644 --- a/dist/native/member/memberSetNickname.js +++ b/dist/native/member/memberSetNickname.js @@ -1,14 +1,10 @@ "use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; Object.defineProperty(exports, "__esModule", { value: true }); -const noop_1 = __importDefault(require("../../functions/noop")); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$memberSetNickname", version: "1.0.7", - description: "Edits a member's nickname", + description: "Edits a member's nickname, returns bool", brackets: true, output: structures_1.ArgType.Boolean, unwrap: true, @@ -36,7 +32,7 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [, m, nick]) { - return this.success(!!(await m.setNickname(nick).catch(noop_1.default || null))); + return this.success(!!(await m.setNickname(nick, ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=memberSetNickname.js.map \ No newline at end of file diff --git a/dist/native/member/memberSetNickname.js.map b/dist/native/member/memberSetNickname.js.map index b939ed7384..556aa047c4 100644 --- a/dist/native/member/memberSetNickname.js.map +++ b/dist/native/member/memberSetNickname.js.map @@ -1 +1 @@ -{"version":3,"file":"memberSetNickname.js","sourceRoot":"","sources":["../../../src/native/member/memberSetNickname.ts"],"names":[],"mappings":";;;;;AAAA,gEAAuC;AACvC,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,cAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAA;IAC1E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"memberSetNickname.js","sourceRoot":"","sources":["../../../src/native/member/memberSetNickname.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAClF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/memberSetRoles.d.ts.map b/dist/native/member/memberSetRoles.d.ts.map index 18ca12d4e0..abfd00d73f 100644 --- a/dist/native/member/memberSetRoles.d.ts.map +++ b/dist/native/member/memberSetRoles.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"memberSetRoles.d.ts","sourceRoot":"","sources":["../../../src/native/member/memberSetRoles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAElE,wBAqCE"} \ No newline at end of file +{"version":3,"file":"memberSetRoles.d.ts","sourceRoot":"","sources":["../../../src/native/member/memberSetRoles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAElE,wBAqCE"} \ No newline at end of file diff --git a/dist/native/member/memberSetRoles.js b/dist/native/member/memberSetRoles.js index 86e4a03553..0e54c2f36a 100644 --- a/dist/native/member/memberSetRoles.js +++ b/dist/native/member/memberSetRoles.js @@ -4,7 +4,7 @@ const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$memberSetRoles", version: "1.0.0", - description: "Sets roles to a member and returns bool", + description: "Sets roles to a member, returns bool", unwrap: true, brackets: true, output: structures_1.ArgType.Boolean, @@ -34,7 +34,7 @@ exports.default = new structures_1.NativeFunction({ ], async execute(ctx, [, member, roles]) { member ??= ctx.member; - const d = await member.roles.set(roles).catch(ctx.noop); + const d = await member.roles.set(roles, ctx.reason).catch(ctx.noop); return this.success(!!d); }, }); diff --git a/dist/native/member/memberSetRoles.js.map b/dist/native/member/memberSetRoles.js.map index 55a04b81a4..984b29abb3 100644 --- a/dist/native/member/memberSetRoles.js.map +++ b/dist/native/member/memberSetRoles.js.map @@ -1 +1 @@ -{"version":3,"file":"memberSetRoles.js","sourceRoot":"","sources":["../../../src/native/member/memberSetRoles.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;SACb;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC;QAChC,MAAM,KAAK,GAAG,CAAC,MAAO,CAAA;QACtB,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEvD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"memberSetRoles.js","sourceRoot":"","sources":["../../../src/native/member/memberSetRoles.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sCAAsC;IACnD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;SACb;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC;QAChC,MAAM,KAAK,GAAG,CAAC,MAAO,CAAA;QACtB,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEnE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/pruneMembers.d.ts.map b/dist/native/member/pruneMembers.d.ts.map index f4813c68e6..fd65a55ae4 100644 --- a/dist/native/member/pruneMembers.d.ts.map +++ b/dist/native/member/pruneMembers.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"pruneMembers.d.ts","sourceRoot":"","sources":["../../../src/native/member/pruneMembers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAwDE"} \ No newline at end of file +{"version":3,"file":"pruneMembers.d.ts","sourceRoot":"","sources":["../../../src/native/member/pruneMembers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAwDE"} \ No newline at end of file diff --git a/dist/native/member/pruneMembers.js b/dist/native/member/pruneMembers.js index 9d047bdc90..77df101a8c 100644 --- a/dist/native/member/pruneMembers.js +++ b/dist/native/member/pruneMembers.js @@ -52,7 +52,7 @@ exports.default = new structures_1.NativeFunction({ days: days || 7, dry: dry || false, roles: roles, - reason: reason || undefined, + reason: reason || ctx.reason, }).catch(ctx.noop))); }, }); diff --git a/dist/native/member/pruneMembers.js.map b/dist/native/member/pruneMembers.js.map index 83b36e4388..cb3318fc2e 100644 --- a/dist/native/member/pruneMembers.js.map +++ b/dist/native/member/pruneMembers.js.map @@ -1 +1 @@ -{"version":3,"file":"pruneMembers.js","sourceRoot":"","sources":["../../../src/native/member/pruneMembers.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE;QACL,QAAQ;QACR,eAAe;KAClB;IACD,WAAW,EAAE,0EAA0E;IACvF,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAE;QAClD,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,MAAM,KAAK,CAAC,OAAO;aACf,KAAK,CAAC;YACH,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI,IAAI,CAAC;YACf,GAAG,EAAE,GAAG,IAAI,KAAK;YACjB,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,MAAM,IAAI,SAAS;SAC9B,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAC1B,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"pruneMembers.js","sourceRoot":"","sources":["../../../src/native/member/pruneMembers.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE;QACL,QAAQ;QACR,eAAe;KAClB;IACD,WAAW,EAAE,0EAA0E;IACvF,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAE;QAClD,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,MAAM,KAAK,CAAC,OAAO;aACf,KAAK,CAAC;YACH,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI,IAAI,CAAC;YACf,GAAG,EAAE,GAAG,IAAI,KAAK;YACjB,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM;SAC/B,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAC1B,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/timeout.d.ts.map b/dist/native/member/timeout.d.ts.map index abb008b26e..c51b02f505 100644 --- a/dist/native/member/timeout.d.ts.map +++ b/dist/native/member/timeout.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"timeout.d.ts","sourceRoot":"","sources":["../../../src/native/member/timeout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBA2CE"} \ No newline at end of file +{"version":3,"file":"timeout.d.ts","sourceRoot":"","sources":["../../../src/native/member/timeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBA4CE"} \ No newline at end of file diff --git a/dist/native/member/timeout.js b/dist/native/member/timeout.js index 94b2d40181..575677c493 100644 --- a/dist/native/member/timeout.js +++ b/dist/native/member/timeout.js @@ -4,12 +4,13 @@ const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$timeout", version: "1.0.0", - description: "Times a member out for X milliseconds", + description: "Times a member out for X milliseconds, returns bool", unwrap: true, aliases: [ - "$memberTimeout" + "$memberTimeout", + "$timeoutMember" ], - output: structures_1.ArgType.Number, + output: structures_1.ArgType.Boolean, brackets: true, args: [ { @@ -41,7 +42,7 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [, member, ms, reason]) { - const timeout = await member.disableCommunicationUntil(ms ? Date.now() + ms : null, reason || undefined).catch(ctx.noop); + const timeout = await member.disableCommunicationUntil(ms ? Date.now() + ms : null, reason || ctx.reason).catch(ctx.noop); return this.success(!!timeout); }, }); diff --git a/dist/native/member/timeout.js.map b/dist/native/member/timeout.js.map index 037aa2eb38..c203e4cd14 100644 --- a/dist/native/member/timeout.js.map +++ b/dist/native/member/timeout.js.map @@ -1 +1 @@ -{"version":3,"file":"timeout.js","sourceRoot":"","sources":["../../../src/native/member/timeout.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAA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O,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/unban.d.ts.map b/dist/native/member/unban.d.ts.map index acdef1f8a8..1e743d8d08 100644 --- a/dist/native/member/unban.d.ts.map +++ b/dist/native/member/unban.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"unban.d.ts","sourceRoot":"","sources":["../../../src/native/member/unban.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;AAElE,wBAoCE"} \ No newline at end of file +{"version":3,"file":"unban.d.ts","sourceRoot":"","sources":["../../../src/native/member/unban.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;AAElE,wBAqCE"} \ No newline at end of file diff --git a/dist/native/member/unban.js b/dist/native/member/unban.js index 7ae08f084d..73fe5c9a53 100644 --- a/dist/native/member/unban.js +++ b/dist/native/member/unban.js @@ -7,14 +7,15 @@ exports.default = new structures_1.NativeFunction({ brackets: true, unwrap: true, aliases: [ - "$memberUnban" + "$memberUnban", + "$unbanMember" ], output: structures_1.ArgType.Boolean, - description: "Unbans a user", + description: "Unbans a user from a guild, returns bool", args: [ { name: "guild ID", - description: "The guild to unban a user from", + description: "The guild to unban user from", rest: false, required: true, type: structures_1.ArgType.Guild, @@ -34,7 +35,7 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [guild, user, reason]) { - const unbanned = await guild.bans.remove(user, reason || undefined).catch(ctx.noop); + const unbanned = await guild.bans.remove(user, reason || ctx.reason).catch(ctx.noop); return this.success(!!unbanned); }, }); diff --git a/dist/native/member/unban.js.map b/dist/native/member/unban.js.map index 30e6b82c88..61ab8353b3 100644 --- a/dist/native/member/unban.js.map +++ b/dist/native/member/unban.js.map @@ -1 +1 @@ -{"version":3,"file":"unban.js","sourceRoot":"","sources":["../../../src/native/member/unban.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,cAAc;KACjB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,WAAW,EAAE,eAAe;IAC5B,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC;QACpC,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACnF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAA;IACnC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"unban.js","sourceRoot":"","sources":["../../../src/native/member/unban.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACL,cAAc;QACd,cAAc;KACjB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,WAAW,EAAE,0CAA0C;IACvD,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC;QACpC,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACpF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAA;IACnC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/voiceKick.d.ts.map b/dist/native/member/voiceKick.d.ts.map index 9a9cf140b6..6debd37632 100644 --- a/dist/native/member/voiceKick.d.ts.map +++ b/dist/native/member/voiceKick.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"voiceKick.d.ts","sourceRoot":"","sources":["../../../src/native/member/voiceKick.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAE1D,wBAqCE"} \ No newline at end of file +{"version":3,"file":"voiceKick.d.ts","sourceRoot":"","sources":["../../../src/native/member/voiceKick.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAE1D,wBAqCE"} \ No newline at end of file diff --git a/dist/native/member/voiceKick.js b/dist/native/member/voiceKick.js index c057c8ce3e..b9680d1632 100644 --- a/dist/native/member/voiceKick.js +++ b/dist/native/member/voiceKick.js @@ -4,7 +4,7 @@ const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$voiceKick", version: "1.4.0", - description: "Kicks a member from voice channel", + description: "Kicks a member from a voice channel, returns bool", brackets: true, aliases: [ "$memberVoiceKick" @@ -28,7 +28,7 @@ exports.default = new structures_1.NativeFunction({ }, { name: "reason", - description: "Reason to kick this user", + description: "The reason to kick this user", rest: false, required: false, type: structures_1.ArgType.String @@ -36,7 +36,7 @@ exports.default = new structures_1.NativeFunction({ ], unwrap: true, async execute(ctx, [, member, reason]) { - return this.success(!!(await member.voice.disconnect(reason ?? undefined).catch(ctx.noop))); + return this.success(!!(await member.voice.disconnect(reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=voiceKick.js.map \ No newline at end of file diff --git a/dist/native/member/voiceKick.js.map b/dist/native/member/voiceKick.js.map index ab05edb795..2cab428ddf 100644 --- a/dist/native/member/voiceKick.js.map +++ b/dist/native/member/voiceKick.js.map @@ -1 +1 @@ -{"version":3,"file":"voiceKick.js","sourceRoot":"","sources":["../../../src/native/member/voiceKick.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,kBAAkB;KACrB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,kBAAkB;SAClC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC/F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"voiceKick.js","sourceRoot":"","sources":["../../../src/native/member/voiceKick.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,kBAAkB;KACrB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,kBAAkB;SAClC;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAE;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAChG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/member/voiceMove.d.ts.map b/dist/native/member/voiceMove.d.ts.map index 858db62f29..daddd9cb9d 100644 --- a/dist/native/member/voiceMove.d.ts.map +++ b/dist/native/member/voiceMove.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"voiceMove.d.ts","sourceRoot":"","sources":["../../../src/native/member/voiceMove.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA+B,MAAM,YAAY,CAAA;AAErE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;eAiCnC,WAAW;;;;;;;AA/BlC,wBA4CE"} \ No newline at end of file +{"version":3,"file":"voiceMove.d.ts","sourceRoot":"","sources":["../../../src/native/member/voiceMove.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA+B,MAAM,YAAY,CAAA;AACrE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;eAiCnC,WAAW;;;;;;;AA/BlC,wBA4CE"} \ No newline at end of file diff --git a/dist/native/member/voiceMove.js b/dist/native/member/voiceMove.js index ca1dd97b18..cdb3641234 100644 --- a/dist/native/member/voiceMove.js +++ b/dist/native/member/voiceMove.js @@ -43,7 +43,7 @@ exports.default = new structures_1.NativeFunction({ ], unwrap: true, async execute(ctx, [, member, voice, reason]) { - return this.success(!!(await member.voice.setChannel(voice, reason || undefined).catch(ctx.noop))); + return this.success(!!(await member.voice.setChannel(voice, reason || ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=voiceMove.js.map \ No newline at end of file diff --git a/dist/native/member/voiceMove.js.map b/dist/native/member/voiceMove.js.map index 19f9a141f3..702b95bf68 100644 --- a/dist/native/member/voiceMove.js.map +++ b/dist/native/member/voiceMove.js.map @@ -1 +1 @@ -{"version":3,"file":"voiceMove.js","sourceRoot":"","sources":["../../../src/native/member/voiceMove.ts"],"names":[],"mappings":";;AAEA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,kBAAkB;KACrB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,kBAAkB;SAClC;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAE;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,KAAoC,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACrI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"voiceMove.js","sourceRoot":"","sources":["../../../src/native/member/voiceMove.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,kBAAkB;KACrB;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,kBAAkB;SAClC;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;SAC9C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAE;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,KAAoC,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACtI,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/mention/disableEveryoneMention.d.ts.map b/dist/native/mention/disableEveryoneMention.d.ts.map index 8c63f3c760..5b76c8e510 100644 --- a/dist/native/mention/disableEveryoneMention.d.ts.map +++ b/dist/native/mention/disableEveryoneMention.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"disableEveryoneMention.d.ts","sourceRoot":"","sources":["../../../src/native/mention/disableEveryoneMention.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;AAEjD,wBAUE"} \ No newline at end of file +{"version":3,"file":"disableEveryoneMention.d.ts","sourceRoot":"","sources":["../../../src/native/mention/disableEveryoneMention.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;AAEjD,wBASE"} \ No newline at end of file diff --git a/dist/native/mention/disableEveryoneMention.js b/dist/native/mention/disableEveryoneMention.js index 2d59f69cd9..97ce9d1602 100644 --- a/dist/native/mention/disableEveryoneMention.js +++ b/dist/native/mention/disableEveryoneMention.js @@ -7,7 +7,7 @@ exports.default = new structures_1.NativeFunction({ description: "Disables everyone mention", unwrap: false, execute(ctx) { - ctx.container.allowedMentions.parse = ["everyone"]; + ctx.container.unparseMention("everyone"); return this.success(); }, }); diff --git a/dist/native/mention/disableEveryoneMention.js.map b/dist/native/mention/disableEveryoneMention.js.map index 3966e84bef..342f9b3449 100644 --- a/dist/native/mention/disableEveryoneMention.js.map +++ b/dist/native/mention/disableEveryoneMention.js.map @@ -1 +1 @@ -{"version":3,"file":"disableEveryoneMention.js","sourceRoot":"","sources":["../../../src/native/mention/disableEveryoneMention.ts"],"names":[],"mappings":";;AAAA,iDAAiD;AAEjD,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2BAA2B;IACxC,MAAM,EAAE,KAAK;IACb,OAAO,CAAC,GAAG;QACP,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,GAAG,CAAC,UAAU,CAAC,CAAA;QAElD,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"disableEveryoneMention.js","sourceRoot":"","sources":["../../../src/native/mention/disableEveryoneMention.ts"],"names":[],"mappings":";;AAAA,iDAAiD;AAEjD,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2BAA2B;IACxC,MAAM,EAAE,KAAK;IACb,OAAO,CAAC,GAAG;QACP,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;QACxC,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/mention/disableRoleMentions.d.ts.map b/dist/native/mention/disableRoleMentions.d.ts.map index cdbb82ba30..052bc01303 100644 --- a/dist/native/mention/disableRoleMentions.d.ts.map +++ b/dist/native/mention/disableRoleMentions.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"disableRoleMentions.d.ts","sourceRoot":"","sources":["../../../src/native/mention/disableRoleMentions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;AAEjD,wBASE"} \ No newline at end of file +{"version":3,"file":"disableRoleMentions.d.ts","sourceRoot":"","sources":["../../../src/native/mention/disableRoleMentions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;AAEjD,wBAUE"} \ No newline at end of file diff --git a/dist/native/mention/disableRoleMentions.js b/dist/native/mention/disableRoleMentions.js index d8b667debe..f43a72d7c9 100644 --- a/dist/native/mention/disableRoleMentions.js +++ b/dist/native/mention/disableRoleMentions.js @@ -7,6 +7,7 @@ exports.default = new structures_1.NativeFunction({ description: "Disables all role mentions", unwrap: false, execute(ctx) { + ctx.container.unparseMention("roles"); ctx.container.allowedMentions.roles = []; return this.success(); }, diff --git a/dist/native/mention/disableRoleMentions.js.map b/dist/native/mention/disableRoleMentions.js.map index 4cc4c0e0db..5f5be3c5dd 100644 --- a/dist/native/mention/disableRoleMentions.js.map +++ b/dist/native/mention/disableRoleMentions.js.map @@ -1 +1 @@ -{"version":3,"file":"disableRoleMentions.js","sourceRoot":"","sources":["../../../src/native/mention/disableRoleMentions.ts"],"names":[],"mappings":";;AAAA,iDAAiD;AAEjD,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4BAA4B;IACzC,MAAM,EAAE,KAAK;IACb,OAAO,CAAC,GAAG;QACP,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,GAAG,EAAE,CAAA;QACxC,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"disableRoleMentions.js","sourceRoot":"","sources":["../../../src/native/mention/disableRoleMentions.ts"],"names":[],"mappings":";;AAAA,iDAAiD;AAEjD,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4BAA4B;IACzC,MAAM,EAAE,KAAK;IACb,OAAO,CAAC,GAAG;QACP,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA;QACrC,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,GAAG,EAAE,CAAA;QACxC,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/mention/disableUserMentions.d.ts.map b/dist/native/mention/disableUserMentions.d.ts.map index 5254133ebe..49c3c6b58d 100644 --- a/dist/native/mention/disableUserMentions.d.ts.map +++ b/dist/native/mention/disableUserMentions.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"disableUserMentions.d.ts","sourceRoot":"","sources":["../../../src/native/mention/disableUserMentions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;AAEjD,wBASE"} \ No newline at end of file +{"version":3,"file":"disableUserMentions.d.ts","sourceRoot":"","sources":["../../../src/native/mention/disableUserMentions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;AAEjD,wBAUE"} \ No newline at end of file diff --git a/dist/native/mention/disableUserMentions.js b/dist/native/mention/disableUserMentions.js index cdf10d518f..fc10ed46e9 100644 --- a/dist/native/mention/disableUserMentions.js +++ b/dist/native/mention/disableUserMentions.js @@ -7,6 +7,7 @@ exports.default = new structures_1.NativeFunction({ description: "Disables all user mentions", unwrap: false, execute(ctx) { + ctx.container.unparseMention("users"); ctx.container.allowedMentions.users = []; return this.success(); }, diff --git a/dist/native/mention/disableUserMentions.js.map b/dist/native/mention/disableUserMentions.js.map index 0b0df5bfab..20504afb94 100644 --- a/dist/native/mention/disableUserMentions.js.map +++ b/dist/native/mention/disableUserMentions.js.map @@ -1 +1 @@ -{"version":3,"file":"disableUserMentions.js","sourceRoot":"","sources":["../../../src/native/mention/disableUserMentions.ts"],"names":[],"mappings":";;AAAA,iDAAiD;AAEjD,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4BAA4B;IACzC,MAAM,EAAE,KAAK;IACb,OAAO,CAAC,GAAG;QACP,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,GAAG,EAAE,CAAA;QACxC,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"disableUserMentions.js","sourceRoot":"","sources":["../../../src/native/mention/disableUserMentions.ts"],"names":[],"mappings":";;AAAA,iDAAiD;AAEjD,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4BAA4B;IACzC,MAAM,EAAE,KAAK;IACb,OAAO,CAAC,GAAG;QACP,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA;QACrC,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,GAAG,EAAE,CAAA;QACxC,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/message/getPoll.d.ts b/dist/native/message/getPoll.d.ts new file mode 100644 index 0000000000..26320f7b95 --- /dev/null +++ b/dist/native/message/getPoll.d.ts @@ -0,0 +1,27 @@ +import { BaseChannel } from "discord.js"; +import { ArgType, NativeFunction } from "../../structures"; +import { PollProperty } from "../../properties/poll"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + required: true; + type: ArgType.Channel; + check: (i: BaseChannel) => boolean; +}, { + name: string; + description: string; + rest: false; + required: true; + type: ArgType.Message; + pointer: number; +}, { + name: string; + description: string; + rest: false; + type: ArgType.Enum; + enum: typeof PollProperty; + required: true; +}], true>; +export default _default; +//# sourceMappingURL=getPoll.d.ts.map \ No newline at end of file diff --git a/dist/native/message/getPoll.d.ts.map b/dist/native/message/getPoll.d.ts.map new file mode 100644 index 0000000000..42252f8755 --- /dev/null +++ b/dist/native/message/getPoll.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getPoll.d.ts","sourceRoot":"","sources":["../../../src/native/message/getPoll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;AAClE,OAAO,EAAkB,YAAY,EAAE,MAAM,uBAAuB,CAAA;;;;;;;eAgB7C,WAAW;;;;;;;;;;;;;;;;AAdlC,wBAsCE"} \ No newline at end of file diff --git a/dist/native/message/getPoll.js b/dist/native/message/getPoll.js new file mode 100644 index 0000000000..252b5b0e73 --- /dev/null +++ b/dist/native/message/getPoll.js @@ -0,0 +1,44 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +const poll_1 = require("../../properties/poll"); +exports.default = new structures_1.NativeFunction({ + name: "$getPoll", + version: "2.5.0", + description: "Retrieves data of a poll from a message", + aliases: ["$getMessagePoll"], + unwrap: true, + brackets: false, + args: [ + { + name: "channel ID", + description: "The channel to pull message from", + rest: false, + required: true, + type: structures_1.ArgType.Channel, + check: (i) => i.isTextBased(), + }, + { + name: "message ID", + description: "The message to retrieve data from", + rest: false, + required: true, + type: structures_1.ArgType.Message, + pointer: 0, + }, + { + name: "property", + description: "The property to pull", + rest: false, + type: structures_1.ArgType.Enum, + enum: poll_1.PollProperty, + required: true, + }, + ], + output: structures_1.ArgType.Unknown, + execute(ctx, [, msg, prop]) { + const poll = (msg ?? ctx.message)?.poll; + return this.success(poll ? poll_1.PollProperties[prop](poll) : null); + }, +}); +//# sourceMappingURL=getPoll.js.map \ No newline at end of file diff --git a/dist/native/message/getPoll.js.map b/dist/native/message/getPoll.js.map new file mode 100644 index 0000000000..05bb7cc49e --- /dev/null +++ b/dist/native/message/getPoll.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getPoll.js","sourceRoot":"","sources":["../../../src/native/message/getPoll.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAClE,gDAAoE;AAEpE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,OAAO,EAAE,CAAC,iBAAiB,CAAC;IAC5B,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;SAC7C;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,mBAAY;YAClB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC;QACtB,MAAM,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,EAAE,IAAI,CAAA;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,qBAAc,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IACjE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/message/hasComponents.d.ts b/dist/native/message/hasComponents.d.ts new file mode 100644 index 0000000000..0cfa308a08 --- /dev/null +++ b/dist/native/message/hasComponents.d.ts @@ -0,0 +1,19 @@ +import { BaseChannel } from "discord.js"; +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + type: ArgType.Channel; + rest: false; + required: true; + check: (i: BaseChannel) => boolean; +}, { + name: string; + pointer: number; + rest: false; + required: true; + type: ArgType.Message; + description: string; +}], true>; +export default _default; +//# sourceMappingURL=hasComponents.d.ts.map \ No newline at end of file diff --git a/dist/native/message/hasComponents.d.ts.map b/dist/native/message/hasComponents.d.ts.map new file mode 100644 index 0000000000..1858fa01d7 --- /dev/null +++ b/dist/native/message/hasComponents.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"hasComponents.d.ts","sourceRoot":"","sources":["../../../src/native/message/hasComponents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAe3C,WAAW;;;;;;;;;AAblC,wBA4BE"} \ No newline at end of file diff --git a/dist/native/message/hasComponents.js b/dist/native/message/hasComponents.js new file mode 100644 index 0000000000..89696a4df8 --- /dev/null +++ b/dist/native/message/hasComponents.js @@ -0,0 +1,33 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$hasComponents", + version: "2.5.0", + description: "Checks whether given message has components", + brackets: false, + unwrap: true, + args: [ + { + name: "channel ID", + description: "The channel to get message from", + type: structures_1.ArgType.Channel, + rest: false, + required: true, + check: (i) => "messages" in i + }, + { + name: "message ID", + pointer: 0, + rest: false, + required: true, + type: structures_1.ArgType.Message, + description: "The message to check for components" + } + ], + output: structures_1.ArgType.Boolean, + execute(ctx, [, msg]) { + return this.success(!!(msg ?? ctx.message)?.components.length); + }, +}); +//# sourceMappingURL=hasComponents.js.map \ No newline at end of file diff --git a/dist/native/message/hasComponents.js.map b/dist/native/message/hasComponents.js.map new file mode 100644 index 0000000000..e5cbd2762d --- /dev/null +++ b/dist/native/message/hasComponents.js.map @@ -0,0 +1 @@ +{"version":3,"file":"hasComponents.js","sourceRoot":"","sources":["../../../src/native/message/hasComponents.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,UAAU,IAAI,CAAC;SAC7C;QACD;YACI,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,WAAW,EAAE,qCAAqC;SACrD;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAClE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/message/pinMessage.d.ts.map b/dist/native/message/pinMessage.d.ts.map index cf3c0c32a1..cbc9b7421f 100644 --- a/dist/native/message/pinMessage.d.ts.map +++ b/dist/native/message/pinMessage.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"pinMessage.d.ts","sourceRoot":"","sources":["../../../src/native/message/pinMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAiB3C,WAAW;;;;;;;;;AAdlC,wBA4BE"} \ No newline at end of file +{"version":3,"file":"pinMessage.d.ts","sourceRoot":"","sources":["../../../src/native/message/pinMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;;;AAdlC,wBA4BE"} \ No newline at end of file diff --git a/dist/native/message/pinMessage.js b/dist/native/message/pinMessage.js index ad1dd7b6e5..d8ed6d618d 100644 --- a/dist/native/message/pinMessage.js +++ b/dist/native/message/pinMessage.js @@ -27,7 +27,7 @@ exports.default = new structures_1.NativeFunction({ } ], async execute(ctx, [, m]) { - return this.success(!!(await (m ?? ctx.message)?.pin().catch(ctx.noop))); + return this.success(!!(await (m ?? ctx.message)?.pin(ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=pinMessage.js.map \ No newline at end of file diff --git a/dist/native/message/pinMessage.js.map b/dist/native/message/pinMessage.js.map index 70fd81cab5..45a59703ab 100644 --- a/dist/native/message/pinMessage.js.map +++ b/dist/native/message/pinMessage.js.map @@ -1 +1 @@ -{"version":3,"file":"pinMessage.js","sourceRoot":"","sources":["../../../src/native/message/pinMessage.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;SAC7C;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAE;QACrB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC5E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"pinMessage.js","sourceRoot":"","sources":["../../../src/native/message/pinMessage.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;SAC7C;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAE;QACrB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACtF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/message/unpinMessage.d.ts.map b/dist/native/message/unpinMessage.d.ts.map index 88aaaad880..faee65efb9 100644 --- a/dist/native/message/unpinMessage.d.ts.map +++ b/dist/native/message/unpinMessage.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"unpinMessage.d.ts","sourceRoot":"","sources":["../../../src/native/message/unpinMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAiB3C,WAAW;;;;;;;;;AAdlC,wBA4BE"} \ No newline at end of file +{"version":3,"file":"unpinMessage.d.ts","sourceRoot":"","sources":["../../../src/native/message/unpinMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;;;AAdlC,wBA4BE"} \ No newline at end of file diff --git a/dist/native/message/unpinMessage.js b/dist/native/message/unpinMessage.js index 2ba5abfc5a..6007d50b0e 100644 --- a/dist/native/message/unpinMessage.js +++ b/dist/native/message/unpinMessage.js @@ -27,7 +27,7 @@ exports.default = new structures_1.NativeFunction({ } ], async execute(ctx, [, m]) { - return this.success(!!(await (m ?? ctx.message)?.unpin().catch(ctx.noop))); + return this.success(!!(await (m ?? ctx.message)?.unpin(ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=unpinMessage.js.map \ No newline at end of file diff --git a/dist/native/message/unpinMessage.js.map b/dist/native/message/unpinMessage.js.map index 80e3387df8..a88c908ec8 100644 --- a/dist/native/message/unpinMessage.js.map +++ b/dist/native/message/unpinMessage.js.map @@ -1 +1 @@ -{"version":3,"file":"unpinMessage.js","sourceRoot":"","sources":["../../../src/native/message/unpinMessage.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;SAC7C;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAE;QACrB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC9E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"unpinMessage.js","sourceRoot":"","sources":["../../../src/native/message/unpinMessage.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;SAC7C;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAE;QACrB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACxF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/addRole.d.ts b/dist/native/role/addRole.d.ts index 8af7200256..f4ae76d685 100644 --- a/dist/native/role/addRole.d.ts +++ b/dist/native/role/addRole.d.ts @@ -91,6 +91,7 @@ declare const _default: NativeFunction<[{ readonly SendVoiceMessages: bigint; readonly SendPolls: bigint; readonly UseExternalApps: bigint; + readonly PinMessages: bigint; }; type: ArgType.String; }], true>; diff --git a/dist/native/role/addRole.d.ts.map b/dist/native/role/addRole.d.ts.map index adad0263c1..8b4e245abc 100644 --- a/dist/native/role/addRole.d.ts.map +++ b/dist/native/role/addRole.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"addRole.d.ts","sourceRoot":"","sources":["../../../src/native/role/addRole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBA0EE"} \ No newline at end of file +{"version":3,"file":"addRole.d.ts","sourceRoot":"","sources":["../../../src/native/role/addRole.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBA2EE"} \ No newline at end of file diff --git a/dist/native/role/addRole.js b/dist/native/role/addRole.js index 08b967cfd1..bb033c20bf 100644 --- a/dist/native/role/addRole.js +++ b/dist/native/role/addRole.js @@ -65,13 +65,14 @@ exports.default = new structures_1.NativeFunction({ async execute(ctx, [guild, name, color, icon, hoist, mentionable, pos, perms]) { const created = await guild.roles .create({ - color: color || undefined, + colors: !color ? undefined : { primaryColor: color }, icon: icon || undefined, hoist: hoist || false, mentionable: mentionable || false, name, permissions: perms || [], position: pos || undefined, + reason: ctx.reason }) .catch(ctx.noop); return this.success(created ? created.id : undefined); diff --git a/dist/native/role/addRole.js.map b/dist/native/role/addRole.js.map index a3a4c56778..47210e94c8 100644 --- a/dist/native/role/addRole.js.map +++ b/dist/native/role/addRole.js.map @@ -1 +1 @@ -{"version":3,"file":"addRole.js","sourceRoot":"","sources":["../../../src/native/role/addRole.ts"],"names":[],"mappings":";;AAAA,2CAAoF;AAEpF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gBAAgB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AAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACzD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"addRole.js","sourceRoot":"","sources":["../../../src/native/role/addRole.ts"],"names":[],"mappings":";;AAAA,2CAAoF;AACpF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;SACd;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;SACd;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,gCAAmB;YACzB,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,KAAK,CAAC;QACzE,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,KAAK;aAC5B,MAAM,CAAC;YACJ,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,KAAwB,EAAE;YACvE,IAAI,EAAE,IAAI,IAAI,SAAS;YACvB,KAAK,EAAE,KAAK,IAAI,KAAK;YACrB,WAAW,EAAE,WAAW,IAAI,KAAK;YACjC,IAAI;YACJ,WAAW,EAAG,KAA6B,IAAI,EAAE;YACjD,QAAQ,EAAE,GAAG,IAAI,SAAS;YAC1B,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACzD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/cloneRole.d.ts.map b/dist/native/role/cloneRole.d.ts.map index bd5ebb0613..c9837d38f7 100644 --- a/dist/native/role/cloneRole.d.ts.map +++ b/dist/native/role/cloneRole.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"cloneRole.d.ts","sourceRoot":"","sources":["../../../src/native/role/cloneRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;AAElE,wBA4CE"} \ No newline at end of file +{"version":3,"file":"cloneRole.d.ts","sourceRoot":"","sources":["../../../src/native/role/cloneRole.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;AAElE,wBA6CE"} \ No newline at end of file diff --git a/dist/native/role/cloneRole.js b/dist/native/role/cloneRole.js index 70b86cf27f..2f8ba6bd7f 100644 --- a/dist/native/role/cloneRole.js +++ b/dist/native/role/cloneRole.js @@ -35,12 +35,13 @@ exports.default = new structures_1.NativeFunction({ const created = await guild.roles .create({ name: name || role.name, - color: role.color, + colors: role.colors, icon: role.icon, hoist: role.hoist, mentionable: role.mentionable, permissions: role.permissions, unicodeEmoji: role.unicodeEmoji, + reason: ctx.reason }) .catch(ctx.noop); return this.success(created ? created.id : undefined); diff --git a/dist/native/role/cloneRole.js.map b/dist/native/role/cloneRole.js.map index 778e7c13d3..a5e6aa10cb 100644 --- a/dist/native/role/cloneRole.js.map +++ b/dist/native/role/cloneRole.js.map @@ -1 +1 @@ -{"version":3,"file":"cloneRole.js","sourceRoot":"","sources":["../../../src/native/role/cloneRole.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gEAAgE;IAC7E,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC;QAClC,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,KAAK;aAC5B,MAAM,CAAC;YACJ,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC,IAAI;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,YAAY,EAAE,IAAI,CAAC,YAAY;SAClC,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACzD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"cloneRole.js","sourceRoot":"","sources":["../../../src/native/role/cloneRole.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gEAAgE;IAC7E,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC;QAClC,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,KAAK;aAC5B,MAAM,CAAC;YACJ,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC,IAAI;YACvB,MAAM,EAAE,IAAI,CAAC,MAA8B;YAC3C,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACzD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/deleteRoles.d.ts.map b/dist/native/role/deleteRoles.d.ts.map index 05e5e35d68..b7dc14fd15 100644 --- a/dist/native/role/deleteRoles.d.ts.map +++ b/dist/native/role/deleteRoles.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"deleteRoles.d.ts","sourceRoot":"","sources":["../../../src/native/role/deleteRoles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;AAGlE,wBAkCE"} \ No newline at end of file +{"version":3,"file":"deleteRoles.d.ts","sourceRoot":"","sources":["../../../src/native/role/deleteRoles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;AAElE,wBAkCE"} \ No newline at end of file diff --git a/dist/native/role/deleteRoles.js b/dist/native/role/deleteRoles.js index 2906f2ce9f..c1a72c0ab3 100644 --- a/dist/native/role/deleteRoles.js +++ b/dist/native/role/deleteRoles.js @@ -29,7 +29,7 @@ exports.default = new structures_1.NativeFunction({ let count = 0; for (let i = 0, len = roles.length; i < len; i++) { const role = roles[i]; - const success = await role.delete().catch(ctx.noop); + const success = await role.delete(ctx.reason).catch(ctx.noop); if (success) count++; } diff --git a/dist/native/role/deleteRoles.js.map b/dist/native/role/deleteRoles.js.map index 32a30a310b..af09f87ceb 100644 --- a/dist/native/role/deleteRoles.js.map +++ b/dist/native/role/deleteRoles.js.map @@ -1 +1 @@ -{"version":3,"file":"deleteRoles.js","sourceRoot":"","sources":["../../../src/native/role/deleteRoles.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,WAAW,EAAE,yDAAyD;IACtE,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,CAAC;QACxB,IAAI,KAAK,GAAG,CAAC,CAAA;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YAC9C,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;YACrB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YACnD,IAAI,OAAO;gBAAE,KAAK,EAAE,CAAA;SACvB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"deleteRoles.js","sourceRoot":"","sources":["../../../src/native/role/deleteRoles.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,WAAW,EAAE,yDAAyD;IACtE,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,CAAC;QACxB,IAAI,KAAK,GAAG,CAAC,CAAA;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YAC9C,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;YACrB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YAC7D,IAAI,OAAO;gBAAE,KAAK,EAAE,CAAA;SACvB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/editRole.d.ts.map b/dist/native/role/editRole.d.ts.map index 319a41d5c2..ddfe05b7c9 100644 --- a/dist/native/role/editRole.d.ts.map +++ b/dist/native/role/editRole.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"editRole.d.ts","sourceRoot":"","sources":["../../../src/native/role/editRole.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGlE,wBA0EE"} \ No newline at end of file +{"version":3,"file":"editRole.d.ts","sourceRoot":"","sources":["../../../src/native/role/editRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGlE,wBAyEE"} \ No newline at end of file diff --git a/dist/native/role/editRole.js b/dist/native/role/editRole.js index 3c55adaf27..e9fad247e0 100644 --- a/dist/native/role/editRole.js +++ b/dist/native/role/editRole.js @@ -4,7 +4,7 @@ const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$editRole", version: "1.0.7", - description: "Edits role data, returns boolean", + description: "Edits a role on a guild, returns boolean", unwrap: true, output: structures_1.ArgType.Boolean, args: [ @@ -24,19 +24,19 @@ exports.default = new structures_1.NativeFunction({ required: true, }, { - name: "role name", + name: "name", description: "The new role name, leave empty to not modify", rest: false, type: structures_1.ArgType.String, }, { - name: "role color", + name: "color", description: "The new role color, leave empty to not modify", rest: false, type: structures_1.ArgType.String, }, { - name: "role icon", + name: "icon", description: "The new role icon, leave empty to not modify", rest: false, type: structures_1.ArgType.String, @@ -62,16 +62,16 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [, role, name, color, icon, hoist, mentionable, perms]) { - return this.success(!!(await role - .edit({ - color: color || undefined, + const edit = await role.edit({ + colors: !color ? undefined : { primaryColor: color }, hoist: hoist || undefined, icon: icon || undefined, mentionable: mentionable || undefined, name: name || undefined, permissions: perms || undefined, - }) - .catch(ctx.noop))); + reason: ctx.reason + }).catch(ctx.noop); + return this.success(!!edit); }, }); //# sourceMappingURL=editRole.js.map \ No newline at end of file diff --git a/dist/native/role/editRole.js.map b/dist/native/role/editRole.js.map index 18b850c6ff..0376385dd8 100644 --- a/dist/native/role/editRole.js.map +++ b/dist/native/role/editRole.js.map @@ -1 +1 @@ -{"version":3,"file":"editRole.js","sourceRoot":"","sources":["../../../src/native/role/editRole.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,kCAAkC;IAC/C,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAA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CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,IAAI;aACR,IAAI,CAAC;YACF,KAAK,EAAG,KAAyB,IAAI,SAAS;YAC9C,KAAK,EAAE,KAAK,IAAI,SAAS;YACzB,IAAI,EAAE,IAAI,IAAI,SAAS;YACvB,WAAW,EAAE,WAAW,IAAI,SAAS;YACrC,IAAI,EAAE,IAAI,IAAI,SAAS;YACvB,WAAW,EAAE,KAAK,IAAI,SAAS;SAClC,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACxB,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"editRole.js","sourceRoot":"","sources":["../../../src/native/role/editRole.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,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.d.ts new file mode 100644 index 0000000000..6537bad869 --- /dev/null +++ b/dist/native/role/editRoleColors.d.ts @@ -0,0 +1,33 @@ +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + required: true; + type: ArgType.Guild; +}, { + name: string; + type: ArgType.Role; + description: string; + rest: false; + required: true; + pointer: number; +}, { + name: string; + description: string; + rest: false; + type: ArgType.Color; + required: true; +}, { + name: string; + description: string; + rest: false; + type: ArgType.Color; +}, { + name: string; + description: string; + rest: false; + type: ArgType.Color; +}], true>; +export default _default; +//# sourceMappingURL=editRoleColors.d.ts.map \ No newline at end of file diff --git a/dist/native/role/editRoleColors.d.ts.map b/dist/native/role/editRoleColors.d.ts.map new file mode 100644 index 0000000000..bdfe9f2b8a --- /dev/null +++ b/dist/native/role/editRoleColors.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"editRoleColors.d.ts","sourceRoot":"","sources":["../../../src/native/role/editRoleColors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAmDE"} \ No newline at end of file diff --git a/dist/native/role/editRoleColors.js b/dist/native/role/editRoleColors.js new file mode 100644 index 0000000000..3f658721a4 --- /dev/null +++ b/dist/native/role/editRoleColors.js @@ -0,0 +1,56 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$editRoleColors", + version: "2.5.0", + description: "Edits a role's colors, returns boolean", + aliases: ["$editRoleColor"], + unwrap: true, + brackets: true, + args: [ + { + name: "guild ID", + description: "The guild to pull the role from", + rest: false, + required: true, + type: structures_1.ArgType.Guild, + }, + { + name: "role ID", + type: structures_1.ArgType.Role, + description: "The role to edit colors for", + rest: false, + required: true, + pointer: 0, + }, + { + name: "primary", + description: "The new primary color", + rest: false, + type: structures_1.ArgType.Color, + required: true, + }, + { + name: "secondary", + description: "The new secondary color", + rest: false, + type: structures_1.ArgType.Color, + }, + { + name: "tertiary", + description: "The new tertiary color", + rest: false, + type: structures_1.ArgType.Color, + }, + ], + output: structures_1.ArgType.Boolean, + async execute(ctx, [, role, primary, secondary, tertiary]) { + return this.success(!!(await role.setColors({ + primaryColor: primary, + secondaryColor: secondary || undefined, + tertiaryColor: tertiary || undefined + }, ctx.reason).catch(ctx.noop))); + }, +}); +//# sourceMappingURL=editRoleColors.js.map \ No newline at end of file diff --git a/dist/native/role/editRoleColors.js.map b/dist/native/role/editRoleColors.js.map new file mode 100644 index 0000000000..7474e6707c --- /dev/null +++ b/dist/native/role/editRoleColors.js.map @@ -0,0 +1 @@ +{"version":3,"file":"editRoleColors.js","sourceRoot":"","sources":["../../../src/native/role/editRoleColors.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wCAAwC;IACrD,OAAO,EAAE,CAAC,gBAAgB,CAAC;IAC3B,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;SACb;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC;YACxC,YAAY,EAAE,OAAO;YACrB,cAAc,EAAE,SAAS,IAAI,SAAS;YACtC,aAAa,EAAE,QAAQ,IAAI,SAAS;SACvC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACpC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/editRoleIcon.js b/dist/native/role/editRoleIcon.js index fb1c41e0d4..a3234fa09a 100644 --- a/dist/native/role/editRoleIcon.js +++ b/dist/native/role/editRoleIcon.js @@ -32,7 +32,7 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [, role, url]) { - return this.success(!!(await role.setIcon(url).catch(ctx.noop))); + return this.success(!!(await role.setIcon(url, ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=editRoleIcon.js.map \ No newline at end of file diff --git a/dist/native/role/editRoleIcon.js.map b/dist/native/role/editRoleIcon.js.map index d06051fbaa..28a7724d9a 100644 --- a/dist/native/role/editRoleIcon.js.map +++ b/dist/native/role/editRoleIcon.js.map @@ -1 +1 @@ -{"version":3,"file":"editRoleIcon.js","sourceRoot":"","sources":["../../../src/native/role/editRoleIcon.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sCAAsC;IACnD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACpE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"editRoleIcon.js","sourceRoot":"","sources":["../../../src/native/role/editRoleIcon.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sCAAsC;IACnD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAChF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/editRoleName.d.ts.map b/dist/native/role/editRoleName.d.ts.map index 8386b51ec4..04202c3506 100644 --- a/dist/native/role/editRoleName.d.ts.map +++ b/dist/native/role/editRoleName.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"editRoleName.d.ts","sourceRoot":"","sources":["../../../src/native/role/editRoleName.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAElE,wBAkCE"} \ No newline at end of file +{"version":3,"file":"editRoleName.d.ts","sourceRoot":"","sources":["../../../src/native/role/editRoleName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAElE,wBAkCE"} \ No newline at end of file diff --git a/dist/native/role/editRoleName.js b/dist/native/role/editRoleName.js index 9dfb18f3ef..3fa85d7038 100644 --- a/dist/native/role/editRoleName.js +++ b/dist/native/role/editRoleName.js @@ -33,7 +33,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [, role, name]) { - return this.success(!!(await role.setName(name).catch(ctx.noop))); + return this.success(!!(await role.setName(name, ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=editRoleName.js.map \ No newline at end of file diff --git a/dist/native/role/editRoleName.js.map b/dist/native/role/editRoleName.js.map index ecdd19405c..89be9c61f1 100644 --- a/dist/native/role/editRoleName.js.map +++ b/dist/native/role/editRoleName.js.map @@ -1 +1 @@ -{"version":3,"file":"editRoleName.js","sourceRoot":"","sources":["../../../src/native/role/editRoleName.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sCAAsC;IACnD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACrE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"editRoleName.js","sourceRoot":"","sources":["../../../src/native/role/editRoleName.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sCAAsC;IACnD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/editRolePerms.js b/dist/native/role/editRolePerms.js index 45ec625561..099c7698af 100644 --- a/dist/native/role/editRolePerms.js +++ b/dist/native/role/editRolePerms.js @@ -33,7 +33,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [, role, perms]) { - return this.success(!!(await role.setPermissions(perms).catch(ctx.noop))); + return this.success(!!(await role.setPermissions(perms, ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=editRolePerms.js.map \ No newline at end of file diff --git a/dist/native/role/editRolePerms.js.map b/dist/native/role/editRolePerms.js.map index 809f9a7064..ad1f4c2e37 100644 --- a/dist/native/role/editRolePerms.js.map +++ b/dist/native/role/editRolePerms.js.map @@ -1 +1 @@ -{"version":3,"file":"editRolePerms.js","sourceRoot":"","sources":["../../../src/native/role/editRolePerms.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6CAA6C;IAC1D,OAAO,EAAE,CAAC,kBAAkB,CAAC;IAC7B,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,iDAAiD;YAC9D,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,UAAU;SAC3B;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC7E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"editRolePerms.js","sourceRoot":"","sources":["../../../src/native/role/editRolePerms.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6CAA6C;IAC1D,OAAO,EAAE,CAAC,kBAAkB,CAAC;IAC7B,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,iDAAiD;YAC9D,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,UAAU;SAC3B;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACzF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/editRolePosition.d.ts.map b/dist/native/role/editRolePosition.d.ts.map index 442c75c39f..938ad9bb6d 100644 --- a/dist/native/role/editRolePosition.d.ts.map +++ b/dist/native/role/editRolePosition.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"editRolePosition.d.ts","sourceRoot":"","sources":["../../../src/native/role/editRolePosition.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAElE,wBAkCE"} \ No newline at end of file +{"version":3,"file":"editRolePosition.d.ts","sourceRoot":"","sources":["../../../src/native/role/editRolePosition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAElE,wBAkCE"} \ No newline at end of file diff --git a/dist/native/role/editRolePosition.js b/dist/native/role/editRolePosition.js index 80baef9e07..52c49d8ccf 100644 --- a/dist/native/role/editRolePosition.js +++ b/dist/native/role/editRolePosition.js @@ -33,7 +33,7 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [, role, pos]) { - return this.success(!!(await role.setPosition(pos).catch(ctx.noop))); + return this.success(!!(await role.setPosition(pos, { reason: ctx.reason }).catch(ctx.noop))); }, }); //# sourceMappingURL=editRolePosition.js.map \ No newline at end of file diff --git a/dist/native/role/editRolePosition.js.map b/dist/native/role/editRolePosition.js.map index 248557f08c..d60e207b72 100644 --- a/dist/native/role/editRolePosition.js.map +++ b/dist/native/role/editRolePosition.js.map @@ -1 +1 @@ -{"version":3,"file":"editRolePosition.js","sourceRoot":"","sources":["../../../src/native/role/editRolePosition.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACxE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"editRolePosition.js","sourceRoot":"","sources":["../../../src/native/role/editRolePosition.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAChG,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/editRoleUnicodeEmoji.js b/dist/native/role/editRoleUnicodeEmoji.js index 0e43fdab10..d517e0db8e 100644 --- a/dist/native/role/editRoleUnicodeEmoji.js +++ b/dist/native/role/editRoleUnicodeEmoji.js @@ -32,7 +32,7 @@ exports.default = new structures_1.NativeFunction({ ], brackets: true, async execute(ctx, [, role, emoji]) { - return this.success(!!(await role.setUnicodeEmoji(emoji).catch(ctx.noop))); + return this.success(!!(await role.setUnicodeEmoji(emoji, ctx.reason).catch(ctx.noop))); }, }); //# sourceMappingURL=editRoleUnicodeEmoji.js.map \ No newline at end of file diff --git a/dist/native/role/editRoleUnicodeEmoji.js.map b/dist/native/role/editRoleUnicodeEmoji.js.map index 775cf4cd09..3dc55faf23 100644 --- a/dist/native/role/editRoleUnicodeEmoji.js.map +++ b/dist/native/role/editRoleUnicodeEmoji.js.map @@ -1 +1 @@ -{"version":3,"file":"editRoleUnicodeEmoji.js","sourceRoot":"","sources":["../../../src/native/role/editRoleUnicodeEmoji.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,mDAAmD;YAChE,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC9E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"editRoleUnicodeEmoji.js","sourceRoot":"","sources":["../../../src/native/role/editRoleUnicodeEmoji.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,mDAAmD;YAChE,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC1F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/randomRoleID.js b/dist/native/role/randomRoleID.js index 3b0cbcbdbd..2fe8f8eddc 100644 --- a/dist/native/role/randomRoleID.js +++ b/dist/native/role/randomRoleID.js @@ -10,7 +10,7 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild to get the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, diff --git a/dist/native/role/randomRoleID.js.map b/dist/native/role/randomRoleID.js.map index bcb95bc6c7..4805a68381 100644 --- a/dist/native/role/randomRoleID.js.map +++ b/dist/native/role/randomRoleID.js.map @@ -1 +1 @@ -{"version":3,"file":"randomRoleID.js","sourceRoot":"","sources":["../../../src/native/role/randomRoleID.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,IAAI,GAAG,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAA;IACtE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"randomRoleID.js","sourceRoot":"","sources":["../../../src/native/role/randomRoleID.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,IAAI,GAAG,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAA;IACtE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleColor.d.ts b/dist/native/role/roleColor.d.ts index b05c584604..8a2abbbecd 100644 --- a/dist/native/role/roleColor.d.ts +++ b/dist/native/role/roleColor.d.ts @@ -1,4 +1,9 @@ import { ArgType, NativeFunction } from "../../structures"; +export declare enum RoleColor { + Primary = "primaryColor", + Secondary = "secondaryColor", + Tertiary = "tertiaryColor" +} declare const _default: NativeFunction<[{ name: string; description: string; @@ -12,6 +17,12 @@ declare const _default: NativeFunction<[{ type: ArgType.Role; pointer: number; required: true; +}, { + name: string; + description: string; + rest: false; + type: ArgType.Enum; + enum: typeof RoleColor; }], true>; export default _default; //# sourceMappingURL=roleColor.d.ts.map \ No newline at end of file diff --git a/dist/native/role/roleColor.d.ts.map b/dist/native/role/roleColor.d.ts.map index befb8e07a1..59e902b121 100644 --- a/dist/native/role/roleColor.d.ts.map +++ b/dist/native/role/roleColor.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"roleColor.d.ts","sourceRoot":"","sources":["../../../src/native/role/roleColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;AAElE,wBA2BE"} \ No newline at end of file +{"version":3,"file":"roleColor.d.ts","sourceRoot":"","sources":["../../../src/native/role/roleColor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;AAElE,oBAAY,SAAS;IACjB,OAAO,iBAAiB;IACxB,SAAS,mBAAmB;IAC5B,QAAQ,kBAAkB;CAC7B;;;;;;;;;;;;;;;;;;;;;AAED,wBAmCE"} \ No newline at end of file diff --git a/dist/native/role/roleColor.js b/dist/native/role/roleColor.js index 0a12a4dff8..b973fedd06 100644 --- a/dist/native/role/roleColor.js +++ b/dist/native/role/roleColor.js @@ -1,32 +1,48 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.RoleColor = void 0; +const hex_1 = require("../../functions/hex"); const structures_1 = require("../../structures"); +var RoleColor; +(function (RoleColor) { + RoleColor["Primary"] = "primaryColor"; + RoleColor["Secondary"] = "secondaryColor"; + RoleColor["Tertiary"] = "tertiaryColor"; +})(RoleColor || (exports.RoleColor = RoleColor = {})); exports.default = new structures_1.NativeFunction({ name: "$roleColor", version: "1.0.0", - description: "Returns the role color", + description: "Returns the color of a role", brackets: false, unwrap: true, output: structures_1.ArgType.Color, args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its color", + description: "The role to return its color", rest: false, type: structures_1.ArgType.Role, pointer: 0, required: true, }, + { + name: "color", + description: "The role color to return", + rest: false, + type: structures_1.ArgType.Enum, + enum: RoleColor + }, ], - execute(ctx, [, role]) { - return this.success((role ?? ctx.role)?.hexColor); + execute(ctx, [, role, color]) { + const int = (role ?? ctx.role)?.colors[color || RoleColor.Primary]; + return this.success(int ? "#" + (0, hex_1.int2hex)(int) : null); }, }); //# sourceMappingURL=roleColor.js.map \ No newline at end of file diff --git a/dist/native/role/roleColor.js.map b/dist/native/role/roleColor.js.map index 6a5fe9deb8..bb9330d026 100644 --- a/dist/native/role/roleColor.js.map +++ b/dist/native/role/roleColor.js.map @@ -1 +1 @@ -{"version":3,"file":"roleColor.js","sourceRoot":"","sources":["../../../src/native/role/roleColor.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wBAAwB;IACrC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,KAAK;IACrB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAA;IACrD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleColor.js","sourceRoot":"","sources":["../../../src/native/role/roleColor.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,iDAAkE;AAElE,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,qCAAwB,CAAA;IACxB,yCAA4B,CAAA;IAC5B,uCAA0B,CAAA;AAC9B,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,KAAK;IACrB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,SAAS;SAClB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC;QACxB,MAAM,GAAG,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC,OAAO,CAAC,CAAA;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,IAAA,aAAO,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IACxD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleCreatedAt.js b/dist/native/role/roleCreatedAt.js index 074fdde2e2..6999dc1656 100644 --- a/dist/native/role/roleCreatedAt.js +++ b/dist/native/role/roleCreatedAt.js @@ -11,14 +11,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its creation date", + description: "The role to return its creation date", rest: false, type: structures_1.ArgType.Role, pointer: 0, diff --git a/dist/native/role/roleCreatedAt.js.map b/dist/native/role/roleCreatedAt.js.map index b97e9c8301..2b1b5a50ff 100644 --- a/dist/native/role/roleCreatedAt.js.map +++ b/dist/native/role/roleCreatedAt.js.map @@ -1 +1 @@ -{"version":3,"file":"roleCreatedAt.js","sourceRoot":"","sources":["../../../src/native/role/roleCreatedAt.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC,CAAA;IAC7D,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleCreatedAt.js","sourceRoot":"","sources":["../../../src/native/role/roleCreatedAt.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC,CAAA;IAC7D,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleEditable.js b/dist/native/role/roleEditable.js index c57beb6d2b..3d06a6e3c9 100644 --- a/dist/native/role/roleEditable.js +++ b/dist/native/role/roleEditable.js @@ -11,14 +11,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its editable state", + description: "The role to return its editable state", rest: false, type: structures_1.ArgType.Role, pointer: 0, diff --git a/dist/native/role/roleEditable.js.map b/dist/native/role/roleEditable.js.map index e24def085b..c926c9d904 100644 --- a/dist/native/role/roleEditable.js.map +++ b/dist/native/role/roleEditable.js.map @@ -1 +1 @@ -{"version":3,"file":"roleEditable.js","sourceRoot":"","sources":["../../../src/native/role/roleEditable.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAA;IACrD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleEditable.js","sourceRoot":"","sources":["../../../src/native/role/roleEditable.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAA;IACrD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleExists.js b/dist/native/role/roleExists.js index c1033a1069..85aa32a82c 100644 --- a/dist/native/role/roleExists.js +++ b/dist/native/role/roleExists.js @@ -11,7 +11,7 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild to check for the role", + description: "The guild to pull the role from", type: structures_1.ArgType.Guild, rest: false, required: true, diff --git a/dist/native/role/roleFlags.js b/dist/native/role/roleFlags.js index c2c9045ba5..c5f072d440 100644 --- a/dist/native/role/roleFlags.js +++ b/dist/native/role/roleFlags.js @@ -16,14 +16,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its flags", + description: "The role to return its flags", rest: false, type: structures_1.ArgType.Role, pointer: 0, diff --git a/dist/native/role/roleFlags.js.map b/dist/native/role/roleFlags.js.map index 2f2315bb1f..8adba94524 100644 --- a/dist/native/role/roleFlags.js.map +++ b/dist/native/role/roleFlags.js.map @@ -1 +1 @@ -{"version":3,"file":"roleFlags.js","sourceRoot":"","sources":["../../../src/native/role/roleFlags.ts"],"names":[],"mappings":";;;;;AAAA,2CAAsC;AACtC,iDAAkE;AAClE,kEAAyC;AAEzC,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wBAAwB;IACrC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAA,eAAK,EAAC,sBAAS,CAAC;IACxB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,KAAK;SACd;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;IAC9E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleFlags.js","sourceRoot":"","sources":["../../../src/native/role/roleFlags.ts"],"names":[],"mappings":";;;;;AAAA,2CAAsC;AACtC,iDAAkE;AAClE,kEAAyC;AAEzC,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wBAAwB;IACrC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAA,eAAK,EAAC,sBAAS,CAAC;IACxB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,KAAK;SACd;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;IAC9E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleHoisted.js b/dist/native/role/roleHoisted.js index 17951f8538..1c6e4811c0 100644 --- a/dist/native/role/roleHoisted.js +++ b/dist/native/role/roleHoisted.js @@ -11,14 +11,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its hoisted state", + description: "The role to return its hoisted state", rest: false, type: structures_1.ArgType.Role, pointer: 0, diff --git a/dist/native/role/roleHoisted.js.map b/dist/native/role/roleHoisted.js.map index b859c3577d..085ac5ca60 100644 --- a/dist/native/role/roleHoisted.js.map +++ b/dist/native/role/roleHoisted.js.map @@ -1 +1 @@ -{"version":3,"file":"roleHoisted.js","sourceRoot":"","sources":["../../../src/native/role/roleHoisted.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAA;IAClD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleHoisted.js","sourceRoot":"","sources":["../../../src/native/role/roleHoisted.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAA;IAClD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleID.js b/dist/native/role/roleID.js index dce0a4c41e..1ce38cfc70 100644 --- a/dist/native/role/roleID.js +++ b/dist/native/role/roleID.js @@ -11,7 +11,7 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, diff --git a/dist/native/role/roleID.js.map b/dist/native/role/roleID.js.map index 4195fd5865..a8ed67903e 100644 --- a/dist/native/role/roleID.js.map +++ b/dist/native/role/roleID.js.map @@ -1 +1 @@ -{"version":3,"file":"roleID.js","sourceRoot":"","sources":["../../../src/native/role/roleID.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;QACtB,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;YAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;SAC1E;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;IACrC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleID.js","sourceRoot":"","sources":["../../../src/native/role/roleID.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;QACtB,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;YAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;SAC1E;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;IACrC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleIntColor.d.ts b/dist/native/role/roleIntColor.d.ts index 0f518cddf3..3368795ca9 100644 --- a/dist/native/role/roleIntColor.d.ts +++ b/dist/native/role/roleIntColor.d.ts @@ -1,4 +1,5 @@ import { ArgType, NativeFunction } from "../../structures"; +import { RoleColor } from "./roleColor"; declare const _default: NativeFunction<[{ name: string; description: string; @@ -12,6 +13,12 @@ declare const _default: NativeFunction<[{ type: ArgType.Role; pointer: number; required: true; +}, { + name: string; + description: string; + rest: false; + type: ArgType.Enum; + enum: typeof RoleColor; }], true>; export default _default; //# sourceMappingURL=roleIntColor.d.ts.map \ No newline at end of file diff --git a/dist/native/role/roleIntColor.d.ts.map b/dist/native/role/roleIntColor.d.ts.map index be46413cfb..e8cb2b68d7 100644 --- a/dist/native/role/roleIntColor.d.ts.map +++ b/dist/native/role/roleIntColor.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"roleIntColor.d.ts","sourceRoot":"","sources":["../../../src/native/role/roleIntColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;AAElE,wBA2BE"} \ No newline at end of file +{"version":3,"file":"roleIntColor.d.ts","sourceRoot":"","sources":["../../../src/native/role/roleIntColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;;AAEvC,wBAkCE"} \ No newline at end of file diff --git a/dist/native/role/roleIntColor.js b/dist/native/role/roleIntColor.js index d8613a8efc..00f739fa78 100644 --- a/dist/native/role/roleIntColor.js +++ b/dist/native/role/roleIntColor.js @@ -1,6 +1,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../../structures"); +const roleColor_1 = require("./roleColor"); exports.default = new structures_1.NativeFunction({ name: "$roleIntColor", version: "1.3.0", @@ -11,22 +12,29 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its color", + description: "The role to return its color", rest: false, type: structures_1.ArgType.Role, pointer: 0, required: true, }, + { + name: "color", + description: "The role color to return", + rest: false, + type: structures_1.ArgType.Enum, + enum: roleColor_1.RoleColor + }, ], - execute(ctx, [, role]) { - return this.success((role ?? ctx.role)?.color); + execute(ctx, [, role, color]) { + return this.success((role ?? ctx.role)?.colors[color || roleColor_1.RoleColor.Primary]); }, }); //# sourceMappingURL=roleIntColor.js.map \ No newline at end of file diff --git a/dist/native/role/roleIntColor.js.map b/dist/native/role/roleIntColor.js.map index c79dd80bec..c770fce414 100644 --- a/dist/native/role/roleIntColor.js.map +++ b/dist/native/role/roleIntColor.js.map @@ -1 +1 @@ -{"version":3,"file":"roleIntColor.js","sourceRoot":"","sources":["../../../src/native/role/roleIntColor.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,KAAK;IACrB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAA;IAClD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleIntColor.js","sourceRoot":"","sources":["../../../src/native/role/roleIntColor.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAClE,2CAAuC;AAEvC,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,KAAK;IACrB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,qBAAS;SAClB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC;QACxB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,IAAI,qBAAS,CAAC,OAAO,CAAC,CAAC,CAAA;IAC/E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleManageable.js b/dist/native/role/roleManageable.js index f20db3e75d..a766ccd10a 100644 --- a/dist/native/role/roleManageable.js +++ b/dist/native/role/roleManageable.js @@ -11,14 +11,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its managed state", + description: "The role to return its managed state", rest: false, type: structures_1.ArgType.Role, pointer: 0, diff --git a/dist/native/role/roleManageable.js.map b/dist/native/role/roleManageable.js.map index da9b152244..5921c6332e 100644 --- a/dist/native/role/roleManageable.js.map +++ b/dist/native/role/roleManageable.js.map @@ -1 +1 @@ -{"version":3,"file":"roleManageable.js","sourceRoot":"","sources":["../../../src/native/role/roleManageable.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IACpD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleManageable.js","sourceRoot":"","sources":["../../../src/native/role/roleManageable.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IACpD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleMembers.js b/dist/native/role/roleMembers.js index f59622506f..c5c51374c4 100644 --- a/dist/native/role/roleMembers.js +++ b/dist/native/role/roleMembers.js @@ -15,14 +15,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its members", + description: "The role to return its members", rest: false, type: structures_1.ArgType.Role, pointer: 0, diff --git a/dist/native/role/roleMembers.js.map b/dist/native/role/roleMembers.js.map index c7fe558a02..7b8a370f46 100644 --- a/dist/native/role/roleMembers.js.map +++ b/dist/native/role/roleMembers.js.map @@ -1 +1 @@ -{"version":3,"file":"roleMembers.js","sourceRoot":"","sources":["../../../src/native/role/roleMembers.ts"],"names":[],"mappings":";;;;;AAAA,kEAAyC;AACzC,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAA,eAAK,GAAkB;IAC/B,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;IACvF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleMembers.js","sourceRoot":"","sources":["../../../src/native/role/roleMembers.ts"],"names":[],"mappings":";;;;;AAAA,kEAAyC;AACzC,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAA,eAAK,GAAkB;IAC/B,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;IACvF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleMentionable.js b/dist/native/role/roleMentionable.js index 88239a708a..32345f9ed4 100644 --- a/dist/native/role/roleMentionable.js +++ b/dist/native/role/roleMentionable.js @@ -11,14 +11,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its mentionable state", + description: "The role to return its mentionable state", rest: false, type: structures_1.ArgType.Role, pointer: 0, diff --git a/dist/native/role/roleMentionable.js.map b/dist/native/role/roleMentionable.js.map index beac518741..cc77e0d063 100644 --- a/dist/native/role/roleMentionable.js.map +++ b/dist/native/role/roleMentionable.js.map @@ -1 +1 @@ -{"version":3,"file":"roleMentionable.js","sourceRoot":"","sources":["../../../src/native/role/roleMentionable.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAA;IACxD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleMentionable.js","sourceRoot":"","sources":["../../../src/native/role/roleMentionable.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAA;IACxD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleName.js b/dist/native/role/roleName.js index 97c120098b..eb94681c4e 100644 --- a/dist/native/role/roleName.js +++ b/dist/native/role/roleName.js @@ -11,7 +11,7 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, diff --git a/dist/native/role/roleName.js.map b/dist/native/role/roleName.js.map index 0517832ae3..aef5daa9b3 100644 --- a/dist/native/role/roleName.js.map +++ b/dist/native/role/roleName.js.map @@ -1 +1 @@ -{"version":3,"file":"roleName.js","sourceRoot":"","sources":["../../../src/native/role/roleName.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;IACjD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleName.js","sourceRoot":"","sources":["../../../src/native/role/roleName.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;IACjD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/rolePerms.d.ts b/dist/native/role/rolePerms.d.ts index cbeef1fc71..c846d2355e 100644 --- a/dist/native/role/rolePerms.d.ts +++ b/dist/native/role/rolePerms.d.ts @@ -18,6 +18,11 @@ declare const _default: NativeFunction<[{ type: ArgType.String; required: false; rest: false; +}, { + name: string; + description: string; + type: ArgType.Boolean; + rest: false; }], true>; export default _default; //# sourceMappingURL=rolePerms.d.ts.map \ No newline at end of file diff --git a/dist/native/role/rolePerms.d.ts.map b/dist/native/role/rolePerms.d.ts.map index 81fe9ffb14..4a22128eae 100644 --- a/dist/native/role/rolePerms.d.ts.map +++ b/dist/native/role/rolePerms.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"rolePerms.d.ts","sourceRoot":"","sources":["../../../src/native/role/rolePerms.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;AAElE,wBAkCE"} \ No newline at end of file +{"version":3,"file":"rolePerms.d.ts","sourceRoot":"","sources":["../../../src/native/role/rolePerms.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAyCE"} \ No newline at end of file diff --git a/dist/native/role/rolePerms.js b/dist/native/role/rolePerms.js index 3a27c30623..4d9a501299 100644 --- a/dist/native/role/rolePerms.js +++ b/dist/native/role/rolePerms.js @@ -16,14 +16,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its perms", + description: "The role to return its perms", rest: false, type: structures_1.ArgType.Role, pointer: 0, @@ -36,9 +36,16 @@ exports.default = new structures_1.NativeFunction({ required: false, rest: false, }, + { + name: "return int", + description: "Whether to return the perms as bitfield int", + type: structures_1.ArgType.Boolean, + rest: false, + }, ], - execute(ctx, [, role, sep]) { - return this.success((role ?? ctx.role)?.permissions.toArray().join(sep || ", ")); + execute(ctx, [, role, sep, int]) { + const perms = (role ?? ctx.role)?.permissions; + return this.success(int ? perms?.bitfield : perms?.toArray().join(sep ?? ", ")); }, }); //# sourceMappingURL=rolePerms.js.map \ No newline at end of file diff --git a/dist/native/role/rolePerms.js.map b/dist/native/role/rolePerms.js.map index bc7f149258..6a48dcc680 100644 --- a/dist/native/role/rolePerms.js.map +++ b/dist/native/role/rolePerms.js.map @@ -1 +1 @@ -{"version":3,"file":"rolePerms.js","sourceRoot":"","sources":["../../../src/native/role/rolePerms.ts"],"names":[],"mappings":";;;;;AAAA,2CAAgD;AAChD,kEAAyC;AACzC,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wBAAwB;IACrC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAA,eAAK,EAAC,gCAAmB,CAAC;IAClC,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,KAAK;SACd;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;IACpF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"rolePerms.js","sourceRoot":"","sources":["../../../src/native/role/rolePerms.ts"],"names":[],"mappings":";;;;;AAAA,2CAAgD;AAChD,kEAAyC;AACzC,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wBAAwB;IACrC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAA,eAAK,EAAC,gCAAmB,CAAC;IAClC,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,KAAK;SACd;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;SACd;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC;QAC3B,MAAM,KAAK,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,WAAW,CAAA;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAA;IACnF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/rolePosition.js b/dist/native/role/rolePosition.js index 532b217427..80aff84d5e 100644 --- a/dist/native/role/rolePosition.js +++ b/dist/native/role/rolePosition.js @@ -11,14 +11,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its position", + description: "The role to return its position", rest: false, type: structures_1.ArgType.Role, pointer: 0, diff --git a/dist/native/role/rolePosition.js.map b/dist/native/role/rolePosition.js.map index 71722295a0..135123ccfe 100644 --- a/dist/native/role/rolePosition.js.map +++ b/dist/native/role/rolePosition.js.map @@ -1 +1 @@ -{"version":3,"file":"rolePosition.js","sourceRoot":"","sources":["../../../src/native/role/rolePosition.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,2DAA2D;YACxE,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACrF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"rolePosition.js","sourceRoot":"","sources":["../../../src/native/role/rolePosition.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,2DAA2D;YACxE,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACrF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleRawData.js b/dist/native/role/roleRawData.js index 91c94dfc6f..6a92a4dbd5 100644 --- a/dist/native/role/roleRawData.js +++ b/dist/native/role/roleRawData.js @@ -10,7 +10,7 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild to get role from", + description: "The guild to pull role from", rest: false, type: structures_1.ArgType.Guild, required: true, diff --git a/dist/native/role/roleRawData.js.map b/dist/native/role/roleRawData.js.map index 0fb27f1e12..2b247f7584 100644 --- a/dist/native/role/roleRawData.js.map +++ b/dist/native/role/roleRawData.js.map @@ -1 +1 @@ -{"version":3,"file":"roleRawData.js","sourceRoot":"","sources":["../../../src/native/role/roleRawData.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gCAAgC;IAC7C,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;SACb;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;IACzD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleRawData.js","sourceRoot":"","sources":["../../../src/native/role/roleRawData.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gCAAgC;IAC7C,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;SACb;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;IACzD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleRawPosition.js b/dist/native/role/roleRawPosition.js index 92540f4b2f..9ff154ffae 100644 --- a/dist/native/role/roleRawPosition.js +++ b/dist/native/role/roleRawPosition.js @@ -11,14 +11,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its raw position", + description: "The role to return its raw position", rest: false, type: structures_1.ArgType.Role, pointer: 0, diff --git a/dist/native/role/roleRawPosition.js.map b/dist/native/role/roleRawPosition.js.map index e1f273c91e..6494a6f43e 100644 --- a/dist/native/role/roleRawPosition.js.map +++ b/dist/native/role/roleRawPosition.js.map @@ -1 +1 @@ -{"version":3,"file":"roleRawPosition.js","sourceRoot":"","sources":["../../../src/native/role/roleRawPosition.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAA;IACxD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleRawPosition.js","sourceRoot":"","sources":["../../../src/native/role/roleRawPosition.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAA;IACxD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleTags.js b/dist/native/role/roleTags.js index 4fa09bceba..9b57d0f960 100644 --- a/dist/native/role/roleTags.js +++ b/dist/native/role/roleTags.js @@ -15,14 +15,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its perms", + description: "The role to return its perms", rest: false, type: structures_1.ArgType.Role, pointer: 0, diff --git a/dist/native/role/roleTags.js.map b/dist/native/role/roleTags.js.map index dea4a9b467..3ada8e1e1f 100644 --- a/dist/native/role/roleTags.js.map +++ b/dist/native/role/roleTags.js.map @@ -1 +1 @@ -{"version":3,"file":"roleTags.js","sourceRoot":"","sources":["../../../src/native/role/roleTags.ts"],"names":[],"mappings":";;;;;AAAA,kEAAyC;AACzC,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uBAAuB;IACpC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAA,eAAK,GAAkB;IAC/B,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,KAAK;SACd;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAE;QACpB,CAAC,KAAK,GAAG,CAAC,IAAK,CAAA;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleTags.js","sourceRoot":"","sources":["../../../src/native/role/roleTags.ts"],"names":[],"mappings":";;;;;AAAA,kEAAyC;AACzC,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uBAAuB;IACpC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAA,eAAK,GAAkB;IAC/B,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,KAAK;SACd;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAE;QACpB,CAAC,KAAK,GAAG,CAAC,IAAK,CAAA;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/role/roleUnicodeEmoji.js b/dist/native/role/roleUnicodeEmoji.js index 78a7fbe382..c45c2c8ae4 100644 --- a/dist/native/role/roleUnicodeEmoji.js +++ b/dist/native/role/roleUnicodeEmoji.js @@ -11,14 +11,14 @@ exports.default = new structures_1.NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its unicode emote", + description: "The role to return its unicode emote", rest: false, type: structures_1.ArgType.Role, pointer: 0, diff --git a/dist/native/role/roleUnicodeEmoji.js.map b/dist/native/role/roleUnicodeEmoji.js.map index c472259c92..41d008c710 100644 --- a/dist/native/role/roleUnicodeEmoji.js.map +++ b/dist/native/role/roleUnicodeEmoji.js.map @@ -1 +1 @@ -{"version":3,"file":"roleUnicodeEmoji.js","sourceRoot":"","sources":["../../../src/native/role/roleUnicodeEmoji.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,WAAW,EAAE,4CAA4C;IACzD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,CAAA;IACzD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"roleUnicodeEmoji.js","sourceRoot":"","sources":["../../../src/native/role/roleUnicodeEmoji.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,WAAW,EAAE,4CAA4C;IACzD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,CAAA;IACzD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/soundboard/createSoundboardSound.js b/dist/native/soundboard/createSoundboardSound.js index 824a5013a1..c659713236 100644 --- a/dist/native/soundboard/createSoundboardSound.js +++ b/dist/native/soundboard/createSoundboardSound.js @@ -66,7 +66,7 @@ exports.default = new structures_1.NativeFunction({ emojiId: parsed?.id || undefined, emojiName: parsed?.id ? undefined : parsed?.name || undefined, volume: typeof (volume) === "number" ? volume : undefined, - reason: reason || undefined + reason: reason || ctx.reason }).catch(ctx.noop); return this.success(sound?.soundId); }, diff --git a/dist/native/soundboard/createSoundboardSound.js.map b/dist/native/soundboard/createSoundboardSound.js.map index 9643e7e464..b9fe570b07 100644 --- a/dist/native/soundboard/createSoundboardSound.js.map +++ b/dist/native/soundboard/createSoundboardSound.js.map @@ -1 +1 @@ -{"version":3,"file":"createSoundboardSound.js","sourceRoot":"","sources":["../../../src/native/soundboard/createSoundboardSound.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAClE,qCAAsC;AACtC,uEAAmE;AAEnE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,kDAAkD;IAC/D,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;Q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,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IACvC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"createSoundboardSound.js","sourceRoot":"","sources":["../../../src/native/soundboard/createSoundboardSound.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAClE,qCAAsC;AACtC,uEAAmE;AAEnE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,kDAAkD;IAC/D,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,eAAe;IAC/B,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;QACzD,MAAM,MAAM,GAAG,IAAA,mCAAgB,EAAC,GAAG,EAAE,KAAK,CAAC,CAAA;QAE3C,IAAI,SAAS,CAAA;QACb,IAAI;YACA,SAAS,GAAG,IAAA,sBAAY,EAAC,IAAI,CAAC,CAAA;SACjC;QAAC,MAAM;YACJ,SAAS,GAAG,IAAI,CAAA;SACnB;QAED,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC;YAC9C,IAAI;YACJ,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,SAAS;YAChC,SAAS,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,IAAI,SAAS;YAC7D,MAAM,EAAE,OAAM,CAAC,MAAM,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YACxD,MAAM,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM;SAC/B,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAElB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IACvC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/soundboard/deleteSoundboardSounds.js b/dist/native/soundboard/deleteSoundboardSounds.js index dd4b21b52c..99a10a5d78 100644 --- a/dist/native/soundboard/deleteSoundboardSounds.js +++ b/dist/native/soundboard/deleteSoundboardSounds.js @@ -30,7 +30,7 @@ exports.default = new structures_1.NativeFunction({ let count = 0; for (let i = 0, len = sounds.length; i < len; i++) { const sound = sounds[i]; - const success = await sound.delete().then(x => true).catch(ctx.noop); + const success = await sound.delete(ctx.reason).then(x => true).catch(ctx.noop); if (success) count++; } diff --git a/dist/native/soundboard/deleteSoundboardSounds.js.map b/dist/native/soundboard/deleteSoundboardSounds.js.map index eb29bbd1ab..084dca3f0c 100644 --- a/dist/native/soundboard/deleteSoundboardSounds.js.map +++ b/dist/native/soundboard/deleteSoundboardSounds.js.map @@ -1 +1 @@ -{"version":3,"file":"deleteSoundboardSounds.js","sourceRoot":"","sources":["../../../src/native/soundboard/deleteSoundboardSounds.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sEAAsE;IACnF,OAAO,EAAE,CAAC,wBAAwB,CAAC;IACnC,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,4CAA4C;YACzD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,eAAe;SAChC;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,CAAC;QACzB,IAAI,KAAK,GAAG,CAAC,CAAA;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YAC/C,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;YACvB,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YACpE,IAAI,OAAO;gBAAE,KAAK,EAAE,CAAA;SACvB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"deleteSoundboardSounds.js","sourceRoot":"","sources":["../../../src/native/soundboard/deleteSoundboardSounds.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sEAAsE;IACnF,OAAO,EAAE,CAAC,wBAAwB,CAAC;IACnC,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,4CAA4C;YACzD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,eAAe;SAChC;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,CAAC;QACzB,IAAI,KAAK,GAAG,CAAC,CAAA;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YAC/C,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;YACvB,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YAC9E,IAAI,OAAO;gBAAE,KAAK,EAAE,CAAA;SACvB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/soundboard/editSoundboardSound.js b/dist/native/soundboard/editSoundboardSound.js index 87bd73377c..5cf517fa7a 100644 --- a/dist/native/soundboard/editSoundboardSound.js +++ b/dist/native/soundboard/editSoundboardSound.js @@ -58,7 +58,7 @@ exports.default = new structures_1.NativeFunction({ emojiId: parsed?.id || value, emojiName: parsed?.id ? null : parsed?.name || value, volume: typeof (volume) === "number" ? volume : undefined, - reason: reason || undefined + reason: reason || ctx.reason }).catch(ctx.noop))); }, }); diff --git a/dist/native/soundboard/editSoundboardSound.js.map b/dist/native/soundboard/editSoundboardSound.js.map index 4e509b4b07..0e6bd3e629 100644 --- a/dist/native/soundboard/editSoundboardSound.js.map +++ b/dist/native/soundboard/editSoundboardSound.js.map @@ -1 +1 @@ -{"version":3,"file":"editSoundboardSound.js","sourceRoot":"","sources":["../../../src/native/soundboard/editSoundboardSound.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAClE,uEAAmE;AAEnE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4CAA4C;IACzD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,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AAM,CAAC,MAAM,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YACxD,MAAM,EAAE,MAAM,IAAI,SAAS;SAC9B,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACxB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"editSoundboardSound.js","sourceRoot":"","sources":["../../../src/native/soundboard/editSoundboardSound.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAClE,uEAAmE;AAEnE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4CAA4C;IACzD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,eAAe;SAChC;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4CAA4C;YACzD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;QACrD,MAAM,MAAM,GAAG,IAAA,mCAAgB,EAAC,GAAG,EAAE,KAAK,CAAC,CAAA;QAC3C,MAAM,KAAK,GAAG,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAA;QAE7C,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC;YACpC,IAAI,EAAE,IAAI,IAAI,SAAS;YACvB,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,KAAK;YAC5B,SAAS,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,IAAI,KAAK;YACpD,MAAM,EAAE,OAAM,CAAC,MAAM,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YACxD,MAAM,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM;SAC/B,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACxB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/auditLog.d.ts.map b/dist/native/state/auditLog.d.ts.map index b0bbf28088..65a2bac64e 100644 --- a/dist/native/state/auditLog.d.ts.map +++ b/dist/native/state/auditLog.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"auditLog.d.ts","sourceRoot":"","sources":["../../../src/native/state/auditLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAEvE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"auditLog.d.ts","sourceRoot":"","sources":["../../../src/native/state/auditLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/auditLog.js.map b/dist/native/state/auditLog.js.map index 9cd6152580..fa92e8b2ab 100644 --- a/dist/native/state/auditLog.js.map +++ b/dist/native/state/auditLog.js.map @@ -1 +1 @@ -{"version":3,"file":"auditLog.js","sourceRoot":"","sources":["../../../src/native/state/auditLog.ts"],"names":[],"mappings":";;AAAA,kDAAuE;AAEvE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0EAA0E;IACvF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,qBAAa;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,uBAAe,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC3E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"auditLog.js","sourceRoot":"","sources":["../../../src/native/state/auditLog.ts"],"names":[],"mappings":";;AAAA,kDAAuE;AACvE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0EAA0E;IACvF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,qBAAa;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,uBAAe,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC3E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/bulk.d.ts.map b/dist/native/state/bulk.d.ts.map index 3311155d6e..f381661cd1 100644 --- a/dist/native/state/bulk.d.ts.map +++ b/dist/native/state/bulk.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../../../src/native/state/bulk.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../../../src/native/state/bulk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/bulk.js.map b/dist/native/state/bulk.js.map index 75363a75d1..a6d8424042 100644 --- a/dist/native/state/bulk.js.map +++ b/dist/native/state/bulk.js.map @@ -1 +1 @@ -{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../../../src/native/state/bulk.ts"],"names":[],"mappings":";;AACA,gDAAoE;AAEpE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oEAAoE;IACjF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,mBAAY;YAClB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAc,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACzE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../../../src/native/state/bulk.ts"],"names":[],"mappings":";;AAAA,gDAAoE;AACpE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oEAAoE;IACjF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,mBAAY;YAClB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAc,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACzE,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/newAutomodRule.js b/dist/native/state/newAutomodRule.js index c69da2e661..f9b618b6df 100644 --- a/dist/native/state/newAutomodRule.js +++ b/dist/native/state/newAutomodRule.js @@ -26,7 +26,7 @@ exports.default = new structures_1.NativeFunction({ }, ], execute(ctx, [prop, sep]) { - return this.successJSON(automodRule_1.AutomodRuleProperties[prop](ctx.states?.automodRule?.new, sep)); + return this.success(automodRule_1.AutomodRuleProperties[prop](ctx.states?.automodRule?.new, sep)); }, }); //# sourceMappingURL=newAutomodRule.js.map \ No newline at end of file diff --git a/dist/native/state/newAutomodRule.js.map b/dist/native/state/newAutomodRule.js.map index fe6a090e63..3531ab6922 100644 --- a/dist/native/state/newAutomodRule.js.map +++ b/dist/native/state/newAutomodRule.js.map @@ -1 +1 @@ -{"version":3,"file":"newAutomodRule.js","sourceRoot":"","sources":["../../../src/native/state/newAutomodRule.ts"],"names":[],"mappings":";;AAAA,8DAAyF;AACzF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6EAA6E;IAC1F,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,iCAAmB;YACzB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,WAAW,CAAC,mCAAqB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC3F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"newAutomodRule.js","sourceRoot":"","sources":["../../../src/native/state/newAutomodRule.ts"],"names":[],"mappings":";;AAAA,8DAAyF;AACzF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6EAA6E;IAC1F,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,iCAAmB;YACzB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,mCAAqB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACvF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/newEntitlement.d.ts.map b/dist/native/state/newEntitlement.d.ts.map index 3aa14b4b07..430d9e72d1 100644 --- a/dist/native/state/newEntitlement.d.ts.map +++ b/dist/native/state/newEntitlement.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"newEntitlement.d.ts","sourceRoot":"","sources":["../../../src/native/state/newEntitlement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAEzF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"newEntitlement.d.ts","sourceRoot":"","sources":["../../../src/native/state/newEntitlement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACzF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/newEntitlement.js.map b/dist/native/state/newEntitlement.js.map index fe0eb71c40..1d3daea5c0 100644 --- a/dist/native/state/newEntitlement.js.map +++ b/dist/native/state/newEntitlement.js.map @@ -1 +1 @@ -{"version":3,"file":"newEntitlement.js","sourceRoot":"","sources":["../../../src/native/state/newEntitlement.ts"],"names":[],"mappings":";;AAAA,8DAAyF;AAEzF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4EAA4E;IACzF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,iCAAmB;YACzB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,mCAAqB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACvF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"newEntitlement.js","sourceRoot":"","sources":["../../../src/native/state/newEntitlement.ts"],"names":[],"mappings":";;AAAA,8DAAyF;AACzF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4EAA4E;IACzF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,iCAAmB;YACzB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,mCAAqB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACvF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/newPresence.d.ts.map b/dist/native/state/newPresence.d.ts.map index c53e23e6fc..76e1bcdf57 100644 --- a/dist/native/state/newPresence.d.ts.map +++ b/dist/native/state/newPresence.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"newPresence.d.ts","sourceRoot":"","sources":["../../../src/native/state/newPresence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAEhF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"newPresence.d.ts","sourceRoot":"","sources":["../../../src/native/state/newPresence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAChF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/newPresence.js.map b/dist/native/state/newPresence.js.map index 7d6cedc090..07ede492f1 100644 --- a/dist/native/state/newPresence.js.map +++ b/dist/native/state/newPresence.js.map @@ -1 +1 @@ -{"version":3,"file":"newPresence.js","sourceRoot":"","sources":["../../../src/native/state/newPresence.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAEhF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wEAAwE;IACrF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,2BAAgB;YACtB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,6BAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACjF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"newPresence.js","sourceRoot":"","sources":["../../../src/native/state/newPresence.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAChF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wEAAwE;IACrF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,2BAAgB;YACtB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,6BAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACjF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/newScheduledEvent.d.ts.map b/dist/native/state/newScheduledEvent.d.ts.map index e8660520e9..de54e79711 100644 --- a/dist/native/state/newScheduledEvent.d.ts.map +++ b/dist/native/state/newScheduledEvent.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"newScheduledEvent.d.ts","sourceRoot":"","sources":["../../../src/native/state/newScheduledEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAClG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"newScheduledEvent.d.ts","sourceRoot":"","sources":["../../../src/native/state/newScheduledEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAClG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/newScheduledEvent.js.map b/dist/native/state/newScheduledEvent.js.map index 9da7474c4a..e179963488 100644 --- a/dist/native/state/newScheduledEvent.js.map +++ b/dist/native/state/newScheduledEvent.js.map @@ -1 +1 @@ -{"version":3,"file":"newScheduledEvent.js","sourceRoot":"","sources":["../../../src/native/state/newScheduledEvent.ts"],"names":[],"mappings":";;AACA,oEAAkG;AAClG,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+EAA+E;IAC5F,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,uCAAsB;YAC5B,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,yCAAwB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC7F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"newScheduledEvent.js","sourceRoot":"","sources":["../../../src/native/state/newScheduledEvent.ts"],"names":[],"mappings":";;AAAA,oEAAkG;AAClG,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+EAA+E;IAC5F,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,uCAAsB;YAC5B,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,yCAAwB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC7F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/newStage.d.ts.map b/dist/native/state/newStage.d.ts.map index 13116962c8..842e1524e9 100644 --- a/dist/native/state/newStage.d.ts.map +++ b/dist/native/state/newStage.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"newStage.d.ts","sourceRoot":"","sources":["../../../src/native/state/newStage.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"newStage.d.ts","sourceRoot":"","sources":["../../../src/native/state/newStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/newStage.js.map b/dist/native/state/newStage.js.map index 29e8bf9036..7c7ea94fc8 100644 --- a/dist/native/state/newStage.js.map +++ b/dist/native/state/newStage.js.map @@ -1 +1 @@ -{"version":3,"file":"newStage.js","sourceRoot":"","sources":["../../../src/native/state/newStage.ts"],"names":[],"mappings":";;AACA,kDAAuE;AACvE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qEAAqE;IAClF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,qBAAa;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,uBAAe,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC3E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"newStage.js","sourceRoot":"","sources":["../../../src/native/state/newStage.ts"],"names":[],"mappings":";;AAAA,kDAAuE;AACvE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qEAAqE;IAClF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,qBAAa;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,uBAAe,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC3E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/newSticker.d.ts.map b/dist/native/state/newSticker.d.ts.map index e72418b1f0..0d05f2cbaa 100644 --- a/dist/native/state/newSticker.d.ts.map +++ b/dist/native/state/newSticker.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"newSticker.d.ts","sourceRoot":"","sources":["../../../src/native/state/newSticker.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"newSticker.d.ts","sourceRoot":"","sources":["../../../src/native/state/newSticker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/newSticker.js.map b/dist/native/state/newSticker.js.map index 9af314e361..6e43052387 100644 --- a/dist/native/state/newSticker.js.map +++ b/dist/native/state/newSticker.js.map @@ -1 +1 @@ -{"version":3,"file":"newSticker.js","sourceRoot":"","sources":["../../../src/native/state/newSticker.ts"],"names":[],"mappings":";;AACA,sDAA6E;AAC7E,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uEAAuE;IACpF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,yBAAe;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,2BAAiB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC/E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"newSticker.js","sourceRoot":"","sources":["../../../src/native/state/newSticker.ts"],"names":[],"mappings":";;AAAA,sDAA6E;AAC7E,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uEAAuE;IACpF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,yBAAe;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,2BAAiB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC/E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/newSubscription.d.ts b/dist/native/state/newSubscription.d.ts new file mode 100644 index 0000000000..767c7a6b97 --- /dev/null +++ b/dist/native/state/newSubscription.d.ts @@ -0,0 +1,17 @@ +import { SubscriptionProperty } from "../../properties/subscription"; +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + type: ArgType.Enum; + enum: typeof SubscriptionProperty; + required: true; +}, { + name: string; + description: string; + rest: false; + type: ArgType.String; +}], true>; +export default _default; +//# sourceMappingURL=newSubscription.d.ts.map \ No newline at end of file diff --git a/dist/native/state/newSubscription.d.ts.map b/dist/native/state/newSubscription.d.ts.map new file mode 100644 index 0000000000..947ec3a0df --- /dev/null +++ b/dist/native/state/newSubscription.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"newSubscription.d.ts","sourceRoot":"","sources":["../../../src/native/state/newSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAC5F,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/newSubscription.js b/dist/native/state/newSubscription.js new file mode 100644 index 0000000000..1dc24e093d --- /dev/null +++ b/dist/native/state/newSubscription.js @@ -0,0 +1,32 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const subscription_1 = require("../../properties/subscription"); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$newSubscription", + version: "2.5.0", + description: "Retrieves new data from an event whose context was a subscription instance", + brackets: true, + unwrap: true, + args: [ + { + name: "property", + description: "The property to pull", + rest: false, + type: structures_1.ArgType.Enum, + enum: subscription_1.SubscriptionProperty, + required: true, + }, + { + name: "separator", + description: "The separator to use in case of array", + rest: false, + type: structures_1.ArgType.String, + }, + ], + output: structures_1.ArgType.Unknown, + execute(ctx, [prop, sep]) { + return this.success(subscription_1.SubscriptionProperties[prop](ctx.states?.subscription?.new, sep)); + }, +}); +//# sourceMappingURL=newSubscription.js.map \ No newline at end of file diff --git a/dist/native/state/newSubscription.js.map b/dist/native/state/newSubscription.js.map new file mode 100644 index 0000000000..c9beee53d2 --- /dev/null +++ b/dist/native/state/newSubscription.js.map @@ -0,0 +1 @@ +{"version":3,"file":"newSubscription.js","sourceRoot":"","sources":["../../../src/native/state/newSubscription.ts"],"names":[],"mappings":";;AAAA,gEAA4F;AAC5F,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4EAA4E;IACzF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,mCAAoB;YAC1B,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,qCAAsB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACzF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/oldAutomodRule.js b/dist/native/state/oldAutomodRule.js index d9eb476695..096187296b 100644 --- a/dist/native/state/oldAutomodRule.js +++ b/dist/native/state/oldAutomodRule.js @@ -26,7 +26,7 @@ exports.default = new structures_1.NativeFunction({ }, ], execute(ctx, [prop, sep]) { - return this.successJSON(automodRule_1.AutomodRuleProperties[prop](ctx.states?.automodRule?.old, sep)); + return this.success(automodRule_1.AutomodRuleProperties[prop](ctx.states?.automodRule?.old, sep)); }, }); //# sourceMappingURL=oldAutomodRule.js.map \ No newline at end of file diff --git a/dist/native/state/oldAutomodRule.js.map b/dist/native/state/oldAutomodRule.js.map index 6ca47601f9..f3a4d2c653 100644 --- a/dist/native/state/oldAutomodRule.js.map +++ b/dist/native/state/oldAutomodRule.js.map @@ -1 +1 @@ -{"version":3,"file":"oldAutomodRule.js","sourceRoot":"","sources":["../../../src/native/state/oldAutomodRule.ts"],"names":[],"mappings":";;AAAA,8DAAyF;AACzF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6EAA6E;IAC1F,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,iCAAmB;YACzB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,WAAW,CAAC,mCAAqB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC3F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"oldAutomodRule.js","sourceRoot":"","sources":["../../../src/native/state/oldAutomodRule.ts"],"names":[],"mappings":";;AAAA,8DAAyF;AACzF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6EAA6E;IAC1F,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,iCAAmB;YACzB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,mCAAqB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACvF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/oldEntitlement.d.ts.map b/dist/native/state/oldEntitlement.d.ts.map index 9bdc2b2fc1..f114f9a65d 100644 --- a/dist/native/state/oldEntitlement.d.ts.map +++ b/dist/native/state/oldEntitlement.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"oldEntitlement.d.ts","sourceRoot":"","sources":["../../../src/native/state/oldEntitlement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAEzF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"oldEntitlement.d.ts","sourceRoot":"","sources":["../../../src/native/state/oldEntitlement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACzF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/oldEntitlement.js.map b/dist/native/state/oldEntitlement.js.map index 40a63a2bb5..53867827b4 100644 --- a/dist/native/state/oldEntitlement.js.map +++ b/dist/native/state/oldEntitlement.js.map @@ -1 +1 @@ -{"version":3,"file":"oldEntitlement.js","sourceRoot":"","sources":["../../../src/native/state/oldEntitlement.ts"],"names":[],"mappings":";;AAAA,8DAAyF;AAEzF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4EAA4E;IACzF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,iCAAmB;YACzB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,mCAAqB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACvF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"oldEntitlement.js","sourceRoot":"","sources":["../../../src/native/state/oldEntitlement.ts"],"names":[],"mappings":";;AAAA,8DAAyF;AACzF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4EAA4E;IACzF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,iCAAmB;YACzB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,mCAAqB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACvF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/oldPresence.d.ts.map b/dist/native/state/oldPresence.d.ts.map index af877ef4e0..14ef3494d3 100644 --- a/dist/native/state/oldPresence.d.ts.map +++ b/dist/native/state/oldPresence.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"oldPresence.d.ts","sourceRoot":"","sources":["../../../src/native/state/oldPresence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAEhF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"oldPresence.d.ts","sourceRoot":"","sources":["../../../src/native/state/oldPresence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAChF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/oldPresence.js.map b/dist/native/state/oldPresence.js.map index 40111e27fd..e0ec1d5c48 100644 --- a/dist/native/state/oldPresence.js.map +++ b/dist/native/state/oldPresence.js.map @@ -1 +1 @@ -{"version":3,"file":"oldPresence.js","sourceRoot":"","sources":["../../../src/native/state/oldPresence.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAEhF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wEAAwE;IACrF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,2BAAgB;YACtB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,6BAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACjF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"oldPresence.js","sourceRoot":"","sources":["../../../src/native/state/oldPresence.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAChF,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wEAAwE;IACrF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,2BAAgB;YACtB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,6BAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACjF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/oldScheduledEvent.d.ts.map b/dist/native/state/oldScheduledEvent.d.ts.map index 356b3e558a..f172a1d13a 100644 --- a/dist/native/state/oldScheduledEvent.d.ts.map +++ b/dist/native/state/oldScheduledEvent.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"oldScheduledEvent.d.ts","sourceRoot":"","sources":["../../../src/native/state/oldScheduledEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAClG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"oldScheduledEvent.d.ts","sourceRoot":"","sources":["../../../src/native/state/oldScheduledEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAClG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/oldScheduledEvent.js.map b/dist/native/state/oldScheduledEvent.js.map index 3bbf2c3ad9..d96262ac2e 100644 --- a/dist/native/state/oldScheduledEvent.js.map +++ b/dist/native/state/oldScheduledEvent.js.map @@ -1 +1 @@ -{"version":3,"file":"oldScheduledEvent.js","sourceRoot":"","sources":["../../../src/native/state/oldScheduledEvent.ts"],"names":[],"mappings":";;AACA,oEAAkG;AAClG,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+EAA+E;IAC5F,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,uCAAsB;YAC5B,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,yCAAwB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC7F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"oldScheduledEvent.js","sourceRoot":"","sources":["../../../src/native/state/oldScheduledEvent.ts"],"names":[],"mappings":";;AAAA,oEAAkG;AAClG,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+EAA+E;IAC5F,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,uCAAsB;YAC5B,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,yCAAwB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC7F,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/oldStage.d.ts.map b/dist/native/state/oldStage.d.ts.map index c4586dced2..3df8f108dd 100644 --- a/dist/native/state/oldStage.d.ts.map +++ b/dist/native/state/oldStage.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"oldStage.d.ts","sourceRoot":"","sources":["../../../src/native/state/oldStage.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"oldStage.d.ts","sourceRoot":"","sources":["../../../src/native/state/oldStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/oldStage.js.map b/dist/native/state/oldStage.js.map index e1f8fc0160..43bcc9a562 100644 --- a/dist/native/state/oldStage.js.map +++ b/dist/native/state/oldStage.js.map @@ -1 +1 @@ -{"version":3,"file":"oldStage.js","sourceRoot":"","sources":["../../../src/native/state/oldStage.ts"],"names":[],"mappings":";;AACA,kDAAuE;AACvE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qEAAqE;IAClF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,qBAAa;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,uBAAe,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC3E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"oldStage.js","sourceRoot":"","sources":["../../../src/native/state/oldStage.ts"],"names":[],"mappings":";;AAAA,kDAAuE;AACvE,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qEAAqE;IAClF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,qBAAa;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,uBAAe,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC3E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/oldSticker.d.ts.map b/dist/native/state/oldSticker.d.ts.map index f9b6ee77e0..343511978f 100644 --- a/dist/native/state/oldSticker.d.ts.map +++ b/dist/native/state/oldSticker.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"oldSticker.d.ts","sourceRoot":"","sources":["../../../src/native/state/oldSticker.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file +{"version":3,"file":"oldSticker.d.ts","sourceRoot":"","sources":["../../../src/native/state/oldSticker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/oldSticker.js.map b/dist/native/state/oldSticker.js.map index 0ff77ae399..a6a4be78fe 100644 --- a/dist/native/state/oldSticker.js.map +++ b/dist/native/state/oldSticker.js.map @@ -1 +1 @@ -{"version":3,"file":"oldSticker.js","sourceRoot":"","sources":["../../../src/native/state/oldSticker.ts"],"names":[],"mappings":";;AACA,sDAA6E;AAC7E,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uEAAuE;IACpF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,yBAAe;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,2BAAiB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC/E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"oldSticker.js","sourceRoot":"","sources":["../../../src/native/state/oldSticker.ts"],"names":[],"mappings":";;AAAA,sDAA6E;AAC7E,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uEAAuE;IACpF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,yBAAe;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,2BAAiB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC/E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/state/oldSubscription.d.ts b/dist/native/state/oldSubscription.d.ts new file mode 100644 index 0000000000..0bccb4945a --- /dev/null +++ b/dist/native/state/oldSubscription.d.ts @@ -0,0 +1,17 @@ +import { SubscriptionProperty } from "../../properties/subscription"; +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + rest: false; + type: ArgType.Enum; + enum: typeof SubscriptionProperty; + required: true; +}, { + name: string; + description: string; + rest: false; + type: ArgType.String; +}], true>; +export default _default; +//# sourceMappingURL=oldSubscription.d.ts.map \ No newline at end of file diff --git a/dist/native/state/oldSubscription.d.ts.map b/dist/native/state/oldSubscription.d.ts.map new file mode 100644 index 0000000000..d3a34911bc --- /dev/null +++ b/dist/native/state/oldSubscription.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"oldSubscription.d.ts","sourceRoot":"","sources":["../../../src/native/state/oldSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAC5F,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAElE,wBA0BE"} \ No newline at end of file diff --git a/dist/native/state/oldSubscription.js b/dist/native/state/oldSubscription.js new file mode 100644 index 0000000000..d32d728d92 --- /dev/null +++ b/dist/native/state/oldSubscription.js @@ -0,0 +1,32 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const subscription_1 = require("../../properties/subscription"); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$oldSubscription", + version: "2.5.0", + description: "Retrieves old data from an event whose context was a subscription instance", + brackets: true, + unwrap: true, + args: [ + { + name: "property", + description: "The property to pull", + rest: false, + type: structures_1.ArgType.Enum, + enum: subscription_1.SubscriptionProperty, + required: true, + }, + { + name: "separator", + description: "The separator to use in case of array", + rest: false, + type: structures_1.ArgType.String, + }, + ], + output: structures_1.ArgType.Unknown, + execute(ctx, [prop, sep]) { + return this.success(subscription_1.SubscriptionProperties[prop](ctx.states?.subscription?.old, sep)); + }, +}); +//# sourceMappingURL=oldSubscription.js.map \ No newline at end of file diff --git a/dist/native/state/oldSubscription.js.map b/dist/native/state/oldSubscription.js.map new file mode 100644 index 0000000000..d94089c096 --- /dev/null +++ b/dist/native/state/oldSubscription.js.map @@ -0,0 +1 @@ +{"version":3,"file":"oldSubscription.js","sourceRoot":"","sources":["../../../src/native/state/oldSubscription.ts"],"names":[],"mappings":";;AAAA,gEAA4F;AAC5F,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4EAA4E;IACzF,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;YAClB,IAAI,EAAE,mCAAoB;YAC1B,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,qCAAsB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IACzF,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/statement/async.js b/dist/native/statement/async.js index be860962ef..1f40e73fc3 100644 --- a/dist/native/statement/async.js +++ b/dist/native/statement/async.js @@ -18,7 +18,7 @@ exports.default = new structures_1.NativeFunction({ ], experimental: true, execute(ctx) { - void this["resolveArgs"](ctx); + void this["resolveArgs"](ctx).catch(() => { }); return this.success(); }, }); diff --git a/dist/native/statement/async.js.map b/dist/native/statement/async.js.map index acb7c277dc..347f9f5001 100644 --- a/dist/native/statement/async.js.map +++ b/dist/native/statement/async.js.map @@ -1 +1 @@ -{"version":3,"file":"async.js","sourceRoot":"","sources":["../../../src/native/statement/async.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qDAAqD;IAClE,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,YAAY,EAAE,IAAI;IAClB,OAAO,CAAC,GAAG;QACP,KAAK,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAA;QAC7B,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"async.js","sourceRoot":"","sources":["../../../src/native/statement/async.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qDAAqD;IAClE,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,YAAY,EAAE,IAAI;IAClB,OAAO,CAAC,GAAG;QACP,KAAK,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;QAC7C,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/sticker/addSticker.d.ts.map b/dist/native/sticker/addSticker.d.ts.map index f3344cb388..b49aa84d37 100644 --- a/dist/native/sticker/addSticker.d.ts.map +++ b/dist/native/sticker/addSticker.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"addSticker.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/addSticker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAsDE"} \ No newline at end of file +{"version":3,"file":"addSticker.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/addSticker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE,wBAuDE"} \ No newline at end of file diff --git a/dist/native/sticker/addSticker.js b/dist/native/sticker/addSticker.js index 9886b1f9f8..daa9da94c6 100644 --- a/dist/native/sticker/addSticker.js +++ b/dist/native/sticker/addSticker.js @@ -51,6 +51,7 @@ exports.default = new structures_1.NativeFunction({ name, tags, description: desc || null, + reason: ctx.reason }) .catch(ctx.noop); return this.success(created?.id); diff --git a/dist/native/sticker/addSticker.js.map b/dist/native/sticker/addSticker.js.map index a81687e11c..9bcd6a2c45 100644 --- a/dist/native/sticker/addSticker.js.map +++ b/dist/native/sticker/addSticker.js.map @@ -1 +1 @@ -{"version":3,"file":"addSticker.js","sourceRoot":"","sources":["../../../src/native/sticker/addSticker.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,KAAK;SACd;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QAC7C,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,QAAQ;aAC/B,MAAM,CAAC;YACJ,IAAI,EAAE,GAAG;YACT,IAAI;YACJ,IAAI;YACJ,WAAW,EAAE,IAAI,IAAI,IAAI;SAC5B,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;IACpC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"addSticker.js","sourceRoot":"","sources":["../../../src/native/sticker/addSticker.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,KAAK;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,KAAK;SACd;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QAC7C,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,QAAQ;aAC/B,MAAM,CAAC;YACJ,IAAI,EAAE,GAAG;YACT,IAAI;YACJ,IAAI;YACJ,WAAW,EAAE,IAAI,IAAI,IAAI;YACzB,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;IACpC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/sticker/deleteStickers.d.ts.map b/dist/native/sticker/deleteStickers.d.ts.map index daedb0b727..73744f2f3c 100644 --- a/dist/native/sticker/deleteStickers.d.ts.map +++ b/dist/native/sticker/deleteStickers.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"deleteStickers.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/deleteStickers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;AAGlE,wBAkCE"} \ No newline at end of file +{"version":3,"file":"deleteStickers.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/deleteStickers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;AAElE,wBAkCE"} \ No newline at end of file diff --git a/dist/native/sticker/deleteStickers.js b/dist/native/sticker/deleteStickers.js index c2da8b6714..fa42e4641d 100644 --- a/dist/native/sticker/deleteStickers.js +++ b/dist/native/sticker/deleteStickers.js @@ -29,7 +29,7 @@ exports.default = new structures_1.NativeFunction({ let count = 0; for (let i = 0, len = stickers.length; i < len; i++) { const sticker = stickers[i]; - const success = await g.stickers.delete(sticker).then(x => true).catch(ctx.noop); + const success = await g.stickers.delete(sticker, ctx.reason).then(x => true).catch(ctx.noop); if (success) count++; } diff --git a/dist/native/sticker/deleteStickers.js.map b/dist/native/sticker/deleteStickers.js.map index 3011e8093b..ba501620a8 100644 --- a/dist/native/sticker/deleteStickers.js.map +++ b/dist/native/sticker/deleteStickers.js.map @@ -1 +1 @@ -{"version":3,"file":"deleteStickers.js","sourceRoot":"","sources":["../../../src/native/sticker/deleteStickers.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAGlE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,WAAW,EAAE,+DAA+D;IAC5E,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC;QAC5B,IAAI,KAAK,GAAG,CAAC,CAAA;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACjD,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;YAC3B,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YAChF,IAAI,OAAO;gBAAE,KAAK,EAAE,CAAA;SACvB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"deleteStickers.js","sourceRoot":"","sources":["../../../src/native/sticker/deleteStickers.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,WAAW,EAAE,+DAA+D;IAC5E,IAAI,EAAE;QACF;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,KAAK;SACtB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC;QAC5B,IAAI,KAAK,GAAG,CAAC,CAAA;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACjD,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;YAC3B,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YAC5F,IAAI,OAAO;gBAAE,KAAK,EAAE,CAAA;SACvB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/sticker/editSticker.d.ts.map b/dist/native/sticker/editSticker.d.ts.map index 3ece46525a..c50a76b3ff 100644 --- a/dist/native/sticker/editSticker.d.ts.map +++ b/dist/native/sticker/editSticker.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"editSticker.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/editSticker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;AAE1D,wBA2CE"} \ No newline at end of file +{"version":3,"file":"editSticker.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/editSticker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;AAE1D,wBA4CE"} \ No newline at end of file diff --git a/dist/native/sticker/editSticker.js b/dist/native/sticker/editSticker.js index e65adb1752..407e945706 100644 --- a/dist/native/sticker/editSticker.js +++ b/dist/native/sticker/editSticker.js @@ -4,7 +4,7 @@ const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$editSticker", version: "1.4.0", - description: "Edits a sticker's data", + description: "Edits a sticker on a guild, returns bool", brackets: true, unwrap: true, args: [ @@ -39,7 +39,8 @@ exports.default = new structures_1.NativeFunction({ return this.success(!!(await s.edit({ name: name || undefined, description: desc || undefined, - tags: tags.join(" ") || undefined + tags: tags.join(" ") || undefined, + reason: ctx.reason }).catch(ctx.noop))); }, }); diff --git a/dist/native/sticker/editSticker.js.map b/dist/native/sticker/editSticker.js.map index 6be4a0b929..7e984894d3 100644 --- a/dist/native/sticker/editSticker.js.map +++ b/dist/native/sticker/editSticker.js.map @@ -1 +1 @@ -{"version":3,"file":"editSticker.js","sourceRoot":"","sources":["../../../src/native/sticker/editSticker.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wBAAwB;IACrC,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAE;QACtC,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,IAAI,IAAI,SAAS;YACvB,WAAW,EAAE,IAAI,IAAI,SAAS;YAC9B,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,SAAS;SACpC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACtB,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"editSticker.js","sourceRoot":"","sources":["../../../src/native/sticker/editSticker.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,0CAA0C;IACvD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAE;QACtC,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,IAAI,IAAI,SAAS;YACvB,WAAW,EAAE,IAAI,IAAI,SAAS;YAC9B,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,SAAS;YACjC,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACtB,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/sticker/setStickerDescription.d.ts.map b/dist/native/sticker/setStickerDescription.d.ts.map index 613c54b606..9742e3df8f 100644 --- a/dist/native/sticker/setStickerDescription.d.ts.map +++ b/dist/native/sticker/setStickerDescription.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"setStickerDescription.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/setStickerDescription.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAE1D,wBA8BE"} \ No newline at end of file +{"version":3,"file":"setStickerDescription.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/setStickerDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAE1D,wBA+BE"} \ No newline at end of file diff --git a/dist/native/sticker/setStickerDescription.js b/dist/native/sticker/setStickerDescription.js index f7efb6ee14..9ae658d5e8 100644 --- a/dist/native/sticker/setStickerDescription.js +++ b/dist/native/sticker/setStickerDescription.js @@ -4,7 +4,7 @@ const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$setStickerDescription", version: "1.4.0", - description: "Sets a sticker's description", + description: "Sets a sticker's description, returns bool", brackets: true, unwrap: true, args: [ @@ -26,7 +26,8 @@ exports.default = new structures_1.NativeFunction({ output: structures_1.ArgType.Boolean, async execute(ctx, [s, n]) { return this.success(!!(await s.edit({ - description: n + description: n, + reason: ctx.reason }).catch(ctx.noop))); }, }); diff --git a/dist/native/sticker/setStickerDescription.js.map b/dist/native/sticker/setStickerDescription.js.map index 495af23728..1e768d52be 100644 --- a/dist/native/sticker/setStickerDescription.js.map +++ b/dist/native/sticker/setStickerDescription.js.map @@ -1 +1 @@ -{"version":3,"file":"setStickerDescription.js","sourceRoot":"","sources":["../../../src/native/sticker/setStickerDescription.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,8BAA8B;IAC3C,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,EAAE,CAAC,CAAE;QACvB,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;YACZ,WAAW,EAAE,CAAC;SACjB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACtB,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setStickerDescription.js","sourceRoot":"","sources":["../../../src/native/sticker/setStickerDescription.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4CAA4C;IACzD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,EAAE,CAAC,CAAE;QACvB,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;YACZ,WAAW,EAAE,CAAC;YACd,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACtB,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/sticker/setStickerName.d.ts.map b/dist/native/sticker/setStickerName.d.ts.map index 23fa34550d..9dce52d8a1 100644 --- a/dist/native/sticker/setStickerName.d.ts.map +++ b/dist/native/sticker/setStickerName.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"setStickerName.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/setStickerName.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAE1D,wBA8BE"} \ No newline at end of file +{"version":3,"file":"setStickerName.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/setStickerName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAE1D,wBA+BE"} \ No newline at end of file diff --git a/dist/native/sticker/setStickerName.js b/dist/native/sticker/setStickerName.js index 74055953a6..312478dd17 100644 --- a/dist/native/sticker/setStickerName.js +++ b/dist/native/sticker/setStickerName.js @@ -4,7 +4,7 @@ const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$setStickerName", version: "1.4.0", - description: "Sets a sticker's name", + description: "Sets a sticker's name, returns bool", brackets: true, unwrap: true, args: [ @@ -26,7 +26,8 @@ exports.default = new structures_1.NativeFunction({ output: structures_1.ArgType.Boolean, async execute(ctx, [s, n]) { return this.success(!!(await s.edit({ - name: n + name: n, + reason: ctx.reason }).catch(ctx.noop))); }, }); diff --git a/dist/native/sticker/setStickerName.js.map b/dist/native/sticker/setStickerName.js.map index c139221b44..ee9dcf3ba9 100644 --- a/dist/native/sticker/setStickerName.js.map +++ b/dist/native/sticker/setStickerName.js.map @@ -1 +1 @@ -{"version":3,"file":"setStickerName.js","sourceRoot":"","sources":["../../../src/native/sticker/setStickerName.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uBAAuB;IACpC,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,EAAE,CAAC,CAAE;QACvB,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,CAAC;SACV,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACtB,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setStickerName.js","sourceRoot":"","sources":["../../../src/native/sticker/setStickerName.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,EAAE,CAAC,CAAE;QACvB,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,CAAC;YACP,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACtB,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/sticker/setStickerTags.d.ts.map b/dist/native/sticker/setStickerTags.d.ts.map index d7dd48b953..9736b0b1b5 100644 --- a/dist/native/sticker/setStickerTags.d.ts.map +++ b/dist/native/sticker/setStickerTags.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"setStickerTags.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/setStickerTags.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAE1D,wBA8BE"} \ No newline at end of file +{"version":3,"file":"setStickerTags.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/setStickerTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;AAE1D,wBA+BE"} \ No newline at end of file diff --git a/dist/native/sticker/setStickerTags.js b/dist/native/sticker/setStickerTags.js index fbd328aa6a..1ec95cdca1 100644 --- a/dist/native/sticker/setStickerTags.js +++ b/dist/native/sticker/setStickerTags.js @@ -4,7 +4,7 @@ const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$setStickerTags", version: "1.4.0", - description: "Sets a sticker's tags", + description: "Sets a sticker's tags, returns bool", brackets: true, unwrap: true, args: [ @@ -26,7 +26,8 @@ exports.default = new structures_1.NativeFunction({ output: structures_1.ArgType.Boolean, async execute(ctx, [s, n]) { return this.success(!!(await s.edit({ - tags: n.join(" ") + tags: n.join(" "), + reason: ctx.reason }).catch(ctx.noop))); }, }); diff --git a/dist/native/sticker/setStickerTags.js.map b/dist/native/sticker/setStickerTags.js.map index 238c827be8..982d8f80d8 100644 --- a/dist/native/sticker/setStickerTags.js.map +++ b/dist/native/sticker/setStickerTags.js.map @@ -1 +1 @@ -{"version":3,"file":"setStickerTags.js","sourceRoot":"","sources":["../../../src/native/sticker/setStickerTags.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,uBAAuB;IACpC,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,EAAE,CAAC,CAAE;QACvB,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;SACpB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACtB,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setStickerTags.js","sourceRoot":"","sources":["../../../src/native/sticker/setStickerTags.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,EAAE,CAAC,CAAE;QACvB,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;YACjB,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACtB,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/sticker/stickerAvailable.d.ts.map b/dist/native/sticker/stickerAvailable.d.ts.map index 73e0708642..b694549d3b 100644 --- a/dist/native/sticker/stickerAvailable.d.ts.map +++ b/dist/native/sticker/stickerAvailable.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"stickerAvailable.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/stickerAvailable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;AAE1D,wBAoBE"} \ No newline at end of file +{"version":3,"file":"stickerAvailable.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/stickerAvailable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;AAE1D,wBAoBE"} \ No newline at end of file diff --git a/dist/native/sticker/stickerAvailable.js.map b/dist/native/sticker/stickerAvailable.js.map index 0ac9fef9e2..e7558fa2b6 100644 --- a/dist/native/sticker/stickerAvailable.js.map +++ b/dist/native/sticker/stickerAvailable.js.map @@ -1 +1 @@ -{"version":3,"file":"stickerAvailable.js","sourceRoot":"","sources":["../../../src/native/sticker/stickerAvailable.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wCAAwC;IACrD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,CAAE;QACd,CAAC,KAAK,GAAG,CAAC,OAAQ,CAAA;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;IACrC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"stickerAvailable.js","sourceRoot":"","sources":["../../../src/native/sticker/stickerAvailable.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wCAAwC;IACrD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,CAAE;QACd,CAAC,KAAK,GAAG,CAAC,OAAQ,CAAA;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;IACrC,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/sticker/stickerOwnerID.d.ts.map b/dist/native/sticker/stickerOwnerID.d.ts.map index cad5379b0a..4b94669bd6 100644 --- a/dist/native/sticker/stickerOwnerID.d.ts.map +++ b/dist/native/sticker/stickerOwnerID.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"stickerOwnerID.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/stickerOwnerID.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;AAE1D,wBAoBE"} \ No newline at end of file +{"version":3,"file":"stickerOwnerID.d.ts","sourceRoot":"","sources":["../../../src/native/sticker/stickerOwnerID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;AAE1D,wBAoBE"} \ No newline at end of file diff --git a/dist/native/sticker/stickerOwnerID.js.map b/dist/native/sticker/stickerOwnerID.js.map index 8c29013b39..f31fb5e357 100644 --- a/dist/native/sticker/stickerOwnerID.js.map +++ b/dist/native/sticker/stickerOwnerID.js.map @@ -1 +1 @@ -{"version":3,"file":"stickerOwnerID.js","sourceRoot":"","sources":["../../../src/native/sticker/stickerOwnerID.ts"],"names":[],"mappings":";;AACA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wCAAwC;IACrD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,CAAE;QACpB,CAAC,KAAK,GAAG,CAAC,OAAQ,CAAA;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAA;IAC9E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"stickerOwnerID.js","sourceRoot":"","sources":["../../../src/native/sticker/stickerOwnerID.ts"],"names":[],"mappings":";;AAAA,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wCAAwC;IACrD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,IAAI;IACpB,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,CAAE;QACpB,CAAC,KAAK,GAAG,CAAC,OAAQ,CAAA;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAA;IAC9E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/sticker/stickerType.js.map b/dist/native/sticker/stickerType.js.map index 8a7b86d2df..d2484a5222 100644 --- a/dist/native/sticker/stickerType.js.map +++ b/dist/native/sticker/stickerType.js.map @@ -1 +1 @@ -{"version":3,"file":"stickerType.js","sourceRoot":"","sources":["../../../src/native/sticker/stickerType.ts"],"names":[],"mappings":";;AAAA,2CAA2D;AAC3D,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4BAA4B;IACzC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,MAAM,EAAE,wBAAW;IACnB,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,CAAE;QACd,CAAC,KAAK,GAAG,CAAC,OAAQ,CAAA;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAW,CAAC,CAAC,EAAE,IAAK,CAAC,CAAC,CAAA;IAC9C,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"stickerType.js","sourceRoot":"","sources":["../../../src/native/sticker/stickerType.ts"],"names":[],"mappings":";;AAAA,2CAAwC;AACxC,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4BAA4B;IACzC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;KACJ;IACD,MAAM,EAAE,wBAAW;IACnB,OAAO,CAAC,GAAG,EAAE,CAAE,CAAC,CAAE;QACd,CAAC,KAAK,GAAG,CAAC,OAAQ,CAAA;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAW,CAAC,CAAC,EAAE,IAAK,CAAC,CAAC,CAAA;IAC9C,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/time/hour.js b/dist/native/time/hour.js index ddafc9ab0e..8cfee1a513 100644 --- a/dist/native/time/hour.js +++ b/dist/native/time/hour.js @@ -24,7 +24,7 @@ exports.default = new structures_1.NativeFunction({ ], output: structures_1.ArgType.Number, execute: async function (ctx, [format]) { - format ??= BasicTimeFormat.Numeric; + format ||= BasicTimeFormat.Numeric; const hour = new Date().toLocaleString("en-US", { hour: format, hour12: false, timeZone: ctx.timezone, calendar: ctx.calendar }); return this.success(format === BasicTimeFormat.Numeric ? parseInt(hour, 10).toString() : hour); } diff --git a/dist/native/time/minute.js b/dist/native/time/minute.js index b3137970cc..4103e95c99 100644 --- a/dist/native/time/minute.js +++ b/dist/native/time/minute.js @@ -19,7 +19,7 @@ exports.default = new structures_1.NativeFunction({ ], output: structures_1.ArgType.Number, execute: async function (ctx, [format]) { - format ??= hour_1.BasicTimeFormat.Numeric; + format ||= hour_1.BasicTimeFormat.Numeric; const minute = new Date().toLocaleString("en-US", { minute: format, timeZone: ctx.timezone, calendar: ctx.calendar }); return this.success(format === hour_1.BasicTimeFormat.TwoDigit ? minute.padStart(2, "0") : minute); } diff --git a/dist/native/time/second.js b/dist/native/time/second.js index 6c0fdde9f7..2fff9974bd 100644 --- a/dist/native/time/second.js +++ b/dist/native/time/second.js @@ -19,7 +19,7 @@ exports.default = new structures_1.NativeFunction({ ], output: structures_1.ArgType.Number, execute: async function (ctx, [format]) { - format ??= hour_1.BasicTimeFormat.Numeric; + format ||= hour_1.BasicTimeFormat.Numeric; const second = new Date().toLocaleString("en-US", { second: format, timeZone: ctx.timezone, calendar: ctx.calendar }); return this.success(format === hour_1.BasicTimeFormat.TwoDigit ? second.padStart(2, "0") : second); } diff --git a/dist/native/time/setInterval.d.ts.map b/dist/native/time/setInterval.d.ts.map index 223b60becb..2f9dd72015 100644 --- a/dist/native/time/setInterval.d.ts.map +++ b/dist/native/time/setInterval.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"setInterval.d.ts","sourceRoot":"","sources":["../../../src/native/time/setInterval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAkC,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;AAElG,wBA4CE"} \ No newline at end of file +{"version":3,"file":"setInterval.d.ts","sourceRoot":"","sources":["../../../src/native/time/setInterval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAkC,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;AAElG,wBA6CE"} \ No newline at end of file diff --git a/dist/native/time/setInterval.js b/dist/native/time/setInterval.js index 13896134b4..25ab5aa557 100644 --- a/dist/native/time/setInterval.js +++ b/dist/native/time/setInterval.js @@ -36,8 +36,9 @@ exports.default = new structures_1.NativeFunction({ const name = await this["resolveUnhandledArg"](ctx, 2); if (!this["isValidReturnType"](name)) return name; + const c = ctx.clone(ctx.cloneRuntime()); const data = setInterval(async () => { - await this["resolveCode"](ctx, code); + await this["resolveCode"](c, code); }, time.value); if (name.value) ctx.client.intervals.set(name.value, data); diff --git a/dist/native/time/setInterval.js.map b/dist/native/time/setInterval.js.map index 0aaab7ee69..93e58a0310 100644 --- a/dist/native/time/setInterval.js.map +++ b/dist/native/time/setInterval.js.map @@ -1 +1 @@ -{"version":3,"file":"setInterval.js","sourceRoot":"","sources":["../../../src/native/time/setInterval.ts"],"names":[],"mappings":";;AAAA,iDAAkG;AAElG,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mDAAmD;IAChE,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG;QACb,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAO,CAAC,CAAC,CAAmC,CAAA;QAEnE,MAAM,IAAI,GAAW,MAAM,IAAI,CAAC,qBAAqB,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;QAC9D,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAA;QAEjD,MAAM,IAAI,GAAW,MAAM,IAAI,CAAC,qBAAqB,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;QAC9D,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAA;QAEjD,MAAM,IAAI,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE;YAChC,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;QACxC,CAAC,EAAE,IAAI,CAAC,KAAe,CAAC,CAAA;QAExB,IAAI,IAAI,CAAC,KAAK;YAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,KAAe,EAAE,IAAI,CAAC,CAAA;QAEpE,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"setInterval.js","sourceRoot":"","sources":["../../../src/native/time/setInterval.ts"],"names":[],"mappings":";;AAAA,iDAAkG;AAElG,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mDAAmD;IAChE,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG;QACb,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAO,CAAC,CAAC,CAAmC,CAAA;QAEnE,MAAM,IAAI,GAAW,MAAM,IAAI,CAAC,qBAAqB,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;QAC9D,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAA;QAEjD,MAAM,IAAI,GAAW,MAAM,IAAI,CAAC,qBAAqB,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;QAC9D,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAA;QAEjD,MAAM,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC,CAAA;QACvC,MAAM,IAAI,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE;YAChC,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;QACtC,CAAC,EAAE,IAAI,CAAC,KAAe,CAAC,CAAA;QAExB,IAAI,IAAI,CAAC,KAAK;YAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,KAAe,EAAE,IAAI,CAAC,CAAA;QAEpE,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/time/setTimeout.d.ts.map b/dist/native/time/setTimeout.d.ts.map index eb9c40d8ed..97de844aa8 100644 --- a/dist/native/time/setTimeout.d.ts.map +++ b/dist/native/time/setTimeout.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"setTimeout.d.ts","sourceRoot":"","sources":["../../../src/native/time/setTimeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAkC,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;AAElG,wBA6CE"} \ No newline at end of file +{"version":3,"file":"setTimeout.d.ts","sourceRoot":"","sources":["../../../src/native/time/setTimeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAkC,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;AAElG,wBA8CE"} \ No newline at end of file diff --git a/dist/native/time/setTimeout.js b/dist/native/time/setTimeout.js index e9fd75827a..cc82894c5c 100644 --- a/dist/native/time/setTimeout.js +++ b/dist/native/time/setTimeout.js @@ -36,8 +36,9 @@ exports.default = new structures_1.NativeFunction({ const name = await this["resolveUnhandledArg"](ctx, 2); if (!this["isValidReturnType"](name)) return name; + const c = ctx.clone(ctx.cloneRuntime()); const data = setTimeout(async () => { - await this["resolveCode"](ctx, code); + await this["resolveCode"](c, code); if (name.value) ctx.client.timeouts.delete(name.value); }, time.value); diff --git a/dist/native/time/setTimeout.js.map b/dist/native/time/setTimeout.js.map index f11e14233c..1b15e4b104 100644 --- a/dist/native/time/setTimeout.js.map +++ b/dist/native/time/setTimeout.js.map @@ -1 +1 @@ -{"version":3,"file":"setTimeout.js","sourceRoot":"","sources":["../../../src/native/time/setTimeout.ts"],"names":[],"mappings":";;AAAA,iDAAkG;AAElG,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oCAAoC;IACjD,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG;QACb,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,M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CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAe,EAAE,IAAI,CAAC,CAAA;QAEnE,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/unsafe/eval.js b/dist/native/unsafe/eval.js index 0c930745bd..5ddb122369 100644 --- a/dist/native/unsafe/eval.js +++ b/dist/native/unsafe/eval.js @@ -28,7 +28,7 @@ exports.default = new structures_1.NativeFunction({ send ??= true; try { const result = await core_1.Interpreter.run({ - ...ctx.runtime, + ...ctx.cloneRuntime(), data: core_1.Compiler.compile(code), doNotSend: !send, }); diff --git a/dist/native/unsafe/eval.js.map b/dist/native/unsafe/eval.js.map index 0405d0c26c..264dc34106 100644 --- a/dist/native/unsafe/eval.js.map +++ b/dist/native/unsafe/eval.js.map @@ -1 +1 @@ -{"version":3,"file":"eval.js","sourceRoot":"","sources":["../../../src/native/unsafe/eval.ts"],"names":[],"mappings":";;AAAA,qCAAkD;AAClD,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sBAAsB;IACnC,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,kBAAkB;SAClC;QACD;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,gCAAgC;SAChD;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;QAC3B,IAAI,KAAK,IAAI,CAAA;QACb,IAAI;YACA,MAAM,MAAM,GAAG,MAAM,kBAAW,CAAC,GAAG,CAAC;gBACjC,GAAG,GAAG,CAAC,OAAO;gBACd,IAAI,EAAE,eAAQ,CAAC,OAAO,CAAC,IAAI,CAAC;gBAC5B,SAAS,EAAE,CAAC,IAAI;aACnB,CAAC,CAAA;YAEF,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;SACjF;QAAC,OAAO,KAAU,EAAE;YACjB,mBAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YACnB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;SAC3B;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"eval.js","sourceRoot":"","sources":["../../../src/native/unsafe/eval.ts"],"names":[],"mappings":";;AAAA,qCAAkD;AAClD,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,sBAAsB;IACnC,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,kBAAkB;SAClC;QACD;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,gCAAgC;SAChD;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;QAC3B,IAAI,KAAK,IAAI,CAAA;QACb,IAAI;YACA,MAAM,MAAM,GAAG,MAAM,kBAAW,CAAC,GAAG,CAAC;gBACjC,GAAG,GAAG,CAAC,YAAY,EAAE;gBACrB,IAAI,EAAE,eAAQ,CAAC,OAAO,CAAC,IAAI,CAAC;gBAC5B,SAAS,EAAE,CAAC,IAAI;aACnB,CAAC,CAAA;YAEF,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;SACjF;QAAC,OAAO,KAAU,EAAE;YACjB,mBAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YACnB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;SAC3B;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/user/userGuildBadge.d.ts b/dist/native/user/userGuildBadge.d.ts new file mode 100644 index 0000000000..c47a4609b9 --- /dev/null +++ b/dist/native/user/userGuildBadge.d.ts @@ -0,0 +1,20 @@ +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + required: true; + rest: false; + type: ArgType.User; +}, { + name: string; + description: string; + rest: false; + type: ArgType.Number; +}, { + name: string; + description: string; + rest: false; + type: ArgType.String; +}], true>; +export default _default; +//# sourceMappingURL=userGuildBadge.d.ts.map \ No newline at end of file diff --git a/dist/native/user/userGuildBadge.d.ts.map b/dist/native/user/userGuildBadge.d.ts.map new file mode 100644 index 0000000000..a61187c01c --- /dev/null +++ b/dist/native/user/userGuildBadge.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"userGuildBadge.d.ts","sourceRoot":"","sources":["../../../src/native/user/userGuildBadge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;AAElE,wBAkCE"} \ No newline at end of file diff --git a/dist/native/user/userGuildBadge.js b/dist/native/user/userGuildBadge.js new file mode 100644 index 0000000000..2fb09c852e --- /dev/null +++ b/dist/native/user/userGuildBadge.js @@ -0,0 +1,39 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$userGuildBadge", + version: "2.5.0", + description: "Returns the primary guild tag badge of a user", + unwrap: true, + brackets: false, + args: [ + { + name: "user ID", + description: "The user to get its primary guild", + required: true, + rest: false, + type: structures_1.ArgType.User, + }, + { + name: "size", + description: "The size to use for the image", + rest: false, + type: structures_1.ArgType.Number, + }, + { + name: "extension", + description: "The extension to use for the image", + rest: false, + type: structures_1.ArgType.String, + }, + ], + output: structures_1.ArgType.URL, + execute(ctx, [user, size, ext]) { + return this.success((user ?? ctx.user)?.guildTagBadgeURL({ + extension: ext || undefined, + size: size || undefined, + })); + }, +}); +//# sourceMappingURL=userGuildBadge.js.map \ No newline at end of file diff --git a/dist/native/user/userGuildBadge.js.map b/dist/native/user/userGuildBadge.js.map new file mode 100644 index 0000000000..d1732ea7c9 --- /dev/null +++ b/dist/native/user/userGuildBadge.js.map @@ -0,0 +1 @@ +{"version":3,"file":"userGuildBadge.js","sourceRoot":"","sources":["../../../src/native/user/userGuildBadge.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE;QACF;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,GAAG;IACnB,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;YACrD,SAAS,EAAG,GAAsB,IAAI,SAAS;YAC/C,IAAI,EAAG,IAAkB,IAAI,SAAS;SACzC,CAAC,CAAC,CAAA;IACP,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/user/userGuildEnabled.d.ts b/dist/native/user/userGuildEnabled.d.ts new file mode 100644 index 0000000000..b4e85bb02e --- /dev/null +++ b/dist/native/user/userGuildEnabled.d.ts @@ -0,0 +1,10 @@ +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + required: true; + rest: false; + type: ArgType.User; +}], true>; +export default _default; +//# sourceMappingURL=userGuildEnabled.d.ts.map \ No newline at end of file diff --git a/dist/native/user/userGuildEnabled.d.ts.map b/dist/native/user/userGuildEnabled.d.ts.map new file mode 100644 index 0000000000..d7d7bb871d --- /dev/null +++ b/dist/native/user/userGuildEnabled.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"userGuildEnabled.d.ts","sourceRoot":"","sources":["../../../src/native/user/userGuildEnabled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAmBE"} \ No newline at end of file diff --git a/dist/native/user/userGuildEnabled.js b/dist/native/user/userGuildEnabled.js new file mode 100644 index 0000000000..1496f8d58d --- /dev/null +++ b/dist/native/user/userGuildEnabled.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$userGuildEnabled", + version: "2.5.0", + description: "Returns whether the primary guild of a user is enabled", + unwrap: true, + brackets: false, + args: [ + { + name: "user ID", + description: "The user to get its primary guild", + required: true, + rest: false, + type: structures_1.ArgType.User, + }, + ], + output: structures_1.ArgType.Boolean, + execute(ctx, [user]) { + return this.success((user ?? ctx.user)?.primaryGuild?.identityEnabled); + }, +}); +//# sourceMappingURL=userGuildEnabled.js.map \ No newline at end of file diff --git a/dist/native/user/userGuildEnabled.js.map b/dist/native/user/userGuildEnabled.js.map new file mode 100644 index 0000000000..7e2b57a449 --- /dev/null +++ b/dist/native/user/userGuildEnabled.js.map @@ -0,0 +1 @@ +{"version":3,"file":"userGuildEnabled.js","sourceRoot":"","sources":["../../../src/native/user/userGuildEnabled.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wDAAwD;IACrE,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE;QACF;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,eAAe,CAAC,CAAA;IAC1E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/user/userGuildID.d.ts b/dist/native/user/userGuildID.d.ts new file mode 100644 index 0000000000..0d5ef4b7c6 --- /dev/null +++ b/dist/native/user/userGuildID.d.ts @@ -0,0 +1,10 @@ +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + required: true; + rest: false; + type: ArgType.User; +}], true>; +export default _default; +//# sourceMappingURL=userGuildID.d.ts.map \ No newline at end of file diff --git a/dist/native/user/userGuildID.d.ts.map b/dist/native/user/userGuildID.d.ts.map new file mode 100644 index 0000000000..e0e8f73dd4 --- /dev/null +++ b/dist/native/user/userGuildID.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"userGuildID.d.ts","sourceRoot":"","sources":["../../../src/native/user/userGuildID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAmBE"} \ No newline at end of file diff --git a/dist/native/user/userGuildID.js b/dist/native/user/userGuildID.js new file mode 100644 index 0000000000..4cc644047b --- /dev/null +++ b/dist/native/user/userGuildID.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$userGuildID", + version: "2.5.0", + description: "Returns the primary guild id of a user", + unwrap: true, + brackets: false, + args: [ + { + name: "user ID", + description: "The user to get its primary guild", + required: true, + rest: false, + type: structures_1.ArgType.User, + }, + ], + output: structures_1.ArgType.Guild, + execute(ctx, [user]) { + return this.success((user ?? ctx.user)?.primaryGuild?.identityGuildId); + }, +}); +//# sourceMappingURL=userGuildID.js.map \ No newline at end of file diff --git a/dist/native/user/userGuildID.js.map b/dist/native/user/userGuildID.js.map new file mode 100644 index 0000000000..c8347b2472 --- /dev/null +++ b/dist/native/user/userGuildID.js.map @@ -0,0 +1 @@ +{"version":3,"file":"userGuildID.js","sourceRoot":"","sources":["../../../src/native/user/userGuildID.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wCAAwC;IACrD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE;QACF;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,KAAK;IACrB,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,eAAe,CAAC,CAAA;IAC1E,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/user/userGuildTag.d.ts b/dist/native/user/userGuildTag.d.ts new file mode 100644 index 0000000000..08ed6703bd --- /dev/null +++ b/dist/native/user/userGuildTag.d.ts @@ -0,0 +1,10 @@ +import { ArgType, NativeFunction } from "../../structures"; +declare const _default: NativeFunction<[{ + name: string; + description: string; + required: true; + rest: false; + type: ArgType.User; +}], true>; +export default _default; +//# sourceMappingURL=userGuildTag.d.ts.map \ No newline at end of file diff --git a/dist/native/user/userGuildTag.d.ts.map b/dist/native/user/userGuildTag.d.ts.map new file mode 100644 index 0000000000..409f18ca60 --- /dev/null +++ b/dist/native/user/userGuildTag.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"userGuildTag.d.ts","sourceRoot":"","sources":["../../../src/native/user/userGuildTag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAmBE"} \ No newline at end of file diff --git a/dist/native/user/userGuildTag.js b/dist/native/user/userGuildTag.js new file mode 100644 index 0000000000..d981bdac06 --- /dev/null +++ b/dist/native/user/userGuildTag.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const structures_1 = require("../../structures"); +exports.default = new structures_1.NativeFunction({ + name: "$userGuildTag", + version: "2.5.0", + description: "Returns the primary guild tag name of a user", + unwrap: true, + brackets: false, + args: [ + { + name: "user ID", + description: "The user to get its primary guild", + required: true, + rest: false, + type: structures_1.ArgType.User, + }, + ], + output: structures_1.ArgType.String, + execute(ctx, [user]) { + return this.success((user ?? ctx.user)?.primaryGuild?.tag); + }, +}); +//# sourceMappingURL=userGuildTag.js.map \ No newline at end of file diff --git a/dist/native/user/userGuildTag.js.map b/dist/native/user/userGuildTag.js.map new file mode 100644 index 0000000000..f2dd3a851d --- /dev/null +++ b/dist/native/user/userGuildTag.js.map @@ -0,0 +1 @@ +{"version":3,"file":"userGuildTag.js","sourceRoot":"","sources":["../../../src/native/user/userGuildTag.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,8CAA8C;IAC3D,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE;QACF;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,IAAI;SACrB;KACJ;IACD,MAAM,EAAE,oBAAO,CAAC,MAAM;IACtB,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,GAAG,CAAC,CAAA;IAC9D,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/webhook/webhookCreate.d.ts.map b/dist/native/webhook/webhookCreate.d.ts.map index 02859319ba..4ad48733f0 100644 --- a/dist/native/webhook/webhookCreate.d.ts.map +++ b/dist/native/webhook/webhookCreate.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"webhookCreate.d.ts","sourceRoot":"","sources":["../../../src/native/webhook/webhookCreate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;;;;;;;AAdlC,wBAyCE"} \ No newline at end of file +{"version":3,"file":"webhookCreate.d.ts","sourceRoot":"","sources":["../../../src/native/webhook/webhookCreate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;eAgB3C,WAAW;;;;;;;;;;;;;AAdlC,wBA0CE"} \ No newline at end of file diff --git a/dist/native/webhook/webhookCreate.js b/dist/native/webhook/webhookCreate.js index 7500844080..edd9c5b0da 100644 --- a/dist/native/webhook/webhookCreate.js +++ b/dist/native/webhook/webhookCreate.js @@ -37,6 +37,7 @@ exports.default = new structures_1.NativeFunction({ .createWebhook({ name: name, avatar: url || undefined, + reason: ctx.reason }) .catch(ctx.noop); return this.success(web ? web.id : undefined); diff --git a/dist/native/webhook/webhookCreate.js.map b/dist/native/webhook/webhookCreate.js.map index 9dab5f7702..cc1c5bd3b4 100644 --- a/dist/native/webhook/webhookCreate.js.map +++ b/dist/native/webhook/webhookCreate.js.map @@ -1 +1 @@ -{"version":3,"file":"webhookCreate.js","sourceRoot":"","sources":["../../../src/native/webhook/webhookCreate.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wDAAwD;IACrE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,eAAe,IAAI,CAAC;SAClD;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC;QACnC,MAAM,EAAE,GAAG,OAAsB,CAAA;QACjC,MAAM,GAAG,GAAG,MAAM,EAAE;aACf,aAAa,CAAC;YACX,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,GAAG,IAAI,SAAS;SAC3B,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEpB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACjD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"webhookCreate.js","sourceRoot":"","sources":["../../../src/native/webhook/webhookCreate.ts"],"names":[],"mappings":";;AACA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wDAAwD;IACrE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,eAAe,IAAI,CAAC;SAClD;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC;QACnC,MAAM,EAAE,GAAG,OAAsB,CAAA;QACjC,MAAM,GAAG,GAAG,MAAM,EAAE;aACf,aAAa,CAAC;YACX,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,GAAG,IAAI,SAAS;YACxB,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEpB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACjD,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/webhook/webhookDelete.js b/dist/native/webhook/webhookDelete.js index f95f55f808..3ba05282f5 100644 --- a/dist/native/webhook/webhookDelete.js +++ b/dist/native/webhook/webhookDelete.js @@ -17,7 +17,7 @@ exports.default = new structures_1.NativeFunction({ }, ], async execute(ctx, [web]) { - await web.delete().catch(ctx.noop); + await web.delete(ctx.reason).catch(ctx.noop); return this.success(); }, }); diff --git a/dist/native/webhook/webhookDelete.js.map b/dist/native/webhook/webhookDelete.js.map index ebfe90b18f..3f71a23fc7 100644 --- a/dist/native/webhook/webhookDelete.js.map +++ b/dist/native/webhook/webhookDelete.js.map @@ -1 +1 @@ -{"version":3,"file":"webhookDelete.js","sourceRoot":"","sources":["../../../src/native/webhook/webhookDelete.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC;QACpB,MAAM,GAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAClC,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"webhookDelete.js","sourceRoot":"","sources":["../../../src/native/webhook/webhookDelete.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC;QACpB,MAAM,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAC5C,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/webhook/webhookEdit.d.ts.map b/dist/native/webhook/webhookEdit.d.ts.map index fd4e3e4349..d060f5ef46 100644 --- a/dist/native/webhook/webhookEdit.d.ts.map +++ b/dist/native/webhook/webhookEdit.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"webhookEdit.d.ts","sourceRoot":"","sources":["../../../src/native/webhook/webhookEdit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;AAElE,wBAsCE"} \ No newline at end of file +{"version":3,"file":"webhookEdit.d.ts","sourceRoot":"","sources":["../../../src/native/webhook/webhookEdit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;AAElE,wBAuCE"} \ No newline at end of file diff --git a/dist/native/webhook/webhookEdit.js b/dist/native/webhook/webhookEdit.js index 2787b421b7..eddaaf0ca2 100644 --- a/dist/native/webhook/webhookEdit.js +++ b/dist/native/webhook/webhookEdit.js @@ -4,7 +4,7 @@ const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$webhookEdit", version: "1.0.0", - description: "Edits webhook with given id", + description: "Edits webhook with given id, returns bool", brackets: true, unwrap: true, output: structures_1.ArgType.Boolean, @@ -34,6 +34,7 @@ exports.default = new structures_1.NativeFunction({ .edit({ avatar: avatar || undefined, name: name || undefined, + reason: ctx.reason }) .catch(ctx.noop); return this.success(!!edit); diff --git a/dist/native/webhook/webhookEdit.js.map b/dist/native/webhook/webhookEdit.js.map index a048810bf8..90830ed75a 100644 --- a/dist/native/webhook/webhookEdit.js.map +++ b/dist/native/webhook/webhookEdit.js.map @@ -1 +1 @@ -{"version":3,"file":"webhookEdit.js","sourceRoot":"","sources":["../../../src/native/webhook/webhookEdit.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC;QAClC,MAAM,IAAI,GAAG,MAAM,GAAG;aACjB,IAAI,CAAC;YACF,MAAM,EAAE,MAAM,IAAI,SAAS;YAC3B,IAAI,EAAE,IAAI,IAAI,SAAS;SAC1B,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEpB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IAC/B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"webhookEdit.js","sourceRoot":"","sources":["../../../src/native/webhook/webhookEdit.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,IAAI,EAAE;QACF;YACI,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC;QAClC,MAAM,IAAI,GAAG,MAAM,GAAG;aACjB,IAAI,CAAC;YACF,MAAM,EAAE,MAAM,IAAI,SAAS;YAC3B,IAAI,EAAE,IAAI,IAAI,SAAS;YACvB,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC;aACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAEpB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IAC/B,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/properties/bulk.d.ts b/dist/properties/bulk.d.ts index efbc86b213..ed431a4cdf 100644 --- a/dist/properties/bulk.d.ts +++ b/dist/properties/bulk.d.ts @@ -1,8 +1,12 @@ +import { Message } from "discord.js"; export declare enum BulkProperty { messages = "messages", contents = "contents", + timestamps = "timestamps", + attachments = "attachments", + stickers = "stickers", users = "users", count = "count" } -export declare const BulkProperties: import("../functions/defineProperties").Properties | import("discord.js").PartialMessage)[]>; +export declare const BulkProperties: import("../functions/defineProperties").Properties | import("discord.js").PartialMessage)[]>; //# sourceMappingURL=bulk.d.ts.map \ No newline at end of file diff --git a/dist/properties/bulk.d.ts.map b/dist/properties/bulk.d.ts.map index 9192a100de..eb5fa9c2b0 100644 --- a/dist/properties/bulk.d.ts.map +++ b/dist/properties/bulk.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../../src/properties/bulk.ts"],"names":[],"mappings":"AAIA,oBAAY,YAAY;IACpB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED,eAAO,MAAM,cAAc,0JAKzB,CAAA"} \ No newline at end of file +{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../../src/properties/bulk.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,oBAAY,YAAY;IACpB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED,eAAO,MAAM,cAAc,qIAQzB,CAAA"} \ No newline at end of file diff --git a/dist/properties/bulk.js b/dist/properties/bulk.js index a5db7d0065..b22abc23b3 100644 --- a/dist/properties/bulk.js +++ b/dist/properties/bulk.js @@ -9,11 +9,17 @@ var BulkProperty; (function (BulkProperty) { BulkProperty["messages"] = "messages"; BulkProperty["contents"] = "contents"; + BulkProperty["timestamps"] = "timestamps"; + BulkProperty["attachments"] = "attachments"; + BulkProperty["stickers"] = "stickers"; BulkProperty["users"] = "users"; BulkProperty["count"] = "count"; })(BulkProperty || (exports.BulkProperty = BulkProperty = {})); exports.BulkProperties = (0, defineProperties_1.default)({ messages: (i, sep) => i?.map(x => x.id).join(sep ?? ", "), + timestamps: (i, sep) => i?.map(x => x.createdTimestamp).join(sep ?? ", "), + attachments: (i, sep) => i?.flatMap(x => x.attachments.map(x => x.url)).filter(Boolean).join(sep ?? ", "), + stickers: (i, sep) => i?.flatMap(x => x.stickers.map(x => x.url)).filter(Boolean).join(sep ?? ", "), contents: (i, sep) => i?.map(x => x.content).filter(Boolean).join(sep ?? ", "), users: (i, sep) => i?.map(x => x.author?.id).filter(Boolean).join(sep ?? ", "), count: i => i?.length diff --git a/dist/properties/bulk.js.map b/dist/properties/bulk.js.map index 6c70b90022..e651b17964 100644 --- a/dist/properties/bulk.js.map +++ b/dist/properties/bulk.js.map @@ -1 +1 @@ -{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../../src/properties/bulk.ts"],"names":[],"mappings":";;;;;;AACA,qFAA4D;AAG5D,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,+BAAe,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAEY,QAAA,cAAc,GAAG,IAAA,0BAAgB,EAAuC;IACjF,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IACzD,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CA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AAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IACzG,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IACnG,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IAC9E,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IAC9E,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM;CACxB,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/properties/channel.d.ts b/dist/properties/channel.d.ts index 4ca9a6a8b8..1690c1ee3d 100644 --- a/dist/properties/channel.d.ts +++ b/dist/properties/channel.d.ts @@ -1,12 +1,22 @@ import { Channel } from "discord.js"; export declare enum ChannelProperty { id = "id", + name = "name", type = "type", topic = "topic", bitrate = "bitrate", members = "members", - name = "name", - timestamp = "timestamp" + timestamp = "timestamp", + nsfw = "nsfw", + flags = "flags", + parentID = "parentID", + position = "position", + rawPosition = "rawPosition", + slowmode = "slowmode", + appliedTags = "appliedTags", + availableTags = "availableTags", + archived = "archived", + locked = "locked" } export declare const ChannelProperties: import("../functions/defineProperties").Properties; //# sourceMappingURL=channel.d.ts.map \ No newline at end of file diff --git a/dist/properties/channel.d.ts.map b/dist/properties/channel.d.ts.map index c6b6ee7800..723b9ab9be 100644 --- a/dist/properties/channel.d.ts.map +++ b/dist/properties/channel.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/properties/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAwC,MAAM,YAAY,CAAA;AAG1E,oBAAY,eAAe;IACvB,EAAE,OAAO;IACT,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,SAAS,cAAc;CAC1B;AAED,eAAO,MAAM,iBAAiB,qFAa5B,CAAA"} \ No newline at end of file +{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/properties/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAwC,MAAM,YAAY,CAAA;AAG1E,oBAAY,eAAe;IACvB,EAAE,OAAO;IACT,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,QAAQ,aAAa;IACrB,MAAM,WAAW;CACpB;AAED,eAAO,MAAM,iBAAiB,qFAuB5B,CAAA"} \ No newline at end of file diff --git a/dist/properties/channel.js b/dist/properties/channel.js index a90280a056..93013cc459 100644 --- a/dist/properties/channel.js +++ b/dist/properties/channel.js @@ -9,12 +9,22 @@ const defineProperties_1 = __importDefault(require("../functions/definePropertie var ChannelProperty; (function (ChannelProperty) { ChannelProperty["id"] = "id"; + ChannelProperty["name"] = "name"; ChannelProperty["type"] = "type"; ChannelProperty["topic"] = "topic"; ChannelProperty["bitrate"] = "bitrate"; ChannelProperty["members"] = "members"; - ChannelProperty["name"] = "name"; ChannelProperty["timestamp"] = "timestamp"; + ChannelProperty["nsfw"] = "nsfw"; + ChannelProperty["flags"] = "flags"; + ChannelProperty["parentID"] = "parentID"; + ChannelProperty["position"] = "position"; + ChannelProperty["rawPosition"] = "rawPosition"; + ChannelProperty["slowmode"] = "slowmode"; + ChannelProperty["appliedTags"] = "appliedTags"; + ChannelProperty["availableTags"] = "availableTags"; + ChannelProperty["archived"] = "archived"; + ChannelProperty["locked"] = "locked"; })(ChannelProperty || (exports.ChannelProperty = ChannelProperty = {})); exports.ChannelProperties = (0, defineProperties_1.default)({ bitrate: (i) => (i?.isVoiceBased() ? i.bitrate : undefined), @@ -24,9 +34,19 @@ exports.ChannelProperties = (0, defineProperties_1.default)({ members: (i, sep) => i && "members" in i ? (i.members instanceof discord_js_1.Collection ? i.members : i.members.cache) .map((x) => x.id) - .join(sep || ", ") + .join(sep ?? ", ") : undefined, topic: (i) => (i && "topic" in i ? i.topic : undefined), type: (i) => discord_js_1.ChannelType[i?.type], + nsfw: (i) => (i && "nsfw" in i ? i.nsfw : undefined), + flags: (i, sep) => i?.flags?.toArray().join(sep ?? ", "), + parentID: (i) => (i && "parentId" in i ? i.parentId : undefined), + position: (i) => (i && "position" in i ? i.position : undefined), + rawPosition: (i) => (i && "rawPosition" in i ? i.rawPosition : undefined), + slowmode: (i) => (i && "rateLimitPerUser" in i ? i.rateLimitPerUser : undefined), + appliedTags: (i, sep) => (i && "appliedTags" in i ? i.appliedTags.join(sep ?? ", ") : undefined), + availableTags: (i, sep) => (i && "availableTags" in i ? i.availableTags.join(sep ?? ", ") : undefined), + archived: (i) => (i && "archived" in i ? i.archived : undefined), + locked: (i) => (i && "locked" in i ? i.locked : undefined), }); //# sourceMappingURL=channel.js.map \ No newline at end of file diff --git a/dist/properties/channel.js.map b/dist/properties/channel.js.map index 3332c4c048..b758e7277e 100644 --- a/dist/properties/channel.js.map +++ b/dist/properties/channel.js.map @@ -1 +1 @@ -{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/properties/channel.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA0E;AAC1E,qFAA4D;AAE5D,IAAY,eAQX;AARD,WAAY,eAAe;IACvB,4BAAS,CAAA;IACT,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;IACb,0CAAuB,CAAA;AAC3B,CAAC,EARW,eAAe,+BAAf,eAAe,QAQ1B;AAEY,QAAA,iBAAiB,GAAG,IAAA,0BAAgB,EAAkC;IAC/E,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3D,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB;IACrC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IACpD,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAChB,CAAC,IAAI,SAAS,IAAI,CAAC;QACf,CAAC,CAAE,CAAC,CAAC,CAAC,OAAO,YAAY,uBAAU,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAqC;aACjG,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAChB,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;QACtB,CAAC,CAAC,SAAS;IACnB,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IACvD,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,wBAAW,CAAC,CAAC,EAAE,IAAK,CAAC;CACrC,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/properties/channel.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA0E;AAC1E,qFAA4D;AAE5D,IAAY,eAkBX;AAlBD,WAAY,eAAe;IACvB,4BAAS,CAAA;IACT,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,0CAAuB,CAAA;IACvB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,wCAAqB,CAAA;IACrB,wCAAqB,CAAA;IACrB,8CAA2B,CAAA;IAC3B,wCAAqB,CAAA;IACrB,8CAA2B,CAAA;IAC3B,kDAA+B,CAAA;IAC/B,wCAAqB,CAAA;IACrB,oCAAiB,CAAA;AACrB,CAAC,EAlBW,eAAe,+BAAf,eAAe,QAkB1B;AAEY,QAAA,iBAAiB,GAAG,IAAA,0BAAgB,EAAkC;IAC/E,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3D,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB;IACrC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI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C,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IAChE,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,aAAa,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;IACzE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,kBAAkB,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;IAChF,WAAW,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,aAAa,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAChG,aAAa,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,eAAe,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACtG,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,UAAU,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IAChE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;CAC7D,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/properties/entitlement.d.ts b/dist/properties/entitlement.d.ts index 8fddfbbd9b..8363a84936 100644 --- a/dist/properties/entitlement.d.ts +++ b/dist/properties/entitlement.d.ts @@ -1,4 +1,3 @@ -import { Entitlement } from "discord.js"; export declare enum EntitlementProperty { userID = "userID", consumed = "consumed", @@ -13,5 +12,5 @@ export declare enum EntitlementProperty { guildSubscription = "guildSubscription", userSubscription = "userSubscription" } -export declare const EntitlementProperties: import("../functions/defineProperties").Properties; +export declare const EntitlementProperties: import("../functions/defineProperties").Properties; //# sourceMappingURL=entitlement.d.ts.map \ No newline at end of file diff --git a/dist/properties/entitlement.d.ts.map b/dist/properties/entitlement.d.ts.map index 16f0f3edf3..34015cda15 100644 --- a/dist/properties/entitlement.d.ts.map +++ b/dist/properties/entitlement.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"entitlement.d.ts","sourceRoot":"","sources":["../../src/properties/entitlement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,WAAW,EAAgC,MAAM,YAAY,CAAA;AAIxG,oBAAY,mBAAmB;IAC3B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,EAAE,OAAO;IACT,KAAK,UAAU;IACf,IAAI,SAAS;IACb,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;CACxC;AAED,eAAO,MAAM,qBAAqB,6FAahC,CAAA"} \ No newline at end of file +{"version":3,"file":"entitlement.d.ts","sourceRoot":"","sources":["../../src/properties/entitlement.ts"],"names":[],"mappings":"AAIA,oBAAY,mBAAmB;IAC3B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,EAAE,OAAO;IACT,KAAK,UAAU;IACf,IAAI,SAAS;IACb,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;CACxC;AAED,eAAO,MAAM,qBAAqB,kHAahC,CAAA"} \ No newline at end of file diff --git a/dist/properties/entitlement.js.map b/dist/properties/entitlement.js.map index 81fb3b99e4..7138ca18aa 100644 --- a/dist/properties/entitlement.js.map +++ b/dist/properties/entitlement.js.map @@ -1 +1 @@ -{"version":3,"file":"entitlement.js","sourceRoot":"","sources":["../../src/properties/entitlement.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAwG;AACxG,qFAA4D;AAG5D,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC3B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,0CAAmB,CAAA;IACnB,gCAAS,CAAA;IACT,sCAAe,CAAA;IACf,oCAAa,CAAA;IACb,oDAA6B,CAAA;IAC7B,wDAAiC,CAAA;IACjC,wCAAiB,CAAA;IACjB,oCAAa,CAAA;IACb,8DAAuC,CAAA;IACvC,4DAAqC,CAAA;AACzC,CAAC,EAbW,mBAAmB,mCAAnB,mBAAmB,QAa9B;AAEY,QAAA,qBAAqB,GAAG,IAAA,0BAAgB,EAAqD;IACtG,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK;IACtB,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,4BAAe,CAAC,CAAC,EAAE,IAAK,CAAC;IACtC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE;IAC1B,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE;IACtB,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,mBAAmB,EAAE;IAChD,gBAAgB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,kBAAkB,EAAE;IAC9C,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM;IAC7B,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ;IACjC,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO;IAC/B,YAAY,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,aAAa;IAC1C,cAAc,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,eAAe;CACjD,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"entitlement.js","sourceRoot":"","sources":["../../src/properties/entitlement.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA4C;AAC5C,qFAA4D;AAG5D,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC3B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,0CAAmB,CAAA;IACnB,gCAAS,CAAA;IACT,sCAAe,CAAA;IACf,oCAAa,CAAA;IACb,oDAA6B,CAAA;IAC7B,wDAAiC,CAAA;IACjC,wCAAiB,CAAA;IACjB,oCAAa,CAAA;IACb,8DAAuC,CAAA;IACvC,4DAAqC,CAAA;AACzC,CAAC,EAbW,mBAAmB,mCAAnB,mBAAmB,QAa9B;AAEY,QAAA,qBAAqB,GAAG,IAAA,0BAAgB,EAAqD;IACtG,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK;IACtB,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,4BAAe,CAAC,CAAC,EAAE,IAAK,CAAC;IACtC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE;IAC1B,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE;IACtB,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,mBAAmB,EAAE;IAChD,gBAAgB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,kBAAkB,EAAE;IAC9C,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM;IAC7B,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ;IACjC,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO;IAC/B,YAAY,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,aAAa;IAC1C,cAAc,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,eAAe;CACjD,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/properties/guild.d.ts b/dist/properties/guild.d.ts index 9bbbf43d4b..1409d90aef 100644 --- a/dist/properties/guild.d.ts +++ b/dist/properties/guild.d.ts @@ -1,4 +1,4 @@ -import { Guild } from "discord.js"; +import { Guild, GuildPreview } from "discord.js"; export declare enum GuildProperty { id = "id", ownerID = "ownerID", @@ -19,8 +19,24 @@ export declare enum GuildProperty { emojis = "emojis", stickers = "stickers", boostLevel = "boostLevel", + discoverySplash = "discoverySplash", approximateMemberCount = "approximateMemberCount", approximatePresenceCount = "approximatePresenceCount" } export declare const GuildProperties: import("../functions/defineProperties").Properties; +export declare enum GuildPreviewProperty { + id = "id", + name = "name", + description = "description", + features = "features", + timestamp = "timestamp", + icon = "icon", + splash = "splash", + emojis = "emojis", + stickers = "stickers", + discoverySplash = "discoverySplash", + approximateMemberCount = "approximateMemberCount", + approximatePresenceCount = "approximatePresenceCount" +} +export declare const GuildPreviewProperties: import("../functions/defineProperties").Properties; //# sourceMappingURL=guild.d.ts.map \ No newline at end of file diff --git a/dist/properties/guild.d.ts.map b/dist/properties/guild.d.ts.map index 890f5bdc72..4d9ddd043e 100644 --- a/dist/properties/guild.d.ts.map +++ b/dist/properties/guild.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"guild.d.ts","sourceRoot":"","sources":["../../src/properties/guild.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAGlC,oBAAY,aAAa;IACrB,EAAE,OAAO;IACT,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,sBAAsB,2BAA2B;IACjD,wBAAwB,6BAA6B;CACxD;AAED,eAAO,MAAM,eAAe,iFAsB1B,CAAA"} \ No newline at end of file +{"version":3,"file":"guild.d.ts","sourceRoot":"","sources":["../../src/properties/guild.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAGhD,oBAAY,aAAa;IACrB,EAAE,OAAO;IACT,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,eAAe,oBAAoB;IACnC,sBAAsB,2BAA2B;IACjD,wBAAwB,6BAA6B;CACxD;AAED,eAAO,MAAM,eAAe,iFAuB1B,CAAA;AAEF,oBAAY,oBAAoB;IAC5B,EAAE,OAAO;IACT,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,eAAe,oBAAoB;IACnC,sBAAsB,2BAA2B;IACjD,wBAAwB,6BAA6B;CACxD;AAED,eAAO,MAAM,sBAAsB,+FAajC,CAAA"} \ No newline at end of file diff --git a/dist/properties/guild.js b/dist/properties/guild.js index 04febad9b2..ef703bc5ec 100644 --- a/dist/properties/guild.js +++ b/dist/properties/guild.js @@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.GuildProperties = exports.GuildProperty = void 0; +exports.GuildPreviewProperties = exports.GuildPreviewProperty = exports.GuildProperties = exports.GuildProperty = void 0; const defineProperties_1 = __importDefault(require("../functions/defineProperties")); var GuildProperty; (function (GuildProperty) { @@ -26,6 +26,7 @@ var GuildProperty; GuildProperty["emojis"] = "emojis"; GuildProperty["stickers"] = "stickers"; GuildProperty["boostLevel"] = "boostLevel"; + GuildProperty["discoverySplash"] = "discoverySplash"; GuildProperty["approximateMemberCount"] = "approximateMemberCount"; GuildProperty["approximatePresenceCount"] = "approximatePresenceCount"; })(GuildProperty || (exports.GuildProperty = GuildProperty = {})); @@ -51,5 +52,35 @@ exports.GuildProperties = (0, defineProperties_1.default)({ memberCount: (i) => i?.memberCount, maximumMembers: (i) => i?.maximumMembers, approximatePresenceCount: (i) => i?.approximatePresenceCount, + discoverySplash: (i) => i?.discoverySplashURL(), +}); +var GuildPreviewProperty; +(function (GuildPreviewProperty) { + GuildPreviewProperty["id"] = "id"; + GuildPreviewProperty["name"] = "name"; + GuildPreviewProperty["description"] = "description"; + GuildPreviewProperty["features"] = "features"; + GuildPreviewProperty["timestamp"] = "timestamp"; + GuildPreviewProperty["icon"] = "icon"; + GuildPreviewProperty["splash"] = "splash"; + GuildPreviewProperty["emojis"] = "emojis"; + GuildPreviewProperty["stickers"] = "stickers"; + GuildPreviewProperty["discoverySplash"] = "discoverySplash"; + GuildPreviewProperty["approximateMemberCount"] = "approximateMemberCount"; + GuildPreviewProperty["approximatePresenceCount"] = "approximatePresenceCount"; +})(GuildPreviewProperty || (exports.GuildPreviewProperty = GuildPreviewProperty = {})); +exports.GuildPreviewProperties = (0, defineProperties_1.default)({ + description: (i) => i?.description, + features: (i, sep) => i?.features.join(sep || ", "), + id: (i) => i?.id, + name: (i) => i?.name, + icon: (i) => i?.iconURL(), + splash: (i) => i?.splashURL(), + emojis: (i, sep) => i?.emojis.map((x) => x.id).join(sep || ", "), + stickers: (i, sep) => i?.stickers.map((x) => x.id).join(sep || ", "), + timestamp: (i) => i?.createdTimestamp, + approximateMemberCount: (i) => i?.approximateMemberCount, + approximatePresenceCount: (i) => i?.approximatePresenceCount, + discoverySplash: (i) => i?.discoverySplashURL(), }); //# sourceMappingURL=guild.js.map \ No newline at end of file diff --git a/dist/properties/guild.js.map b/dist/properties/guild.js.map index f1dafeb6fa..1d8c1f5d26 100644 --- a/dist/properties/guild.js.map +++ b/dist/properties/guild.js.map @@ -1 +1 @@ -{"version":3,"file":"guild.js","sourceRoot":"","sources":["../../src/properties/guild.ts"],"names":[],"mappings":";;;;;;AACA,qFAA4D;AAE5D,IAAY,aAsBX;AAtBD,WAAY,aAAa;IACrB,0BAAS,CAAA;IACT,oCAAmB,CAAA;IACnB,8BAAa,CAAA;IACb,4CAA2B,CAAA;IAC3B,sCAAqB,CAAA;IACrB,8CAA6B,CAAA;IAC7B,kDAAiC,CAAA;IACjC,oDAAmC,CAAA;IACnC,0CAAyB,CAAA;IACzB,4CAA2B,CAAA;IAC3B,0CAAyB,CAAA;IACzB,wCAAuB,CAAA;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB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,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,wBAAwB;IAC5D,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,kBAAkB,EAAE;CAClD,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/properties/member.d.ts b/dist/properties/member.d.ts index 08423c5efd..c916a8e786 100644 --- a/dist/properties/member.d.ts +++ b/dist/properties/member.d.ts @@ -23,7 +23,8 @@ export declare enum MemberProperty { timestamp = "timestamp", boosting = "boosting", boostingSince = "boostingSince", - permissions = "permissions" + permissions = "permissions", + avatarDecoration = "avatarDecoration" } export declare const MemberProperties: import("../functions/defineProperties").Properties; //# sourceMappingURL=member.d.ts.map \ No newline at end of file diff --git a/dist/properties/member.d.ts.map b/dist/properties/member.d.ts.map index b3d458625b..3af2f258e7 100644 --- a/dist/properties/member.d.ts.map +++ b/dist/properties/member.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"member.d.ts","sourceRoot":"","sources":["../../src/properties/member.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAO,WAAW,EAA8D,MAAM,YAAY,CAAA;AAGpI,oBAAY,cAAc;IACtB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,EAAE,OAAO;IACT,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;CAC9B;AAED,eAAO,MAAM,gBAAgB,oHAyC3B,CAAA"} \ No newline at end of file +{"version":3,"file":"member.d.ts","sourceRoot":"","sources":["../../src/properties/member.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAO,WAAW,EAA8D,MAAM,YAAY,CAAA;AAGpI,oBAAY,cAAc;IACtB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,EAAE,OAAO;IACT,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;CACxC;AAED,eAAO,MAAM,gBAAgB,oHA0C3B,CAAA"} \ No newline at end of file diff --git a/dist/properties/member.js b/dist/properties/member.js index 1144afedc9..ae66927121 100644 --- a/dist/properties/member.js +++ b/dist/properties/member.js @@ -32,6 +32,7 @@ var MemberProperty; MemberProperty["boosting"] = "boosting"; MemberProperty["boostingSince"] = "boostingSince"; MemberProperty["permissions"] = "permissions"; + MemberProperty["avatarDecoration"] = "avatarDecoration"; })(MemberProperty || (exports.MemberProperty = MemberProperty = {})); exports.MemberProperties = (0, defineProperties_1.default)({ timestamp: (i) => i instanceof discord_js_1.GuildMember ? i?.joinedTimestamp : (i?.joined_at ? new Date(i.joined_at).getTime() : null), @@ -76,5 +77,6 @@ exports.MemberProperties = (0, defineProperties_1.default)({ platform: (i, sep) => Object.keys(i?.presence?.clientStatus ?? {}).join(sep || ", "), boosting: (i) => (i instanceof discord_js_1.GuildMember ? i?.premiumSinceTimestamp : i?.premium_since) != null, boostingSince: (i) => i instanceof discord_js_1.GuildMember ? i?.premiumSinceTimestamp ?? 0 : (i?.premium_since ? new Date(i.premium_since).getTime() : 0), + avatarDecoration: (i) => i instanceof discord_js_1.GuildMember ? i.avatarDecorationURL() : (i?.avatar_decoration_data ? new discord_js_1.CDN().avatarDecoration(i.avatar_decoration_data.asset) : null), }); //# sourceMappingURL=member.js.map \ No newline at end of file diff --git a/dist/properties/member.js.map b/dist/properties/member.js.map index ed9bca5f4b..c3bfe06b58 100644 --- a/dist/properties/member.js.map +++ b/dist/properties/member.js.map @@ -1 +1 @@ -{"version":3,"file":"member.js","sourceRoot":"","sources":["../../src/properties/member.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAoI;AACpI,qFAA4D;AAE5D,IAAY,cAyBX;AAzBD,WAAY,cAAc;IACtB,uCAAqB,CAAA;IACrB,6CAA2B,CAAA;IAC3B,+CAA6B,CAAA;IAC7B,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;IACnB,2BAAS,CAAA;IACT,2CAAyB,CAAA;IACzB,qCAAmB,CAAA;IACnB,iDAA+B,CAAA;IAC/B,mCAAiB,CAAA;IACjB,2CAAyB,CAAA;IACzB,yCAAuB,CAAA;IACvB,+CAA6B,CAAA;IAC7B,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;IACrB,iDAA+B,CAAA;IAC/B,6CAA2B,CAAA;AAC/B,CAAC,EAzBW,cAAc,8BAAd,cAAc,QAyBzB;AAEY,QAAA,gBAAgB,GAAG,IAAA,0BAAgB,EAAiE;IAC7G,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,YAAY,wBAAW,CAAC,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAA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I,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAChJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"member.js","sourceRoot":"","sources":["../../src/properties/member.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAoI;AACpI,qFAA4D;AAE5D,IAAY,cA0BX;AA1BD,WAAY,cAAc;IACtB,uCAAqB,CAAA;IACrB,6CAA2B,CAAA;IAC3B,+CAA6B,CAAA;IAC7B,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;IACnB,2BAAS,CAAA;IACT,2CAAyB,CAAA;IACzB,qCAAmB,CAAA;IACnB,iDAA+B,CAAA;IAC/B,mCAAiB,CAAA;IACjB,2CAAyB,CAAA;IACzB,yCAAuB,CAAA;IACvB,+CAA6B,CAAA;IAC7B,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;IACrB,iDAA+B,CAAA;IAC/B,6CAA2B,CAAA;IAC3B,uDAAqC,CAAA;AACzC,CAAC,EA1BW,cAAc,8BAAd,cAAc,QA0BzB;AAEY,QAAA,gBAAgB,GAAG,IAAA,0BAAgB,EAAiE;IAC7G,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,YAAY,wBAAW,CAAC,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACzH,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE,CAAE,CAAiB,EAAE,eAAe;IACxD,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,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CAAC,CAAC,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,IAAI,gBAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;CAChL,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/properties/poll.d.ts b/dist/properties/poll.d.ts new file mode 100644 index 0000000000..a0e0765620 --- /dev/null +++ b/dist/properties/poll.d.ts @@ -0,0 +1,21 @@ +import { Poll, PollAnswer } from "discord.js"; +export declare enum PollProperty { + question = "question", + layoutType = "layoutType", + answers = "answers", + answerCount = "answerCount", + totalVotes = "totalVotes", + expiresTimestamp = "expiresTimestamp", + allowMultiselect = "allowMultiselect", + resultsFinalized = "resultsFinalized" +} +export declare const PollProperties: import("../functions/defineProperties").Properties; +export declare enum PollAnswerProperty { + id = "id", + text = "text", + emoji = "emoji", + voteCount = "voteCount", + messageID = "messageID" +} +export declare const PollAnswerProperties: import("../functions/defineProperties").Properties; +//# sourceMappingURL=poll.d.ts.map \ No newline at end of file diff --git a/dist/properties/poll.d.ts.map b/dist/properties/poll.d.ts.map new file mode 100644 index 0000000000..46af59884c --- /dev/null +++ b/dist/properties/poll.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../src/properties/poll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,YAAY,CAAA;AAG7D,oBAAY,YAAY;IACpB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,gBAAgB,qBAAqB;IACrC,gBAAgB,qBAAqB;IACrC,gBAAgB,qBAAqB;CACxC;AAED,eAAO,MAAM,cAAc,+EASzB,CAAA;AAEF,oBAAY,kBAAkB;IAC1B,EAAE,OAAO;IACT,IAAI,SAAS;IACb,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,SAAS,cAAc;CAC1B;AAED,eAAO,MAAM,oBAAoB,2FAM/B,CAAA"} \ No newline at end of file diff --git a/dist/properties/poll.js b/dist/properties/poll.js new file mode 100644 index 0000000000..6988bbb8d1 --- /dev/null +++ b/dist/properties/poll.js @@ -0,0 +1,45 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PollAnswerProperties = exports.PollAnswerProperty = exports.PollProperties = exports.PollProperty = void 0; +const discord_js_1 = require("discord.js"); +const defineProperties_1 = __importDefault(require("../functions/defineProperties")); +var PollProperty; +(function (PollProperty) { + PollProperty["question"] = "question"; + PollProperty["layoutType"] = "layoutType"; + PollProperty["answers"] = "answers"; + PollProperty["answerCount"] = "answerCount"; + PollProperty["totalVotes"] = "totalVotes"; + PollProperty["expiresTimestamp"] = "expiresTimestamp"; + PollProperty["allowMultiselect"] = "allowMultiselect"; + PollProperty["resultsFinalized"] = "resultsFinalized"; +})(PollProperty || (exports.PollProperty = PollProperty = {})); +exports.PollProperties = (0, defineProperties_1.default)({ + question: (i) => i?.question.text, + layoutType: (i) => discord_js_1.PollLayoutType[i?.layoutType], + answers: (i) => JSON.stringify(i?.answers, undefined, 4), + answerCount: (i) => i?.answers.size, + totalVotes: (i) => i?.answers.reduce((n, x) => n + x.voteCount, 0) ?? 0, + expiresTimestamp: (i) => i?.expiresTimestamp, + allowMultiselect: (i) => i?.allowMultiselect, + resultsFinalized: (i) => i?.resultsFinalized, +}); +var PollAnswerProperty; +(function (PollAnswerProperty) { + PollAnswerProperty["id"] = "id"; + PollAnswerProperty["text"] = "text"; + PollAnswerProperty["emoji"] = "emoji"; + PollAnswerProperty["voteCount"] = "voteCount"; + PollAnswerProperty["messageID"] = "messageID"; +})(PollAnswerProperty || (exports.PollAnswerProperty = PollAnswerProperty = {})); +exports.PollAnswerProperties = (0, defineProperties_1.default)({ + id: (i) => i?.id, + text: (i) => i?.text, + emoji: (i) => i?.emoji?.toString(), + voteCount: (i) => i?.voteCount, + messageID: (i) => i?.poll.message.id +}); +//# sourceMappingURL=poll.js.map \ No newline at end of file diff --git a/dist/properties/poll.js.map b/dist/properties/poll.js.map new file mode 100644 index 0000000000..def7ab1686 --- /dev/null +++ b/dist/properties/poll.js.map @@ -0,0 +1 @@ +{"version":3,"file":"poll.js","sourceRoot":"","sources":["../../src/properties/poll.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA6D;AAC7D,qFAA4D;AAE5D,IAAY,YASX;AATD,WAAY,YAAY;IACpB,qCAAqB,CAAA;IACrB,yCAAyB,CAAA;IACzB,mCAAmB,CAAA;IACnB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,qDAAqC,CAAA;IACrC,qDAAqC,CAAA;IACrC,qDAAqC,CAAA;AACzC,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAEY,QAAA,cAAc,GAAG,IAAA,0BAAgB,EAA4B;IACtE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC,IAAI;IACjC,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,2BAAc,CAAC,CAAC,EAAE,UAAW,CAAC;IACjD,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;IACxD,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI;IACnC,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC;IACvE,gBAAgB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB;IAC5C,gBAAgB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB;IAC5C,gBAAgB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB;CAC/C,CAAC,CAAA;AAEF,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC1B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,6CAAuB,CAAA;IACvB,6CAAuB,CAAA;AAC3B,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B;AAEY,QAAA,oBAAoB,GAAG,IAAA,0BAAgB,EAAwC;IACxF,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI;IACpB,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE;IAClC,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS;IAC9B,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE;CACvC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/properties/pollAnswer.d.ts b/dist/properties/pollAnswer.d.ts deleted file mode 100644 index d694e15432..0000000000 --- a/dist/properties/pollAnswer.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { PollAnswer } from "discord.js"; -export declare enum PollAnswerProperty { - text = "text", - voteCount = "voteCount", - id = "id", - messageID = "messageID" -} -export declare const PollAnswerProperties: import("../functions/defineProperties").Properties; -//# sourceMappingURL=pollAnswer.d.ts.map \ No newline at end of file diff --git a/dist/properties/pollAnswer.d.ts.map b/dist/properties/pollAnswer.d.ts.map deleted file mode 100644 index 92ee0f75ec..0000000000 --- a/dist/properties/pollAnswer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pollAnswer.d.ts","sourceRoot":"","sources":["../../src/properties/pollAnswer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,UAAU,EAAkB,MAAM,YAAY,CAAA;AAG7E,oBAAY,kBAAkB;IAC1B,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,EAAE,OAAO;IACT,SAAS,cAAc;CAC1B;AAED,eAAO,MAAM,oBAAoB,2FAK/B,CAAA"} \ No newline at end of file diff --git a/dist/properties/pollAnswer.js b/dist/properties/pollAnswer.js deleted file mode 100644 index 1d19dc7d5f..0000000000 --- a/dist/properties/pollAnswer.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PollAnswerProperties = exports.PollAnswerProperty = void 0; -const defineProperties_1 = __importDefault(require("../functions/defineProperties")); -var PollAnswerProperty; -(function (PollAnswerProperty) { - PollAnswerProperty["text"] = "text"; - PollAnswerProperty["voteCount"] = "voteCount"; - PollAnswerProperty["id"] = "id"; - PollAnswerProperty["messageID"] = "messageID"; -})(PollAnswerProperty || (exports.PollAnswerProperty = PollAnswerProperty = {})); -exports.PollAnswerProperties = (0, defineProperties_1.default)({ - text: i => i?.text, - voteCount: i => i?.voteCount, - id: i => i?.id, - messageID: i => i?.poll.message.id -}); -//# sourceMappingURL=pollAnswer.js.map \ No newline at end of file diff --git a/dist/properties/pollAnswer.js.map b/dist/properties/pollAnswer.js.map deleted file mode 100644 index e12e515db3..0000000000 --- a/dist/properties/pollAnswer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pollAnswer.js","sourceRoot":"","sources":["../../src/properties/pollAnswer.ts"],"names":[],"mappings":";;;;;;AACA,qFAA4D;AAE5D,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC1B,mCAAa,CAAA;IACb,6CAAuB,CAAA;IACvB,+BAAS,CAAA;IACT,6CAAuB,CAAA;AAC3B,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAEY,QAAA,oBAAoB,GAAG,IAAA,0BAAgB,EAAwC;IACxF,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI;IAClB,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS;IAC5B,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE;IACd,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE;CACrC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/properties/presence.d.ts.map b/dist/properties/presence.d.ts.map index 2784618e65..6dc7cd3c4d 100644 --- a/dist/properties/presence.d.ts.map +++ b/dist/properties/presence.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../src/properties/presence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,QAAQ,EAAQ,MAAM,YAAY,CAAA;AAGjE,oBAAY,gBAAgB;IACxB,EAAE,OAAO;IACT,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACxB;AAED,eAAO,MAAM,kBAAkB,uFAK7B,CAAA"} \ No newline at end of file +{"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../src/properties/presence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAGrC,oBAAY,gBAAgB;IACxB,EAAE,OAAO;IACT,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACxB;AAED,eAAO,MAAM,kBAAkB,uFAK7B,CAAA"} \ No newline at end of file diff --git a/dist/properties/role.d.ts b/dist/properties/role.d.ts index a36f47979f..5e7f3de695 100644 --- a/dist/properties/role.d.ts +++ b/dist/properties/role.d.ts @@ -1,6 +1,5 @@ import { Role } from "discord.js"; export declare enum RoleProperty { - timestamp = "timestamp", id = "id", name = "name", icon = "icon", @@ -10,9 +9,13 @@ export declare enum RoleProperty { mentionable = "mentionable", rawPosition = "rawPosition", position = "position", + timestamp = "timestamp", permissions = "permissions", tags = "tags", - members = "members" + members = "members", + unicodeEmoji = "unicodeEmoji", + secondaryColor = "secondaryColor", + tertiaryColor = "tertiaryColor" } export declare const RoleProperties: import("../functions/defineProperties").Properties; //# sourceMappingURL=role.d.ts.map \ No newline at end of file diff --git a/dist/properties/role.d.ts.map b/dist/properties/role.d.ts.map index 1bdd12b76f..77fa8c82a0 100644 --- a/dist/properties/role.d.ts.map +++ b/dist/properties/role.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../src/properties/role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,IAAI,EAAE,MAAM,YAAY,CAAA;AAGvD,oBAAY,YAAY;IACpB,SAAS,cAAc;IACvB,EAAE,OAAO;IACT,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,IAAI,SAAS;IACb,OAAO,YAAY;CACtB;AAED,eAAO,MAAM,cAAc,+EAczB,CAAA"} \ No newline at end of file +{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../src/properties/role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAIjC,oBAAY,YAAY;IACpB,EAAE,OAAO;IACT,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;CAClC;AAED,eAAO,MAAM,cAAc,+EAiBzB,CAAA"} \ No newline at end of file diff --git a/dist/properties/role.js b/dist/properties/role.js index da6196c4b5..202422482e 100644 --- a/dist/properties/role.js +++ b/dist/properties/role.js @@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); exports.RoleProperties = exports.RoleProperty = void 0; const defineProperties_1 = __importDefault(require("../functions/defineProperties")); +const hex_1 = require("../functions/hex"); var RoleProperty; (function (RoleProperty) { - RoleProperty["timestamp"] = "timestamp"; RoleProperty["id"] = "id"; RoleProperty["name"] = "name"; RoleProperty["icon"] = "icon"; @@ -17,9 +17,13 @@ var RoleProperty; RoleProperty["mentionable"] = "mentionable"; RoleProperty["rawPosition"] = "rawPosition"; RoleProperty["position"] = "position"; + RoleProperty["timestamp"] = "timestamp"; RoleProperty["permissions"] = "permissions"; RoleProperty["tags"] = "tags"; RoleProperty["members"] = "members"; + RoleProperty["unicodeEmoji"] = "unicodeEmoji"; + RoleProperty["secondaryColor"] = "secondaryColor"; + RoleProperty["tertiaryColor"] = "tertiaryColor"; })(RoleProperty || (exports.RoleProperty = RoleProperty = {})); exports.RoleProperties = (0, defineProperties_1.default)({ timestamp: (i) => i?.createdTimestamp, @@ -35,5 +39,8 @@ exports.RoleProperties = (0, defineProperties_1.default)({ rawPosition: (i) => i?.rawPosition, permissions: (i, sep) => i?.permissions.toArray().join(sep || ", "), tags: (i, sep) => Object.keys(i?.tags ?? {}).join(sep || ", "), + unicodeEmoji: (i) => i?.unicodeEmoji, + secondaryColor: (i) => i?.colors.secondaryColor ? "#" + (0, hex_1.int2hex)(i?.colors.secondaryColor) : null, + tertiaryColor: (i) => i?.colors.tertiaryColor ? "#" + (0, hex_1.int2hex)(i?.colors.tertiaryColor) : null, }); //# sourceMappingURL=role.js.map \ No newline at end of file diff --git a/dist/properties/role.js.map b/dist/properties/role.js.map index 43c1a54801..5a24b0db82 100644 --- a/dist/properties/role.js.map +++ b/dist/properties/role.js.map @@ -1 +1 @@ -{"version":3,"file":"role.js","sourceRoot":"","sources":["../../src/properties/role.ts"],"names":[],"mappings":";;;;;;AACA,qFAA4D;AAE5D,IAAY,YAcX;AAdD,WAAY,YAAY;IACpB,uCAAuB,CAAA;IACvB,yBAAS,CAAA;IACT,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,2CAA2B,CAAA;IAC3B,2CAA2B,CAAA;IAC3B,qCAAqB,CAAA;IACrB,2CAA2B,CAAA;IAC3B,6BAAa,CAAA;IACb,mCAAmB,CAAA;AACvB,CAAC,EAdW,YAAY,4BAAZ,YAAY,QAcvB;AAEY,QAAA,cAAc,GAAG,IAAA,0BAAgB,EAA4B;IACtE,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB;IACrC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI;IACpB,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI;IACpB,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ;IACzB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK;IACxB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO;IAC1B,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IAClE,W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CAAC,CAAC,CAAC,CAAC,IAAI;IAChG,aAAa,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,GAAG,IAAA,aAAO,EAAC,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI;CAChG,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/properties/scheduledEvent.d.ts b/dist/properties/scheduledEvent.d.ts index f30a30a6e4..4dfa0790e7 100644 --- a/dist/properties/scheduledEvent.d.ts +++ b/dist/properties/scheduledEvent.d.ts @@ -1,3 +1,4 @@ +import { GuildScheduledEvent } from "discord.js"; export declare enum ScheduledEventProperty { id = "id", userID = "userID", @@ -15,5 +16,5 @@ export declare enum ScheduledEventProperty { location = "location", entityType = "entityType" } -export declare const ScheduledEventProperties: import("../functions/defineProperties").Properties>; +export declare const ScheduledEventProperties: import("../functions/defineProperties").Properties>; //# sourceMappingURL=scheduledEvent.d.ts.map \ No newline at end of file diff --git a/dist/properties/scheduledEvent.d.ts.map b/dist/properties/scheduledEvent.d.ts.map index 13d30c81ef..db6a5cd919 100644 --- a/dist/properties/scheduledEvent.d.ts.map +++ b/dist/properties/scheduledEvent.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"scheduledEvent.d.ts","sourceRoot":"","sources":["../../src/properties/scheduledEvent.ts"],"names":[],"mappings":"AAIA,oBAAY,sBAAsB;IAC9B,EAAE,OAAO;IACT,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC5B;AAED,eAAO,MAAM,wBAAwB,6KAgBnC,CAAA"} \ No newline at end of file +{"version":3,"file":"scheduledEvent.d.ts","sourceRoot":"","sources":["../../src/properties/scheduledEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAGhD,oBAAY,sBAAsB;IAC9B,EAAE,OAAO;IACT,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC5B;AAED,eAAO,MAAM,wBAAwB,wJAgBnC,CAAA"} \ No newline at end of file diff --git a/dist/properties/scheduledEvent.js.map b/dist/properties/scheduledEvent.js.map index 0541ce2d8c..f9a5428d9d 100644 --- a/dist/properties/scheduledEvent.js.map +++ b/dist/properties/scheduledEvent.js.map @@ -1 +1 @@ -{"version":3,"file":"scheduledEvent.js","sourceRoot":"","sources":["../../src/properties/scheduledEvent.ts"],"names":[],"mappings":";;;;;;AACA,qFAA4D;AAG5D,IAAY,sBAgBX;AAhBD,WAAY,sBAAsB;IAC9B,mCAAS,CAAA;IACT,2CAAiB,CAAA;IACjB,6CAAmB,CAAA;IACnB,iDAAuB,CAAA;IACvB,uCAAa,CAAA;IACb,iDAAuB,CAAA;IACvB,qDAA2B,CAAA;IAC3B,2DAAiC,CAAA;IACjC,uDAA6B,CAAA;IAC7B,iDAAuB,CAAA;IACvB,qCAAW,CAAA;IACX,yCAAe,CAAA;IACf,+CAAqB,CAAA;IACrB,+CAAqB,CAAA;IACrB,mDAAyB,CAAA;AAC7B,CAAC,EAhBW,sBAAsB,sCAAtB,sBAAsB,QAgBjC;AAEY,QAAA,wBAAwB,GAAG,IAAA,0BAAgB,EAA2D;IAC/G,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAA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ist/properties/sticker.d.ts index b451bd3ed6..c5f31137c1 100644 --- a/dist/properties/sticker.d.ts +++ b/dist/properties/sticker.d.ts @@ -1,8 +1,9 @@ import { Sticker } from "discord.js"; export declare enum StickerProperty { - guildID = "guildID", - name = "name", id = "id", + name = "name", + guildID = "guildID", + authorID = "authorID", timestamp = "timestamp", url = "url", format = "format", diff --git a/dist/properties/sticker.d.ts.map b/dist/properties/sticker.d.ts.map index 626b6ce6af..641e039891 100644 --- a/dist/properties/sticker.d.ts.map +++ b/dist/properties/sticker.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"sticker.d.ts","sourceRoot":"","sources":["../../src/properties/sticker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,OAAO,EAAqB,MAAM,YAAY,CAAA;AAGnE,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,EAAE,OAAO;IACT,SAAS,cAAc;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,WAAW,gBAAgB;CAC9B;AAED,eAAO,MAAM,iBAAiB,qFAY5B,CAAA"} \ No newline at end of file +{"version":3,"file":"sticker.d.ts","sourceRoot":"","sources":["../../src/properties/sticker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAqB,MAAM,YAAY,CAAA;AAGvD,oBAAY,eAAe;IACvB,EAAE,OAAO;IACT,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,WAAW,gBAAgB;CAC9B;AAED,eAAO,MAAM,iBAAiB,qFAa5B,CAAA"} \ No newline at end of file diff --git a/dist/properties/sticker.js b/dist/properties/sticker.js index ac84ac4b88..9bf4b37c33 100644 --- a/dist/properties/sticker.js +++ b/dist/properties/sticker.js @@ -8,9 +8,10 @@ const discord_js_1 = require("discord.js"); const defineProperties_1 = __importDefault(require("../functions/defineProperties")); var StickerProperty; (function (StickerProperty) { - StickerProperty["guildID"] = "guildID"; - StickerProperty["name"] = "name"; StickerProperty["id"] = "id"; + StickerProperty["name"] = "name"; + StickerProperty["guildID"] = "guildID"; + StickerProperty["authorID"] = "authorID"; StickerProperty["timestamp"] = "timestamp"; StickerProperty["url"] = "url"; StickerProperty["format"] = "format"; @@ -22,6 +23,7 @@ var StickerProperty; })(StickerProperty || (exports.StickerProperty = StickerProperty = {})); exports.StickerProperties = (0, defineProperties_1.default)({ guildID: (i) => i?.guild?.id, + authorID: (i) => i?.user?.id, id: (i) => i?.id, name: (i) => i?.name, url: (i) => i?.url, diff --git a/dist/properties/sticker.js.map b/dist/properties/sticker.js.map index 38b727a957..3d67a14763 100644 --- a/dist/properties/sticker.js.map +++ b/dist/properties/sticker.js.map @@ -1 +1 @@ -{"version":3,"file":"sticker.js","sourceRoot":"","sources":["../../src/properties/sticker.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAmE;AACnE,qFAA4D;AAE5D,IAAY,eAYX;AAZD,WAAY,eAAe;IACvB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;IACb,4BAAS,CAAA;IACT,0CAAuB,CAAA;IACvB,8BAAW,CAAA;IACX,oCAAiB,CAAA;IACjB,0CAAuB,CAAA;IACvB,gCAAa,CAAA;IACb,0CAAuB,CAAA;IACvB,oCAAiB,CAAA;IACjB,8CAA2B,CAAA;AAC/B,CAAC,EAZW,eAAe,+BAAf,eAAe,QAY1B;AAEY,QAAA,iBAAiB,GAAG,IAAA,0BAAgB,EAAkC;IAC/E,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;IAC5B,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE;IAChB,IAAI,EAAE,CA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AAE,EAAE;IAC5B,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI;IACpB,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG;IAClB,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB;IACrC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,8BAAiB,CAAC,CAAC,EAAE,MAAO,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS;IAC5B,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW;IAChC,IAAI,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI;IACzB,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS;IAC5B,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM;CACzB,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/properties/subscription.d.ts b/dist/properties/subscription.d.ts new file mode 100644 index 0000000000..03c2c14e09 --- /dev/null +++ b/dist/properties/subscription.d.ts @@ -0,0 +1,15 @@ +import { Subscription } from "discord.js"; +export declare enum SubscriptionProperty { + id = "id", + userID = "userID", + status = "status", + country = "country", + skuIDs = "skuIDs", + renewalSkuIDs = "renewalSkuIDs", + entitlementIDs = "entitlementIDs", + canceledTimestamp = "canceledTimestamp", + periodEndTimestamp = "periodEndTimestamp", + periodStartTimestamp = "periodStartTimestamp" +} +export declare const SubscriptionProperties: import("../functions/defineProperties").Properties; +//# sourceMappingURL=subscription.d.ts.map \ No newline at end of file diff --git a/dist/properties/subscription.d.ts.map b/dist/properties/subscription.d.ts.map new file mode 100644 index 0000000000..4c154a1aa6 --- /dev/null +++ b/dist/properties/subscription.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/properties/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAsB,MAAM,YAAY,CAAA;AAG7D,oBAAY,oBAAoB;IAC5B,EAAE,OAAO;IACT,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;IACvC,kBAAkB,uBAAuB;IACzC,oBAAoB,yBAAyB;CAChD;AAED,eAAO,MAAM,sBAAsB,+FAWjC,CAAA"} \ No newline at end of file diff --git a/dist/properties/subscription.js b/dist/properties/subscription.js new file mode 100644 index 0000000000..2a5042dde8 --- /dev/null +++ b/dist/properties/subscription.js @@ -0,0 +1,34 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SubscriptionProperties = exports.SubscriptionProperty = void 0; +const discord_js_1 = require("discord.js"); +const defineProperties_1 = __importDefault(require("../functions/defineProperties")); +var SubscriptionProperty; +(function (SubscriptionProperty) { + SubscriptionProperty["id"] = "id"; + SubscriptionProperty["userID"] = "userID"; + SubscriptionProperty["status"] = "status"; + SubscriptionProperty["country"] = "country"; + SubscriptionProperty["skuIDs"] = "skuIDs"; + SubscriptionProperty["renewalSkuIDs"] = "renewalSkuIDs"; + SubscriptionProperty["entitlementIDs"] = "entitlementIDs"; + SubscriptionProperty["canceledTimestamp"] = "canceledTimestamp"; + SubscriptionProperty["periodEndTimestamp"] = "periodEndTimestamp"; + SubscriptionProperty["periodStartTimestamp"] = "periodStartTimestamp"; +})(SubscriptionProperty || (exports.SubscriptionProperty = SubscriptionProperty = {})); +exports.SubscriptionProperties = (0, defineProperties_1.default)({ + id: (i) => i?.id, + userID: (i) => i?.userId, + status: (i) => discord_js_1.SubscriptionStatus[i?.status], + country: (i) => i?.country, + skuIDs: (i, sep) => i?.skuIds.join(sep ?? ", "), + renewalSkuIDs: (i, sep) => i?.renewalSkuIds?.join(sep ?? ", "), + entitlementIDs: (i, sep) => i?.entitlementIds.join(sep ?? ", "), + canceledTimestamp: (i) => i?.canceledTimestamp, + periodEndTimestamp: (i) => i?.currentPeriodEndTimestamp, + periodStartTimestamp: (i) => i?.currentPeriodStartTimestamp, +}); +//# sourceMappingURL=subscription.js.map \ No newline at end of file diff --git a/dist/properties/subscription.js.map b/dist/properties/subscription.js.map new file mode 100644 index 0000000000..08b363e009 --- /dev/null +++ b/dist/properties/subscription.js.map @@ -0,0 +1 @@ +{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../src/properties/subscription.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA6D;AAC7D,qFAA4D;AAE5D,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC5B,iCAAS,CAAA;IACT,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;IACnB,yCAAiB,CAAA;IACjB,uDAA+B,CAAA;IAC/B,yDAAiC,CAAA;IACjC,+DAAuC,CAAA;IACvC,iEAAyC,CAAA;IACzC,qEAA6C,CAAA;AACjD,CAAC,EAXW,oBAAoB,oCAApB,oBAAoB,QAW/B;AAEY,QAAA,sBAAsB,GAAG,IAAA,0BAAgB,EAA4C;IAC9F,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM;IACxB,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,+BAAkB,CAAC,CAAC,EAAE,MAAO,CAAC;IAC7C,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO;IAC1B,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IAC/C,aAAa,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IAC9D,cAAc,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IAC/D,iBAAiB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,iBAAiB;IAC9C,kBAAkB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,yBAAyB;IACvD,oBAAoB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,2BAA2B;CAC9D,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/properties/user.d.ts b/dist/properties/user.d.ts index 37bc95572a..7240ed17b1 100644 --- a/dist/properties/user.d.ts +++ b/dist/properties/user.d.ts @@ -9,7 +9,12 @@ export declare enum UserProperty { accentColor = "accentColor", banner = "banner", timestamp = "timestamp", - dmChannelID = "dmChannelID" + dmChannelID = "dmChannelID", + avatarDecoration = "avatarDecoration", + primaryGuildTag = "primaryGuildTag", + primaryGuildBadge = "primaryGuildBadge", + primaryGuildEnabled = "primaryGuildEnabled", + primaryGuildID = "primaryGuildID" } export declare const UserProperties: import("../functions/defineProperties").Properties; //# sourceMappingURL=user.d.ts.map \ No newline at end of file diff --git a/dist/properties/user.d.ts.map b/dist/properties/user.d.ts.map index a8432539b3..cbe83e399a 100644 --- a/dist/properties/user.d.ts.map +++ b/dist/properties/user.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/properties/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiD,IAAI,EAAE,MAAM,YAAY,CAAA;AAGhF,oBAAY,YAAY;IACpB,EAAE,OAAO;IACT,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,WAAW,gBAAgB;CAC9B;AAED,eAAO,MAAM,cAAc,+EAWzB,CAAA"} \ No newline at end of file +{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/properties/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAGjC,oBAAY,YAAY;IACpB,EAAE,OAAO;IACT,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,iBAAiB,sBAAsB;IACvC,mBAAmB,wBAAwB;IAC3C,cAAc,mBAAmB;CACpC;AAED,eAAO,MAAM,cAAc,+EAgBzB,CAAA"} \ No newline at end of file diff --git a/dist/properties/user.js b/dist/properties/user.js index d636b5b803..740259c069 100644 --- a/dist/properties/user.js +++ b/dist/properties/user.js @@ -17,6 +17,11 @@ var UserProperty; UserProperty["banner"] = "banner"; UserProperty["timestamp"] = "timestamp"; UserProperty["dmChannelID"] = "dmChannelID"; + UserProperty["avatarDecoration"] = "avatarDecoration"; + UserProperty["primaryGuildTag"] = "primaryGuildTag"; + UserProperty["primaryGuildBadge"] = "primaryGuildBadge"; + UserProperty["primaryGuildEnabled"] = "primaryGuildEnabled"; + UserProperty["primaryGuildID"] = "primaryGuildID"; })(UserProperty || (exports.UserProperty = UserProperty = {})); exports.UserProperties = (0, defineProperties_1.default)({ id: (i) => i?.id, @@ -29,5 +34,10 @@ exports.UserProperties = (0, defineProperties_1.default)({ accentColor: (i) => i?.hexAccentColor, timestamp: (i) => i?.createdTimestamp, dmChannelID: (i) => i?.dmChannel?.id, + avatarDecoration: (i) => i?.avatarDecorationURL(), + primaryGuildTag: (i) => i?.primaryGuild?.tag, + primaryGuildBadge: (i) => i?.guildTagBadgeURL(), + primaryGuildEnabled: (i) => i?.primaryGuild?.identityEnabled, + primaryGuildID: (i) => i?.primaryGuild?.identityGuildId }); //# sourceMappingURL=user.js.map \ No newline at end of file diff --git a/dist/properties/user.js.map b/dist/properties/user.js.map index d9933c677b..1bd64cc7ec 100644 --- a/dist/properties/user.js.map +++ b/dist/properties/user.js.map @@ -1 +1 @@ -{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/properties/user.ts"],"names":[],"mappings":";;;;;;AACA,qFAA4D;AAE5D,IAAY,YAWX;AAXD,WAAY,YAAY;IACpB,yBAAS,CAAA;IACT,qCAAqB,CAAA;IACrB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,2CAA2B,CAAA;IAC3B,iCAAiB,CAAA;IACjB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;AAC/B,CAAC,EAXW,YAAY,4BAAZ,YAAY,QAWvB;AAEY,QAAA,cAAc,GAAG,IAAA,0BAAgB,EAA4B;IACtE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB,EAAE;IACpC,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IACzD,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,WAAW;IAClC,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU;IAChC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,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AAE,EAAE,CAAC,CAAC,EAAE,UAAU;IAChC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ;IAC5B,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE;IAC7B,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,cAAc;IACrC,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB;IACrC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE;IACpC,gBAAgB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,mBAAmB,EAAE;IACjD,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,GAAG;IAC5C,iBAAiB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB,EAAE;IAC/C,mBAAmB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,eAAe;IAC5D,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,eAAe;CAC1D,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/structures/@internal/Arg.d.ts b/dist/structures/@internal/Arg.d.ts index 59977abd02..d29e205a1d 100644 --- a/dist/structures/@internal/Arg.d.ts +++ b/dist/structures/@internal/Arg.d.ts @@ -49,6 +49,9 @@ export declare class Arg { static optionalSoundboardSound(name?: string, desc?: string): IArg; static restSoundboardSound(name?: string, desc?: string, required?: boolean): IArg; static requiredSoundboardSound(name?: string, desc?: string): IArg; + static optionalForumTag(name?: string, desc?: string): IArg; + static requiredForumTag(name?: string, desc?: string): IArg; + static restForumTag(name?: string, desc?: string, required?: boolean): IArg; static restTextChannel(name?: string, desc?: string, required?: boolean): IArg; static optionalTextChannel(name?: string, desc?: string): IArg; static requiredTextChannel(name?: string, desc?: string): IArg; diff --git a/dist/structures/@internal/Arg.d.ts.map b/dist/structures/@internal/Arg.d.ts.map index 9f83a0a2b3..6d58a08902 100644 --- a/dist/structures/@internal/Arg.d.ts.map +++ b/dist/structures/@internal/Arg.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Arg.d.ts","sourceRoot":"","sources":["../../../src/structures/@internal/Arg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAkB,MAAM,kBAAkB,CAAA;AAE1E,qBAAa,GAAG;IACZ,OAAO;WAEO,cAAc,CAAC,IAAI,GAAE,MAAiB,EAAE,IAAI,GAAE,MAA4B;WAS1E,cAAc,CAAC,IAAI,GAAE,MAAiB,EAAE,IAAI,GAAE,MAA4B;WAU1E,UAAU,CAAC,IAAI,GAAE,MAAkB,EAAE,IAAI,GAAE,MAA6B,EAAE,QAAQ,GAAE,OAAe;WAUnG,eAAe,CAAC,IAAI,GAAE,MAAqB,EAAE,IAAI,GAAE,MAA6B;WAUhF,WAAW,CAAC,IAAI,GAAE,MAAsB,EAAE,IAAI,GAAE,MAA8B,EAAE,QAAQ,GAAE,OAAe;WAWzG,eAAe,CAAC,IAAI,GAAE,MAAqB,EAAE,IAAI,GAAE,MAA6B;WAWhF,eAAe,CAAC,IAAI,GAAE,MAAsB,EAAE,IAAI,GAAE,MAA6B;WASjF,WAAW,CAAC,IAAI,GAAE,MAAsB,EAAE,IAAI,GAAE,MAA8B,EAAE,QAAQ,GAAE,OAAe;WAUzG,eAAe,CAAC,IAAI,GAAE,MAAqB,EAAE,IAAI,GAAE,MAA6B;WAShF,YAAY,CAAC,CAAC,SAAS,QAAQ,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,GAAE,MAAqB,EAAE,IAAI,GAAE,MAAgC;WAU3G,YAAY,CAAC,CAAC,SAAS,QAAQ,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,GAAE,MAAqB,E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I,GAAE,MAAoC;WASxF,QAAQ,CAAC,IAAI,GAAE,MAAyB,EAAE,IAAI,GAAE,MAAoC,EAAE,QAAQ,GAAE,OAAe;WAU/G,cAAc,CAAC,IAAI,GAAE,MAAsB,EAAE,IAAI,GAAE,MAAiC,EAAE,QAAQ,GAAE,OAAe;WAU/G,kBAAkB,CAAC,IAAI,GAAE,MAAsB,EAAE,IAAI,GAAE,MAAgC;WASvF,kBAAkB,CAAC,IAAI,GAAE,MAAqB,EAAE,IAAI,GAAE,MAAgC;WAUtF,2BAA2B,CAAC,IAAI,GAAE,MAA+B,EAAE,IAAI,GAAE,MAA+D;WAUxI,uBAAuB,CAAC,IAAI,GAAE,MAAgC,EAAE,IAAI,GAAE,MAAgE,EAAE,QAAQ,GAAE,OAAe;WAUjK,2BAA2B,CAAC,IAAI,GAAE,MAA+B,EAAE,IAAI,GAAE,MAA+D;WASxI,kBAAkB,CAAC,IAAI,GAAE,MAAoB,EAAE,IAAI,GAAE,MAA+B;WAWpF,cAAc,CAAC,IAAI,GAAE,MAAuB,EAAE,IAAI,GAAE,MAAkC,EAAE,QAAQ,GAAE,OAAe;WAYjH,kBAAkB,CAAC,IAAI,GAAE,MAAoB,EAAE,IAAI,GAAE,MAA+B;IAYlG,OAAO,CAAC,MAAM,CAAC,MAAM;CAGxB"} \ No newline at end of file diff --git a/dist/structures/@internal/Arg.js b/dist/structures/@internal/Arg.js index 8b5193c0c6..0b3d3ade4c 100644 --- a/dist/structures/@internal/Arg.js +++ b/dist/structures/@internal/Arg.js @@ -443,6 +443,35 @@ class Arg { pointer: 0 }); } + static optionalForumTag(name = "tag ID", desc = "The forum tag to use") { + return Arg.create({ + name, + description: desc, + rest: false, + type: NativeFunction_1.ArgType.ForumTag, + pointer: 0 + }); + } + static requiredForumTag(name = "tag ID", desc = "The forum tag to use") { + return Arg.create({ + name, + description: desc, + rest: false, + required: true, + type: NativeFunction_1.ArgType.ForumTag, + pointer: 0 + }); + } + static restForumTag(name = "tag IDs", desc = "The forum tags to use", required = false) { + return Arg.create({ + name, + description: desc, + rest: true, + required, + type: NativeFunction_1.ArgType.ForumTag, + pointer: 0 + }); + } static restTextChannel(name = "text channel IDs", desc = "The text channels to use", required = false) { return Arg.create({ name, diff --git a/dist/structures/@internal/Arg.js.map b/dist/structures/@internal/Arg.js.map index 723ba5c778..13122da0a8 100644 --- a/dist/structures/@internal/Arg.js.map +++ b/dist/structures/@internal/Arg.js.map @@ -1 +1 @@ -{"version":3,"file":"Arg.js","sourceRoot":"","sources":["../../../src/structures/@internal/Arg.ts"],"names":[],"mappings":";;;AAAA,qDAA0E;AAE1E,MAAa,GAAG;IACZ,gBAAuB,CAAC;IAEjB,MAAM,CAAC,cAAc,CAAC,OAAe,QAAQ,EAAE,OAAe,mBAAmB;QACpF,OAAO,GAAG,CAAC,MAAM,CAAC;YACd,IAAI;YACJ,WAAW,EAAE,IAAI;YACjB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,wBAAO,CAAC,MAAM;SACvB,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,OAAe,QAAQ,EAAE,OAAe,mBAAmB;QACpF,OAAO,GAAG,CAAC,MAAM,CAAC;YACd,IAAI;YACJ,WAAW,EAAE,IAAI;YACjB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,wBAAO,CAAC,MAAM;SACvB,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,OAAe,SAAS,EAAE,OAAe,oBAAoB,EAAE,WAAoB,KAAK;QAC7G,OAAO,GAAG,CAAC,MAAM,CAAC;YACd,IAAI;YACJ,WAAW,EAAE,IAAI;YACjB,IAAI,EAAE,IAAI;YACV,QAAQ;YACR,IAAI,EAAE,wBAAO,CAAC,MAAM;SACvB,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,CAAC,eAAe,CAAC,OAAe,YAAY,EAAE,OAAe,oBAAoB;QAC1F,OAAO,GAAG,CAAC,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AE,OAAO;YACxB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,wBAAO,CAAC,UAAU;SAC3B,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,OAAe,cAAc,EAAE,OAAe,yBAAyB,EAAE,WAAoB,KAAK;QAC3H,OAAO,GAAG,CAAC,MAAM,CAAC;YACd,IAAI;YACJ,WAAW,EAAE,IAAI;YACjB,OAAO,EAAE,CAAC;YACV,eAAe,EAAE,OAAO;YACxB,IAAI,EAAE,IAAI;YACV,QAAQ;YACR,IAAI,EAAE,wBAAO,CAAC,UAAU;SAC3B,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,CAAC,kBAAkB,CAAC,OAAe,WAAW,EAAE,OAAe,sBAAsB;QAC9F,OAAO,GAAG,CAAC,MAAM,CAAC;YACd,IAAI;YACJ,WAAW,EAAE,IAAI;YACjB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;YACd,eAAe,EAAE,OAAO;YACxB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,wBAAO,CAAC,UAAU;SAC3B,CAAC,CAAA;IACN,CAAC;IAEO,MAAM,CAAC,MAAM,CAA8F,IAAsC;QACrJ,OAAO,IAAI,CAAA;IACf,CAAC;CACJ;AAt+BD,kBAs+BC"} \ No newline at end of file +{"version":3,"file":"Arg.js","sourceRoot":"","sources":["../../../src/structures/@internal/Arg.ts"],"names":[],"mappings":";;;AAAA,qDAA0E;AAE1E,MAAa,GAAG;IACZ,gBAAuB,CAAC;IAEjB,MAAM,CAAC,cAAc,CAAC,OAAe,QAAQ,EAAE,OAAe,mBAAmB;QACpF,OAAO,GAAG,CAAC,MAAM,CAAC;YACd,IAAI;YACJ,WAAW,EAAE,IAAI;YACjB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,wBAAO,CAAC,MAAM;SACvB,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,OAAe,QAAQ,EAAE,OAAe,mBAAmB;Q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GAAG,CAAC,MAAM,CAAC;YACd,IAAI;YACJ,WAAW,EAAE,IAAI;YACjB,OAAO,EAAE,CAAC;YACV,eAAe,EAAE,OAAO;YACxB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,wBAAO,CAAC,UAAU;SAC3B,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,OAAe,cAAc,EAAE,OAAe,yBAAyB,EAAE,WAAoB,KAAK;QAC3H,OAAO,GAAG,CAAC,MAAM,CAAC;YACd,IAAI;YACJ,WAAW,EAAE,IAAI;YACjB,OAAO,EAAE,CAAC;YACV,eAAe,EAAE,OAAO;YACxB,IAAI,EAAE,IAAI;YACV,QAAQ;YACR,IAAI,EAAE,wBAAO,CAAC,UAAU;SAC3B,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,CAAC,kBAAkB,CAAC,OAAe,WAAW,EAAE,OAAe,sBAAsB;QAC9F,OAAO,GAAG,CAAC,MAAM,CAAC;YACd,IAAI;YACJ,WAAW,EAAE,IAAI;YACjB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;YACd,eAAe,EAAE,OAAO;YACxB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,wBAAO,CAAC,UAAU;SAC3B,CAAC,CAAA;IACN,CAAC;IAEO,MAAM,CAAC,MAAM,CAA8F,IAAsC;QACrJ,OAAO,IAAI,CAAA;IACf,CAAC;CACJ;AAtgCD,kBAsgCC"} \ No newline at end of file diff --git a/dist/structures/@internal/CompiledFunction.d.ts.map b/dist/structures/@internal/CompiledFunction.d.ts.map index 0d884784e1..c84761c723 100644 --- a/dist/structures/@internal/CompiledFunction.d.ts.map +++ b/dist/structures/@internal/CompiledFunction.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"CompiledFunction.d.ts","sourceRoot":"","sources":["../../../src/structures/@internal/CompiledFunction.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,+BAA+B,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAA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AAW,CAAC,UAAU,CAAC,OAAO,CAAQ;CAG/D"} \ No newline at end of file diff --git a/dist/structures/@internal/CompiledFunction.js b/dist/structures/@internal/CompiledFunction.js index 8d2e0871c5..55495a2dd3 100644 --- a/dist/structures/@internal/CompiledFunction.js +++ b/dist/structures/@internal/CompiledFunction.js @@ -279,7 +279,7 @@ class CompiledFunction { return this.resolveGuildEmoji(ctx, arg, id, ref) ?? await this.resolveApplicationEmoji(ctx, arg, id, ref); } resolveForumTag(ctx, arg, str, ref) { - return this.resolvePointer(arg, ref, ctx.channel)?.availableTags.find((x) => x.id === str || x.name === str); + return this.resolvePointer(arg, ref, ctx.channel)?.availableTags.find((x) => x.id === str); } resolveSticker(ctx, arg, str, ref) { const fromUrl = CompiledFunction.CDNIdRegex.exec(str); diff --git a/dist/structures/@internal/CompiledFunction.js.map b/dist/structures/@internal/CompiledFunction.js.map index fef9459232..0570307cda 100644 --- a/dist/structures/@internal/CompiledFunction.js.map +++ b/dist/structures/@internal/CompiledFunction.js.map @@ -1 +1 @@ -{"version":3,"file":"CompiledFunction.js","sourceRoot":"","sources":["../../../src/structures/@internal/CompiledFunction.ts"],"names":[],"mappings":";;;;;;AAAA,2CASmB;AACnB,2BAA+B;AAC/B,+BAA8B;AAC9B,+CAA4C;AAE5C,0EAAiD;AACjD,6CAAgD;AAChD,oDAAyE;AAEzE,qDAAiG;AACjG,qCAA0D;AAC1D,6CAAkD;AAwBlD,MAAa,gBAAgB;IAClB,MAAM,CAAU,sBAAsB,GAAG;QAC5C,GAAG,EAAE,IAAI;QACT,GAAG,EAAE,IAAI;QACT,GAAG,EAAE,KAAK;KACb,CAAA;IAEM,MAAM,CAAU,OAAO,GAAG,eAAe,CAAA;IACzC,MAAM,CAAU,QAAQ,GAAG,cAAc,CAAA;IACzC,MAAM,CAAU,UAAU,GAAG,yDAAyD,CAAA;IAE7E,IAAI,CAA2B;IAC/B,EAAE,CAA2B;IAE7C,YAAmB,GAAsB;QACrC,IAAI,CAAC,EAAE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AAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;IACrJ,CAAC;IAEM,gBAAgB,CAAC,KAAsC;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,cAAO,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;IAChG,CAAC;IAEM,aAAa,CAAC,QAAyC,IAAI;QAC9D,OAAO,IAAI,eAAM,CAAC,mBAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAChD,CAAC;IAEM,OAAO,CAAC,QAAyC,IAAI;QACxD,OAAO,IAAI,eAAM,CAAC,mBAAU,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;IAC/L,CAAC;;AAviBL,4CAwiBC"} \ No newline at end of file +{"version":3,"file":"CompiledFunction.js","sourceRoot":"","sources":["../../../src/structures/@internal/CompiledFunction.ts"],"names":[],"mappings":";;;;;;AAAA,2CASmB;AACnB,2BAA+B;AAC/B,+BAA8B;AAC9B,+CA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C,KAAK,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;IAC/L,CAAC;;AAriBL,4CAsiBC"} \ No newline at end of file diff --git a/dist/structures/@internal/Container.d.ts b/dist/structures/@internal/Container.d.ts index 4d6b654894..cf8003afb3 100644 --- a/dist/structures/@internal/Container.d.ts +++ b/dist/structures/@internal/Container.d.ts @@ -1,5 +1,5 @@ -import { ActionRowBuilder, ApplicationCommandOptionChoiceData, AttachmentBuilder, AutoModerationActionExecution, BaseChannel, Channel, ComponentType, ContainerBuilder, ContainerComponentBuilder, EmbedBuilder, Guild, GuildEmoji, GuildMember, GuildScheduledEvent, Interaction, InteractionEditReplyOptions, InteractionReplyOptions, Invite, Message, MessageActionRowComponentBuilder, MessageMentionOptions, MessageReaction, MessageReplyOptions, ModalBuilder, PollData, Presence, Role, SoundboardSound, Sticker, StickerResolvable, ThreadChannelResolvable, User, VoiceState, WebhookClient } from "discord.js"; -export type Sendable = {} | Sticker | GuildScheduledEvent | Role | Presence | Message | User | GuildMember | BaseChannel | Interaction | VoiceState | WebhookClient | GuildEmoji | Guild | MessageReaction | Invite | AutoModerationActionExecution | SoundboardSound; +import { ActionRowBuilder, ApplicationCommandOptionChoiceData, ApplicationEmoji, AttachmentBuilder, AutoModerationActionExecution, BaseChannel, Channel, ComponentType, ContainerBuilder, ContainerComponentBuilder, EmbedBuilder, Emoji, Guild, GuildEmoji, GuildMember, GuildScheduledEvent, Interaction, InteractionEditReplyOptions, InteractionReplyOptions, Invite, Message, MessageActionRowComponentBuilder, MessageMentionOptions, MessageMentionTypes, MessageReaction, MessageReplyOptions, ModalBuilder, PollData, Presence, Role, SoundboardSound, Sticker, StickerResolvable, ThreadChannelResolvable, User, VoiceState, WebhookClient } from "discord.js"; +export type Sendable = {} | Sticker | GuildScheduledEvent | Role | Presence | Message | User | GuildMember | BaseChannel | Interaction | VoiceState | WebhookClient | GuildEmoji | Guild | MessageReaction | Invite | AutoModerationActionExecution | SoundboardSound | Emoji | ApplicationEmoji; export declare class Container { content?: string; embeds: EmbedBuilder[]; @@ -32,6 +32,7 @@ export declare class Container { send(obj: Sendable, content?: string, messageID?: string): Promise; isValidMessage(options: MessageReplyOptions & InteractionReplyOptions & InteractionEditReplyOptions): boolean; embed(index: number): EmbedBuilder; + unparseMention(type: MessageMentionTypes): MessageMentionTypes[]; /** * Checks if current context is inside a component builder function. * @param type The type of the component to check for. diff --git a/dist/structures/@internal/Container.d.ts.map b/dist/structures/@internal/Container.d.ts.map index f08e2bf087..873f59dfb8 100644 --- a/dist/structures/@internal/Container.d.ts.map +++ b/dist/structures/@internal/Container.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/structures/@internal/Container.ts"],"names":[],"mappings":"AACA,OAAO,EACH,gBAAgB,EAChB,kCAAkC,EAClC,iBAAiB,EACjB,6BAA6B,EAE7B,WAAW,EAEX,OAAO,EACP,aAAa,EACb,gBAAgB,EAChB,yBAAyB,EACzB,YAAY,EACZ,KAAK,EACL,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,WAAW,EAEX,2BAA2B,EAC3B,uBAAuB,EACvB,MAAM,EACN,OAAO,EACP,gCAAgC,EAChC,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,eAAe,EACf,OAAO,EACP,iBAAiB,EAEjB,uBAAuB,EACvB,IAAI,EACJ,UAAU,EACV,aAAa,EAChB,MAAM,YAAY,CAAA;AAInB,MAAM,MAAM,QAAQ,GACd,EAAE,GACF,OAAO,GACP,mBAAmB,GACnB,IAAI,GACJ,QAAQ,GACR,OAAO,GACP,IAAI,GACJ,WAAW,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Q,CAAC,IAAI,EAAE,aAAa;IAI5B,KAAK;IAkCL,UAAU,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC;CAwC5C"} \ No newline at end of file +{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/structures/@internal/Container.ts"],"names":[],"mappings":"AACA,OAAO,EACH,gBAAgB,EAChB,kCAAkC,EAClC,gBAAgB,EAChB,iBAAiB,EACjB,6BAA6B,EAE7B,WAAW,EAEX,OAAO,EACP,aAAa,EACb,gBAAgB,EAChB,yBAAyB,EACzB,YAAY,EACZ,KAAK,EACL,KAAK,EACL,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,WAAW,EAEX,2BAA2B,EAC3B,uBAAuB,EACvB,MAAM,EACN,OAAO,EACP,gCAAgC,EAChC,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,eAAe,EACf,OAAO,EACP,iBAAiB,EAEjB,uBAAuB,EACvB,IAAI,EACJ,UAAU,EACV,aAAa,EAChB,MAAM,YAAY,CAAA;AAInB,MAAM,MAAM,QAAQ,GACd,EAAE,GACF,OAAO,GACP,mBAAmB,GACnB,IAAI,GACJ,QAAQ,GACR,OAAO,GACP,IAAI,GACJ,WAAW,GACX,WAAW,GACX,WAAW,GACX,UAAU,GACV,aAAa,GACb,UAAU,GACV,KAAK,GACL,eAAe,GACf,MAAM,GACN,6BAA6B,GAC7B,eAAe,GACf,KAAK,GACL,gBAAgB,CAAA;AAEtB,qBAAa,SAAS;IACX,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,iBAA4B;IAClC,UAAU,mDAA4D;IACtE,SAAS,CAAC,EAAE,gBAAgB,CAAC,gCAAgC,CAAC,CAAA;IAC9D,MAAM,kBAAyB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,UAAQ;IACb,QAAQ,UAAQ;IAChB,IAAI,UAAQ;IACZ,SAAS,UAAQ;IACjB,GAAG,UAAQ;IACX,MAAM,UAAQ;IACd,cAAc,UAAQ;IACtB,KAAK,sBAAiC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,sBAAiC;IACzC,YAAY,UAAQ;IACpB,cAAc,UAAQ;IACtB,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,OAAO,wDAAmE;IAC1E,eAAe,EAAE,qBAAqB,CAAK;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,QAAQ,CAAC,EAAE,uBAAuB,CAAA;IAClC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEX,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAwD/F,cAAc,CAAC,OAAO,EAAE,mBAAmB,GAAG,uBAAuB,GAAG,2BAA2B;IAenG,KAAK,CAAC,KAAK,EAAE,MAAM;IAInB,cAAc,CAAC,IAAI,EAAE,mBAAmB;IAK/C;;;;OAIG;IACI,QAAQ,CAAC,IAAI,EAAE,aAAa;IAI5B,KAAK;IAkCL,UAAU,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC;CAwC5C"} \ No newline at end of file diff --git a/dist/structures/@internal/Container.js b/dist/structures/@internal/Container.js index e5b043031e..e33d8601b0 100644 --- a/dist/structures/@internal/Container.js +++ b/dist/structures/@internal/Container.js @@ -109,6 +109,10 @@ class Container { embed(index) { return (this.embeds[index] ??= new discord_js_1.EmbedBuilder()); } + unparseMention(type) { + this.allowedMentions.parse ??= ["everyone", "roles", "users"]; + return (this.allowedMentions.parse = this.allowedMentions.parse.filter((x) => x !== type)); + } /** * Checks if current context is inside a component builder function. * @param type The type of the component to check for. diff --git a/dist/structures/@internal/Container.js.map b/dist/structures/@internal/Container.js.map index 2841c67bd2..6c3059393c 100644 --- a/dist/structures/@internal/Container.js.map +++ b/dist/structures/@internal/Container.js.map @@ -1 +1 @@ -{"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../src/structures/@internal/Container.ts"],"names":[],"mappings":";;;;;;AAAA,2BAA2B;AAC3B,2CAuCmB;AACnB,gEAAuC;AACvC,2CAAyC;AAsBzC,MAAa,SAAS;IACX,OAAO,CAAS;IAChB,MAAM,GAAG,IAAI,KAAK,EAAgB,CAAA;IAClC,UAAU,GAAG,IAAI,KAAK,EAAgD,CAAA;IACtE,SAAS,CAAqD;IAC9D,MAAM,GAAG,KAAK,EAAiB,CAAA;IAC/B,SAAS,CAAS;IAClB,KAAK,GAAG,KAAK,CAAA;IACb,QAAQ,GAAG,KAAK,CAAA;IAChB,IAAI,GAAG,KAAK,CAAA;IACZ,SAAS,GAAG,KAAK,CAAA;IACjB,GAAG,GAAG,KAAK,CAAA;IACX,MAAM,GAAG,KAAK,CAAA;IACd,cAAc,GAAG,KAAK,CAAA;IACtB,KAAK,GAAG,IAAI,KAAK,EAAqB,CAAA;IACtC,OAAO,CAAU;IACjB,QAAQ,GAAG,IAAI,KAAK,EAAqB,CAAA;IACzC,YAAY,GAAG,KAAK,CAAA;IACpB,cAAc,GAAG,KAAK,CAAA;IACtB,KAAK,CAAe;IACpB,OAAO,GAAG,IAAI,KAAK,EAAuD,CAAA;IAC1E,eAAe,GAA0B,EAAE,CAAA;IAC3C,SAAS,CAAS;IAClB,QAAQ,CAAS;IACjB,IAAI,CAAW;IACf,QAAQ,CAA0B;IAClC,UAAU,CAAS;IACnB,WAAW,CAAW;IACtB,QAAQ,CAAS;IAEjB,KAAK,CAAC,IAAI,CAAc,GAAa,EAAE,OAAgB,EAA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E,IAAI,CAAC,QAAQ;gBACvB,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,eAAe,EACX,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe;gBACrF,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,KAAK,EAAE,IAAI,CAAC,SAAS;oBACjB,CAAC,CAAC;wBACI,gBAAgB,EAAE,IAAI,CAAC,SAAS;wBAChC,eAAe,EAAE,KAAK;qBACzB;oBACH,CAAC,CAAC,SAAS;gBACf,KAAK,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK;gBAC7C,WAAW,EAAE,EAAE;gBACf,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK;gBAClD,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ;gBAC3D,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,IAAI;gBACrC,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,GAAG,EAAE,IAAI,CAAC,GAAG;gBACb,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,cAAc,EAAE,IAAI,CAAC,cAAc;aACtC,CACL,CAAA;IACV,CAAC;CACJ;AA5LD,8BA4LC"} \ No newline at end of file +{"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../src/structures/@internal/Container.ts"],"names":[],"mappings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--- a/dist/structures/@internal/Context.d.ts +++ b/dist/structures/@internal/Context.d.ts @@ -1,4 +1,4 @@ -import { AnySelectMenuInteraction, AutoModerationActionExecution, AutoModerationActionOptions, AutoModerationTriggerMetadataOptions, BaseChannel, ChatInputCommandInteraction, ContextMenuCommandInteraction, Emoji, Entitlement, Guild, GuildMember, Interaction, MediaGalleryBuilder, Message, MessageReaction, Role, SectionBuilder, SoundboardSound, Sticker, User } from "discord.js"; +import { AnySelectMenuInteraction, AutoModerationActionExecution, AutoModerationActionOptions, AutoModerationTriggerMetadataOptions, BaseChannel, ChatInputCommandInteraction, ContextMenuCommandInteraction, Emoji, Entitlement, Guild, GuildMember, Interaction, MediaGalleryBuilder, Message, MessageReaction, Role, SectionBuilder, SoundboardSound, Sticker, Subscription, User } from "discord.js"; import { CompiledFunction, IExtendedCompiledFunctionField } from "./CompiledFunction"; import { Container, Sendable } from "./Container"; import { IArg, UnwrapArgs } from "./NativeFunction"; @@ -74,6 +74,7 @@ export interface IContextCache { automod: AutoModerationActionExecution | null; sticker: Sticker | null; sound: SoundboardSound | null; + subscription: Subscription | null; } export declare class Context { #private; @@ -86,16 +87,20 @@ export declare class Context { timezone: string; calendar?: CalendarType; localFunctions: Map; + private _reason?; container: Container; constructor(runtime: IRunnable); get client(): import("../..").ForgeClient; set obj(o: Sendable); + set reason(str: string | undefined); + get reason(): string | undefined; get cmd(): import("..").BaseCommand | null; get obj(): Sendable; get args(): string[]; get states(): import("../../core/Interpreter").States | undefined; get automod(): AutoModerationActionExecution | null; get entitlement(): Entitlement | null; + get subscription(): Subscription | null; get member(): GuildMember | null; get emoji(): Emoji | null; get sticker(): Sticker | null; @@ -112,6 +117,12 @@ export declare class Context { handleNotSuccess(fn: CompiledFunction, rt: Return): boolean; clearHttpOptions(): void; clearAutomodRuleOptions(): void; + /** + * Fetches all emojis of the application. + * @param once Whether to fetch only when the collection is empty. + * @returns + */ + fetchApplicationEmojis(once?: boolean): Promise>; setEnvironmentKey(name: string, value: unknown): unknown; traverseDeleteEnvironmentKey(...keys: string[]): boolean | any[]; traverseAddEnvironmentKey(value: unknown, ...keys: string[]): boolean; @@ -155,6 +166,7 @@ export declare class Context { * @returns */ clone(props?: Partial, syncVars?: boolean): Context; + cloneRuntime(): IRunnable; private clearCache; get noop(): (...args: any[]) => void; } diff --git a/dist/structures/@internal/Context.d.ts.map b/dist/structures/@internal/Context.d.ts.map index 4ff23d03ad..1b751be151 100644 --- a/dist/structures/@internal/Context.d.ts.map +++ b/dist/structures/@internal/Context.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/structures/@internal/Context.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,oCAAoC,EACpC,WAAW,EAEX,2BAA2B,EAC3B,6BAA6B,EAC7B,KAAK,EACL,WAAW,EACX,KAAK,EAEL,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,OAAO,EACP,eAAe,EACf,IAAI,EACJ,cAAc,EACd,eAAe,EACf,OAAO,EACP,IAAI,EACP,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,gBAAgB,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAA;AACrF,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,IAAI,EAAkB,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACnE,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAIlD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAG1C,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,MAAM,SAAS,OAAO,IAAI,CACxE,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAClB,OAAO,CAAC,MAAM,CA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W,YAAY;;;MAEtB;IAEM,UAAU;IAIjB;;;OAGG;IACI,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,UAAQ;IAiBzD,OAAO,CAAC,UAAU;IAIlB,IAAW,IAAI,6BAEd;CACJ"} \ No newline at end of file +{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/structures/@internal/Context.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,oCAAoC,EACpC,WAAW,EAEX,2BAA2B,EAC3B,6BAA6B,EAC7B,KAAK,EACL,WAAW,EACX,KAAK,EACL,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,OAAO,EACP,eAAe,EACf,IAAI,EACJ,cAAc,EACd,eAAe,EACf,OAAO,EACP,YAAY,EACZ,IAAI,EACP,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,gBAAgB,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAA;AACrF,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,MAAM,EAAc,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGlD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAG1C,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,MAAM,SAAS,OAAO,IAAI,CACxE,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAClB,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;AAE7B,oBAAY,eAAe;IACvB,IAAI,IAAA;IACJ,IAAI,IAAA;CACP;AAED,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAA;IAC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WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC;;;IAMzE,OAAO,CAAC,KAAK;IAIb,IAAW,YAAY;;;MAEtB;IAEM,UAAU;IAIjB;;;OAGG;IACI,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,UAAQ;IAiBlD,YAAY,IAAK,SAAS;IAMjC,OAAO,CAAC,UAAU;IAIlB,IAAW,IAAI,6BAEd;CACJ"} \ No newline at end of file diff --git a/dist/structures/@internal/Context.js b/dist/structures/@internal/Context.js index ed82763ef7..b3ecf6cf00 100644 --- a/dist/structures/@internal/Context.js +++ b/dist/structures/@internal/Context.js @@ -47,6 +47,7 @@ class Context { localFunctions = new Map(); #keywords = {}; #environment = {}; + _reason; container; // eslint-disable-next-line no-unused-vars constructor(runtime) { @@ -64,6 +65,14 @@ class Context { this.runtime.obj = o; this.clearCache(); } + set reason(str) { + this._reason = str; + } + get reason() { + const str = this._reason; + this._reason = undefined; + return str; + } get cmd() { return this.runtime.command; } @@ -82,6 +91,9 @@ class Context { get entitlement() { return this.#cache.entitlement ??= this.obj instanceof discord_js_1.Entitlement ? this.obj : null; } + get subscription() { + return this.#cache.subscription ??= this.obj instanceof discord_js_1.Subscription ? this.obj : null; + } get member() { return (this.#cache.member ??= this.obj instanceof discord_js_1.GuildMember @@ -91,7 +103,7 @@ class Context { : null); } get emoji() { - return (this.#cache.emoji ??= this.obj instanceof discord_js_1.GuildEmoji ? this.obj : null); + return (this.#cache.emoji ??= this.obj instanceof discord_js_1.Emoji ? this.obj : null); } get sticker() { return (this.#cache.sticker ??= this.obj instanceof discord_js_1.Sticker ? this.obj : null); @@ -189,6 +201,18 @@ class Context { clearAutomodRuleOptions() { this.automodRule = {}; } + /** + * Fetches all emojis of the application. + * @param once Whether to fetch only when the collection is empty. + * @returns + */ + async fetchApplicationEmojis(once) { + const { emojis } = this.client.application; + if (once && emojis.cache.size) { + return emojis.cache; + } + return await emojis.fetch().catch(this.noop); + } setEnvironmentKey(name, value) { return (this.#environment[name] = value); } @@ -307,6 +331,11 @@ class Context { } return empty; } + cloneRuntime() { + this.runtime.keywords = this.#keywords; + this.runtime.environment = this.#environment; + return this.runtime; + } clearCache() { this.#cache = {}; } diff --git a/dist/structures/@internal/Context.js.map b/dist/structures/@internal/Context.js.map index 4c0b8b8c0a..81db3001c6 100644 --- a/dist/structures/@internal/Context.js.map +++ b/dist/structures/@internal/Context.js.map @@ -1 +1 @@ -{"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../src/structures/@internal/Context.ts"],"names":[],"mappings":";;;;;;AAAA,2CAuBmB;AAEnB,2CAAiD;AAEjD,qCAA6C;AAI7C,qCAAiC;AAEjC,8EAAqD;AAMrD,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,qDAAI,CAAA;IACJ,qDAAI,CAAA;AACR,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AA+BD,IAAY,YAmBX;AAnBD,WAAY,YAAY;IACpB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,oDAAoC,CAAA;IACpC,4CAA4B,CAAA;IAC5B,8CAA8B,CAAA;IAC9B,4CAA4B,CAAA;IAC5B,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,2BAAW,CAAA;AACf,CAAC,EAnBW,YAAY,4BAAZ,YAAY,QAmBvB;AAwBD,MAAa,OAAO;IAqBmB;IApBnC,MAAM,GAA2B,EAAE,CAAC;IAKpC,kBAAkB,CAAS;IAC3B,IAAI,GAA0B,EAAE,CAAA;IAChC,WAAW,GAAiC,EAAE,CAAA;IAC9C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C,CAAC,CAAA;aACjE;SACJ;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;IAEO,UAAU;QACd,IAAI,CAAC,MAAM,GAAG,EAAE,CAAA;IACpB,CAAC;IAED,IAAW,IAAI;QACX,OAAO,qBAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;CACJ;AAvVD,0BAuVC"} \ No newline at end of file +{"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../src/structures/@internal/Context.ts"],"names":[],"mappings":";;;;;;AAAA,2CAuBmB;AAEnB,2CAAiD;AAEjD,qCAA6C;AAG7C,qCAAiC;AAEjC,8EAAqD;AAMrD,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,qDAAI,CAAA;IACJ,qDAAI,CAAA;AACR,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AA+BD,IAAY,YAmBX;AAnBD,WAAY,YAAY;IACpB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,oDAAoC,CAAA;IACpC,4CAA4B,CAAA;IAC5B,8CAA8B,CAAA;IAC9B,4CAA4B,CAAA;IAC5B,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,2BAAW,CAAA;AACf,CAAC,EAnBW,YAAY,4BAAZ,YAAY,QAmBvB;AAyBD,MAAa,OAAO;IAuBmB;IAtBnC,MAAM,GAA2B,EAAE,CAAC;IAKpC,kBAAkB,CAAS;IAC3B,IAAI,GAA0B,EAAE,CAAA;IAChC,WAAW,GAAiC,EAAE,CAAA;IAC9C,SAAS,GAA+B,EAAE,CAAA;IAC1C,QAAQ,GAAW,KAAK,CAAA;IACxB,QAAQ,CAAe;IAEvB,cAAc,GAAoC,IAAI,GA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AAU,EAAE,CAAA;QAE/B,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAC,GAAG,IAAI,CAAC,SAAS,EAAC,CAAA;QACjE,KAAK,CAAC,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAC,GAAG,IAAI,CAAC,YAAY,EAAC,CAAA;QAE1E,IAAI,KAAK,EAAE;YACP,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,MAAM,EAAC,CAAC,GAAG,GAAG,EAAC,CAAC,EAAE,EAAE;gBAC3C,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;gBACnB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,KAAK,CAAC,GAAsB,CAAC,CAAC,CAAA;aACjE;SACJ;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;IAEM,YAAY;QACf,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAmC,CAAA;QAChE,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,YAAY,CAAA;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAA;IACvB,CAAC;IAEO,UAAU;QACd,IAAI,CAAC,MAAM,GAAG,EAAE,CAAA;IACpB,CAAC;IAED,IAAW,IAAI;QACX,OAAO,qBAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;CACJ;AA3XD,0BA2XC"} \ No newline at end of file diff --git a/dist/structures/base/BaseEventHandler.d.ts b/dist/structures/base/BaseEventHandler.d.ts index aea9838b9b..7276cf329e 100644 --- a/dist/structures/base/BaseEventHandler.d.ts +++ b/dist/structures/base/BaseEventHandler.d.ts @@ -7,6 +7,7 @@ export interface IEvent { listener: (this: ForgeClient, ...args: AssertArgs) => Promise | void; version?: string; intents?: GatewayIntentsString[]; + deprecated?: boolean; } export declare class BaseEventHandler, T extends keyof Events = keyof Events> { readonly data: IEvent; diff --git a/dist/structures/base/BaseEventHandler.d.ts.map b/dist/structures/base/BaseEventHandler.d.ts.map index 25be42fd61..66bcbe0f2b 100644 --- a/dist/structures/base/BaseEventHandler.d.ts.map +++ b/dist/structures/base/BaseEventHandler.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"BaseEventHandler.d.ts","sourceRoot":"","sources":["../../../src/structures/base/BaseEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAC/D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEzD,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,EAAE,GAAG,CAAC,GAAG,KAAK,CAAA;AAE3D,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,CAAC,SAAS,MAAM,MAAM;IAClD,IAAI,EAAE,CAAC,CAAA;IACP,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACrF,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAA;CACnC;AAED,qBAAa,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,SAAS,MAAM,MAAM,GAAG,MAAM,MAAM;aAChE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;gBAAvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAE1D,IAAW,QAAQ,gFAElB;IAED,IAAW,WAAW,WAErB;IAED,IAAW,IAAI,MAEd;IAEM,QAAQ,CAAC,MAAM,EAAE,WAAW;CACtC"} \ No newline at end of file +{"version":3,"file":"BaseEventHandler.d.ts","sourceRoot":"","sources":["../../../src/structures/base/BaseEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAC/D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEzD,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,EAAE,GAAG,CAAC,GAAG,KAAK,CAAA;AAE3D,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,CAAC,SAAS,MAAM,MAAM;IAClD,IAAI,EAAE,CAAC,CAAA;IACP,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACrF,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAA;IAChC,UAAU,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,qBAAa,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,SAAS,MAAM,MAAM,GAAG,MAAM,MAAM;aAChE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;gBAAvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAE1D,IAAW,QAAQ,gFAElB;IAED,IAAW,WAAW,WAErB;IAED,IAAW,IAAI,MAEd;IAEM,QAAQ,CAAC,MAAM,EAAE,WAAW;CACtC"} \ No newline at end of file diff --git a/dist/structures/base/BaseEventHandler.js.map b/dist/structures/base/BaseEventHandler.js.map index 366b3dbcd6..c41fe973a6 100644 --- a/dist/structures/base/BaseEventHandler.js.map +++ b/dist/structures/base/BaseEventHandler.js.map @@ -1 +1 @@ -{"version":3,"file":"BaseEventHandler.js","sourceRoot":"","sources":["../../../src/structures/base/BaseEventHandler.ts"],"names":[],"mappings":";;;AAaA,MAAa,gBAAgB;IACU;IAAnC,YAAmC,IAAuB;QAAvB,SAAI,GAAJ,IAAI,CAAmB;IAAG,CAAC;IAE9D,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAA;IAC7B,CAAC;IAED,IAAW,WAAW;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,CAAA;IAChC,CAAC;IAED,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAA;IACzB,CAAC;IAEM,QAAQ,CAAC,MAAmB,IAAG,CAAC;CAC1C;AAhBD,4CAgBC"} \ No newline at end of file +{"version":3,"file":"BaseEventHandler.js","sourceRoot":"","sources":["../../../src/structures/base/BaseEventHandler.ts"],"names":[],"mappings":";;;AAcA,MAAa,gBAAgB;IACU;IAAnC,YAAmC,IAAuB;QAAvB,SAAI,GAAJ,IAAI,CAAmB;IAAG,CAAC;IAE9D,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAA;IAC7B,CAAC;IAED,IAAW,WAAW;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,CAAA;IAChC,CAAC;IAED,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAA;IACzB,CAAC;IAEM,QAAQ,CAAC,MAAmB,IAAG,CAAC;CAC1C;AAhBD,4CAgBC"} \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index 344922f508..e5271ee66c 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE7y9XZ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xiiO9uI7sLfXzsXfqx2cteAU7CeQdblT5r+54b4jyH9wWTyWpWMCthfURPR/b8+lU99rixW1s2FP9VoBbDes/dz5+aQo/nA+cDpqFpi4jMhEqeBNes7Dyktf3WobnLM36hU6fOoAb4//t6wpyHIRh4F/23ENbkpT2K1UPbJVq0VYqglK0B/6+ItTZiZPZBxiCAHs8tsfrh7qnnk6xYxXyKoa6trG/F1bfIPagCf04vDtRVuyUOkcMy1bgOe191yzMHqsqlYnYXKRSRci25s81ZBL5CDMsxTeroZonRE1T2lq8WOYYAXE9BdDjoJX18WujcWBdraDIXGT2ZYsShd1yhWbZMq73ZeDEACWVs4iBQHC3jQ2V4mgl0bIyVXygha/Sv4+FTSPe20gFw8ZhT0qkvHz/kymUYk2J9i+9Hq2a8ERsf6R6EMHO327+qoTRUNyMwsdgHTLh1Bg5FIqZg3Fp4QKCF0ej+tSk/LVBz+uqOKj3n31hfwsGaUdzugLxXmELuaXJ/uQ/h8f122vwjG+LerWpfX79LQdIU3uMYhQwTEE3vNDjsE0GZRkYI4KnyA/sKLGsI55D8F7ze/ZNV+wLdci41ZTNWOy7ZW5LSWZgX++B1saj9fsA2WVcAuqKh7hsPrq280H7+3S+zPMvDzPaC9IcAwA="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE7y9b5PctrHw+120L6+iLAECJP3Oke0cncd/UrLjc6tcqRR3hrvLaIackJyVdFPnu98iQHIazW4Q5Mw+b5K1BkCD+Nv4daPxnzdN/bl9880f/3nzqaz2b77R8ds3VX4s3nzz5qmoiibvip+KLt/nXf7m7Ztzc3jzzZvHc7Xryrpq/4yTvHvujoc3b9/sDnnbFu2bb968+d+3Y9FC6ansD+/r4zGv9j/lVf5UNN+/FFXXTgLKqiuax3xXtH8mE3rFRPfi8g3n0z7vinUF302ZQPlv35zypqg6tu6XCmil5OVL//nP7utpWw3eTXlXVOTdUHvQICKdavOXvC3cXFPNBhl/nifxNreKxFT6rq7arjnvujq42Ds3D/2h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vTIVEVE35wPs6esnB2iBQhYmLpuF5F+N7MFNWFG4qpEnwrZ808pP7b1JMa69InQRUDL2/biqGzrRYbehoiK0UrjT6K0MvcLT8LV2Oxq1saSbmJt+oIF9vKG/S0FDmptBw6f8mUw3MvhVtd3NT7E/LJyFls12Z93HTNtxtNTVBxgJlm7ppc8sy+wT2IsLFqJxtI76cWwrHuulYhyzva/F6GpqOnIai6Nni681QB3zZ5jxsRG0M1Ywox09gaD1PuqJMTgHYaaRUtBSYcevPyjgizF5oNuy2yK05s6/cu2JgT5y7nmYHEhhS+PE6TUXWiYJoEgWx53dwK4cWYAGIVk1PQ9GdidPb+YHbyuGHCtu9FEX53CZmHWCPW0fRvXPYhRQlxXdm8pxs49MKg5/+LmeYYBsFxbmLkIPkquZ2UUTTM6S70Nb4X32ksGvt7mOnUXt1716rpxDR3GgN+N2ufwrNWKxzUSTxfR5FwywS0XrqUIKdvd/ti9AFR7k5yigN1uF1nhsjrkOrgsG4NgMD87CO9iEcQ46pt9mEM53medIr4e1rQ3Vwu6n6QKUYoDGQGIoBHvb7Nr+8WZl/I4B4o4WIY9x//B/YkOMNGMdosf4IWu4V3sYtazymm1bXoEXQoqFVHxnzOkx2nij05c2qXNcOY8ETTY+9/eLb2XKurkE//kjd/2UdP6BcBstW9Y94/vKwjIsNeuxfvz1/fPwDO0KX6C4nAwA="; \ No newline at end of file diff --git a/docs/classes/ApplicationCommand.html b/docs/classes/ApplicationCommand.html index d49e72245a..209c8403b1 100644 --- a/docs/classes/ApplicationCommand.html +++ b/docs/classes/ApplicationCommand.html @@ -1,8 +1,8 @@ -ApplicationCommand | @tryforge/forgescript

Constructors

constructor +ApplicationCommand | @tryforge/forgescript

Constructors

Properties

Accessors

Methods

Constructors

Properties

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/ApplicationCommandManager.html b/docs/classes/ApplicationCommandManager.html index df483002be..784ca70ba2 100644 --- a/docs/classes/ApplicationCommandManager.html +++ b/docs/classes/ApplicationCommandManager.html @@ -1,4 +1,4 @@ -ApplicationCommandManager | @tryforge/forgescript

Class ApplicationCommandManager

Constructors

constructor +ApplicationCommandManager | @tryforge/forgescript

Class ApplicationCommandManager

Constructors

Properties

client commands path @@ -13,13 +13,13 @@ resolve toJSON validate -

Constructors

Properties

client: ForgeClient
commands: Collection<string, ApplicationCommand | Collection<string, ApplicationCommand | Collection<string, ApplicationCommand>>> = ...

If:

+

Constructors

Properties

client: ForgeClient
commands: Collection<string, ApplicationCommand | Collection<string, ApplicationCommand | Collection<string, ApplicationCommand>>> = ...

If:

  • value is app command = slash command
  • value is collection:
  • value is slash command = subcommands
  • value is collection = group with subcommands
-
path: string

Methods

  • Returns undefined | Promise<Collection<string, ApplicationCommand<{
        guild: GuildResolvable;
    }>>>

  • Parameters

    • g: Guild

    Returns undefined | Promise<Collection<string, ApplicationCommand<{}>>>

Generated using TypeDoc

\ No newline at end of file +
path: string

Methods

  • Returns undefined | Promise<Collection<string, ApplicationCommand<{
        guild: GuildResolvable;
    }>>>

  • Parameters

    • g: Guild

    Returns undefined | Promise<Collection<string, ApplicationCommand<{}>>>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/Arg.html b/docs/classes/Arg.html index a22dd0dc43..94d102ab5a 100644 --- a/docs/classes/Arg.html +++ b/docs/classes/Arg.html @@ -1,4 +1,4 @@ -Arg | @tryforge/forgescript

Constructors

constructor +Arg | @tryforge/forgescript

Constructors

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/BaseCommand.html b/docs/classes/BaseCommand.html index 5b475fbd0c..eb79b51f51 100644 --- a/docs/classes/BaseCommand.html +++ b/docs/classes/BaseCommand.html @@ -1,4 +1,4 @@ -BaseCommand | @tryforge/forgescript

Type Parameters

  • T

Constructors

constructor +BaseCommand | @tryforge/forgescript

Type Parameters

  • T

Constructors

Properties

compiled data id @@ -9,4 +9,4 @@ setPath validate from -

Constructors

Properties

data: IBaseCommand<T>
id: number = ++id

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

data: IBaseCommand<T>
id: number = ++id

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/BaseCommandManager.html b/docs/classes/BaseCommandManager.html index 8595576d43..22f46c1a50 100644 --- a/docs/classes/BaseCommandManager.html +++ b/docs/classes/BaseCommandManager.html @@ -1,4 +1,4 @@ -BaseCommandManager | @tryforge/forgescript

Class BaseCommandManager<T>Abstract

Type Parameters

  • T

Hierarchy

Constructors

constructor +BaseCommandManager | @tryforge/forgescript

Class BaseCommandManager<T>Abstract

Type Parameters

  • T

Hierarchy

Constructors

Properties

Constructors

Properties

client: ForgeClient
commands: Collection<T, BaseCommand<T>[]> = ...
handlerName: string
paths: string[] = ...
defaultMaxListeners: number

Accessors

Methods

  • Type Parameters

    • U extends "update"

    Parameters

    Returns boolean

  • Type Parameters

    • U extends "update"

    Returns U[]

  • Returns number

  • Parameters

    • type: "update"

    Returns number

  • Type Parameters

    • U extends "update"

    Parameters

    • type: U

    Returns ICommandManagerEvents<T>[U][]

  • Type Parameters

    • U extends "update"

    Parameters

    Returns BaseCommandManager<T>

  • Type Parameters

    • U extends "update"

    Parameters

    • type: U

    Returns ICommandManagerEvents<T>[U][]

  • Parameters

    • Optional event: "update"

    Returns BaseCommandManager<T>

  • Parameters

    • n: number

    Returns BaseCommandManager<T>

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

client: ForgeClient
commands: Collection<T, BaseCommand<T>[]> = ...
handlerName: string
paths: string[] = ...
defaultMaxListeners: number

Accessors

Methods

  • Type Parameters

    • U extends "update"

    Parameters

    Returns boolean

  • Type Parameters

    • U extends "update"

    Returns U[]

  • Returns number

  • Parameters

    • type: "update"

    Returns number

  • Type Parameters

    • U extends "update"

    Parameters

    • type: U

    Returns ICommandManagerEvents<T>[U][]

  • Type Parameters

    • U extends "update"

    Parameters

    Returns BaseCommandManager<T>

  • Type Parameters

    • U extends "update"

    Parameters

    • type: U

    Returns ICommandManagerEvents<T>[U][]

  • Parameters

    • Optional event: "update"

    Returns BaseCommandManager<T>

  • Parameters

    • n: number

    Returns BaseCommandManager<T>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/BaseEventHandler.html b/docs/classes/BaseEventHandler.html index 34ab6382a1..33db10d3ee 100644 --- a/docs/classes/BaseEventHandler.html +++ b/docs/classes/BaseEventHandler.html @@ -1,7 +1,7 @@ -BaseEventHandler | @tryforge/forgescript

Class BaseEventHandler<Events, T>

Type Parameters

  • Events = Record<string, unknown[]>

  • T extends keyof Events = keyof Events

Hierarchy

Constructors

constructor +BaseEventHandler | @tryforge/forgescript

Class BaseEventHandler<Events, T>

Type Parameters

  • Events = Record<string, unknown[]>

  • T extends keyof Events = keyof Events

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

data: IEvent<Events, T>

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

data: IEvent<Events, T>

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/CompiledFunction.html b/docs/classes/CompiledFunction.html index fe38bb237f..63866c9a0d 100644 --- a/docs/classes/CompiledFunction.html +++ b/docs/classes/CompiledFunction.html @@ -1,4 +1,4 @@ -CompiledFunction | @tryforge/forgescript

Class CompiledFunction<T, Unwrap>

Type Parameters

  • T extends [...IArg[]] = IArg[]

  • Unwrap extends boolean = boolean

Constructors

constructor +CompiledFunction | @tryforge/forgescript

Class CompiledFunction<T, Unwrap>

Type Parameters

  • T extends [...IArg[]] = IArg[]

  • Unwrap extends boolean = boolean

Constructors

Properties

Constructors

Properties

fn: NativeFunction<T, Unwrap>
CDNIdRegex: RegExp = ...
IdRegex: RegExp = ...
OverwriteSymbolMapping: {
    +: boolean;
    -: boolean;
    /: null;
} = ...

Type declaration

  • +: boolean
  • -: boolean
  • /: null
URLRegex: RegExp = ...

Accessors

Methods

  • Parameters

    Returns Promise<undefined | DMChannel | PartialDMChannel | PartialGroupDMChannel | NewsChannel | StageChannel | TextChannel | PublicThreadChannel<boolean> | PrivateThreadChannel | VoiceChannel>

  • Parameters

    Returns "resolveURL" | "resolveString" | "resolveBigInt" | "resolveUnknown" | "resolveTextChannel" | "resolveOverwritePermission" | "resolveNumber" | "resolveUser" | "resolveDate" | "resolveGuild" | "resolveRoleOrUser" | "resolveInvite" | "resolvePermission" | "resolveJson" | "resolveColor" | "resolveEnum" | "resolveForumTag" | "resolveEmoji" | "resolveGuildEmoji" | "resolveBoolean" | "resolveAttachment" | "resolveReaction" | "resolveMessage" | "resolveChannel" | "resolveRole" | "resolveWebhook" | "resolveSticker" | "resolveTime" | "resolveMember" | "resolveApplicationEmoji" | "resolveAutomodRule" | "resolveScheduledEvent" | "resolveStageInstance" | "resolveSoundboardSound" | "resolveTemplate"

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

fn: NativeFunction<T, Unwrap>
CDNIdRegex: RegExp = ...
IdRegex: RegExp = ...
OverwriteSymbolMapping: {
    +: boolean;
    -: boolean;
    /: null;
} = ...

Type declaration

  • +: boolean
  • -: boolean
  • /: null
URLRegex: RegExp = ...

Accessors

Methods

  • Parameters

    Returns Promise<undefined | DMChannel | PartialDMChannel | PartialGroupDMChannel | NewsChannel | StageChannel | TextChannel | PublicThreadChannel<boolean> | PrivateThreadChannel | VoiceChannel>

  • Parameters

    Returns "resolveURL" | "resolveString" | "resolveBigInt" | "resolveUnknown" | "resolveTextChannel" | "resolveOverwritePermission" | "resolveNumber" | "resolveUser" | "resolveDate" | "resolveGuild" | "resolveRoleOrUser" | "resolveInvite" | "resolvePermission" | "resolveJson" | "resolveColor" | "resolveEnum" | "resolveForumTag" | "resolveEmoji" | "resolveGuildEmoji" | "resolveBoolean" | "resolveAttachment" | "resolveReaction" | "resolveMessage" | "resolveChannel" | "resolveRole" | "resolveWebhook" | "resolveSticker" | "resolveTime" | "resolveMember" | "resolveApplicationEmoji" | "resolveAutomodRule" | "resolveScheduledEvent" | "resolveStageInstance" | "resolveSoundboardSound" | "resolveTemplate"

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/Compiler.html b/docs/classes/Compiler.html index 0477720de5..7ab3211661 100644 --- a/docs/classes/Compiler.html +++ b/docs/classes/Compiler.html @@ -1,5 +1,5 @@ Compiler | @tryforge/forgescript

REWRITE NEEDED

-

Constructors

Constructors

Properties

Constructors

Properties

code?: string
id: number = 0
index: number = 0
matchIndex: number = 0
outputCode: string = ""
outputFunctions: ICompiledFunction[] = ...
path?: null | string
EscapeRegex: RegExp = ...
Functions: Collection<string, IRawFunction> = ...
InvalidCharRegex: RegExp = ...
Regex: RegExp
Syntax: {
    Close: string;
    Count: string;
    Escape: string;
    Negation: string;
    Open: string;
    Separator: string;
    Silent: string;
} = ...

Type declaration

  • Close: string
  • Count: string
  • Escape: string
  • Negation: string
  • Open: string
  • Separator: string
  • Silent: string
SystemRegex: RegExp = ...

Accessors

Methods

  • Parameters

    • char: string

    Returns {
        isClosure: boolean;
        isEscape: boolean;
        isSeparator: boolean;
    }

    • isClosure: boolean
    • isEscape: boolean
    • isSeparator: boolean
  • Parameters

    • syntax: {
          Close: string;
          Count: string;
          Escape: string;
          Negation: string;
          Open: string;
          Separator: string;
          Silent: string;
      }
      • Close: string
      • Count: string
      • Escape: string
      • Negation: string
      • Open: string
      • Separator: string
      • Silent: string

    Returns void

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

code?: string
id: number = 0
index: number = 0
matchIndex: number = 0
outputCode: string = ""
outputFunctions: ICompiledFunction[] = ...
path?: null | string
EscapeRegex: RegExp = ...
Functions: Collection<string, IRawFunction> = ...
InvalidCharRegex: RegExp = ...
Regex: RegExp
Syntax: {
    Close: string;
    Count: string;
    Escape: string;
    Negation: string;
    Open: string;
    Separator: string;
    Silent: string;
} = ...

Type declaration

  • Close: string
  • Count: string
  • Escape: string
  • Negation: string
  • Open: string
  • Separator: string
  • Silent: string
SystemRegex: RegExp = ...

Accessors

Methods

  • Parameters

    • char: string

    Returns {
        isClosure: boolean;
        isEscape: boolean;
        isSeparator: boolean;
    }

    • isClosure: boolean
    • isEscape: boolean
    • isSeparator: boolean
  • Parameters

    • syntax: {
          Close: string;
          Count: string;
          Escape: string;
          Negation: string;
          Open: string;
          Separator: string;
          Silent: string;
      }
      • Close: string
      • Count: string
      • Escape: string
      • Negation: string
      • Open: string
      • Separator: string
      • Silent: string

    Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/Container.html b/docs/classes/Container.html index 92a87dbd01..5f9c395c9a 100644 --- a/docs/classes/Container.html +++ b/docs/classes/Container.html @@ -1,4 +1,4 @@ -Container | @tryforge/forgescript

Constructors

constructor +Container | @tryforge/forgescript

Constructors

Properties

Constructors

Properties

actionRow?: ActionRowBuilder<MessageActionRowComponentBuilder>
allowedMentions: MessageMentionOptions = {}
appliedTags?: string[]
avatarURL?: string
channel?: Channel
choices: ApplicationCommandOptionChoiceData<string | number>[] = ...
components: (ContainerBuilder | ContainerComponentBuilder)[] = ...
content?: string
deleteIn?: number
edit: boolean = false
embeds: EmbedBuilder[] = ...
ephemeral: boolean = false
files: AttachmentBuilder[] = ...
followUp: boolean = false
inside: ComponentType[] = ...
isComponentsV2: boolean = false
modal?: ModalBuilder
poll?: PollData
reference?: string
reply: boolean = false
stickers: StickerResolvable[] = ...
threadId?: ThreadChannelResolvable
threadName?: string
tts: boolean = false
update: boolean = false
username?: string
withComponents: boolean = false
withResponse: boolean = false

Methods

  • Checks if current context is inside a component builder function.

    +unparseMention +

Constructors

Properties

actionRow?: ActionRowBuilder<MessageActionRowComponentBuilder>
allowedMentions: MessageMentionOptions = {}
appliedTags?: string[]
avatarURL?: string
channel?: Channel
choices: ApplicationCommandOptionChoiceData<string | number>[] = ...
components: (ContainerBuilder | ContainerComponentBuilder)[] = ...
content?: string
deleteIn?: number
edit: boolean = false
embeds: EmbedBuilder[] = ...
ephemeral: boolean = false
files: AttachmentBuilder[] = ...
followUp: boolean = false
inside: ComponentType[] = ...
isComponentsV2: boolean = false
modal?: ModalBuilder
poll?: PollData
reference?: string
reply: boolean = false
stickers: StickerResolvable[] = ...
threadId?: ThreadChannelResolvable
threadName?: string
tts: boolean = false
update: boolean = false
username?: string
withComponents: boolean = false
withResponse: boolean = false

Methods

  • Checks if current context is inside a component builder function.

    Parameters

    • type: ComponentType

      The type of the component to check for.

      -

    Returns boolean

Generated using TypeDoc

\ No newline at end of file +

Returns boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/Context.html b/docs/classes/Context.html index f886398bb5..4077a58b49 100644 --- a/docs/classes/Context.html +++ b/docs/classes/Context.html @@ -1,7 +1,8 @@ -Context | @tryforge/forgescript

Indexable

[props: PropertyKey]: unknown

Constructors

constructor +Context | @tryforge/forgescript

Indexable

[props: PropertyKey]: unknown

Constructors

Properties

#cache: Partial<IContextCache> = {}
#environment: Record<string, unknown> = {}
#keywords: Record<string, unknown> = {}
automodRule: Partial<IAutomodRuleOptions> = {}
calendar?: CalendarType
component: Partial<IComponentOptions> = {}
container: Container
executionTimestamp: number
http: Partial<IHttpOptions> = {}
localFunctions: Map<string, ILocalFunctionData> = ...
runtime: IRunnable
timezone: string = "UTC"

Accessors

  • get channel(): null | BaseChannel | CategoryChannel | NewsChannel | StageChannel | TextChannel | PublicThreadChannel<boolean> | PrivateThreadChannel | VoiceChannel | ForumChannel | MediaChannel
  • Returns null | BaseChannel | CategoryChannel | NewsChannel | StageChannel | TextChannel | PublicThreadChannel<boolean> | PrivateThreadChannel | VoiceChannel | ForumChannel | MediaChannel

Methods

  • Returns this is Context & {
        get interaction(): ContextMenuCommandInteraction<CacheType>;
    }

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

#cache: Partial<IContextCache> = {}
#environment: Record<string, unknown> = {}
#keywords: Record<string, unknown> = {}
_reason?: string
automodRule: Partial<IAutomodRuleOptions> = {}
calendar?: CalendarType
component: Partial<IComponentOptions> = {}
container: Container
executionTimestamp: number
http: Partial<IHttpOptions> = {}
localFunctions: Map<string, ILocalFunctionData> = ...
runtime: IRunnable
timezone: string = "UTC"

Accessors

  • get channel(): null | BaseChannel | CategoryChannel | NewsChannel | StageChannel | TextChannel | PublicThreadChannel<boolean> | PrivateThreadChannel | VoiceChannel | ForumChannel | MediaChannel
  • Returns null | BaseChannel | CategoryChannel | NewsChannel | StageChannel | TextChannel | PublicThreadChannel<boolean> | PrivateThreadChannel | VoiceChannel | ForumChannel | MediaChannel

Methods

  • Fetches all emojis of the application.

    +

    Parameters

    • Optional once: boolean

      Whether to fetch only when the collection is empty.

      +

    Returns Promise<void | Collection<string, ApplicationEmoji>>

  • Returns this is Context & {
        get interaction(): ContextMenuCommandInteraction<CacheType>;
    }

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/CooldownManager.html b/docs/classes/CooldownManager.html index 854e83bc04..fb6cbf468c 100644 --- a/docs/classes/CooldownManager.html +++ b/docs/classes/CooldownManager.html @@ -1,4 +1,4 @@ -CooldownManager | @tryforge/forgescript

Constructors

constructor +CooldownManager | @tryforge/forgescript

Constructors

Properties

Methods

add @@ -6,4 +6,4 @@ delete getTimeLeft identifier -

Constructors

Properties

client: ForgeClient
cooldowns: Collection<string, ICooldown> = ...

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

client: ForgeClient
cooldowns: Collection<string, ICooldown> = ...

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/DiscordEventHandler.html b/docs/classes/DiscordEventHandler.html index f2be672494..d1c56c6b0a 100644 --- a/docs/classes/DiscordEventHandler.html +++ b/docs/classes/DiscordEventHandler.html @@ -1,7 +1,7 @@ -DiscordEventHandler | @tryforge/forgescript

Class DiscordEventHandler<T>

Type Parameters

  • T extends keyof ClientEvents

Hierarchy

Constructors

constructor +DiscordEventHandler | @tryforge/forgescript

Class DiscordEventHandler<T>

Type Parameters

  • T extends keyof ClientEvents

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

data: IEvent<ClientEvents, T>

Accessors

  • get listener(): ((this, ...args) => void | Promise<void>)
  • Returns ((this, ...args) => void | Promise<void>)

      • (this, ...args): void | Promise<void>
      • Parameters

        Returns void | Promise<void>

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

data: IEvent<ClientEvents, T>

Accessors

  • get listener(): ((this, ...args) => void | Promise<void>)
  • Returns ((this, ...args) => void | Promise<void>)

      • (this, ...args): void | Promise<void>
      • Parameters

        Returns void | Promise<void>

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/EventManager.html b/docs/classes/EventManager.html index e788333eee..2f51ad44ce 100644 --- a/docs/classes/EventManager.html +++ b/docs/classes/EventManager.html @@ -1,4 +1,4 @@ -EventManager | @tryforge/forgescript

Constructors

constructor +EventManager | @tryforge/forgescript

Constructors

Properties

Constructors

Properties

client: ForgeClient
events: Collection<string, Collection<string, BaseEventHandler<Record<string, unknown[]>, string>>> = ...
Loaded: Partial<Record<string, Record<string, BaseEventHandler<Record<string, unknown[]>, string>>>> = {}

Methods

  • Parameters

    • name: string

    Returns {
        description: string;
        intents?: ("Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls")[];
        listener: ((this, ...args) => void | Promise<void>);
        name: string;
        version?: string;
    }[]

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

client: ForgeClient
events: Collection<string, Collection<string, BaseEventHandler<Record<string, unknown[]>, string>>> = ...
Loaded: Partial<Record<string, Record<string, BaseEventHandler<Record<string, unknown[]>, string>>>> = {}

Methods

  • Parameters

    • name: string

    Returns {
        deprecated?: boolean;
        description: string;
        intents?: ("Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls")[];
        listener: ((this, ...args) => void | Promise<void>);
        name: string;
        version?: string;
    }[]

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/FileReader.html b/docs/classes/FileReader.html index c64b8ebc3c..174c7f19ea 100644 --- a/docs/classes/FileReader.html +++ b/docs/classes/FileReader.html @@ -1,4 +1,4 @@ -FileReader | @tryforge/forgescript

Constructors

constructor +FileReader | @tryforge/forgescript

Constructors

Properties

code index req @@ -9,4 +9,4 @@ readName readValue read -

Constructors

Properties

code: string
index: number = 0
req: any
Syntax: {
    Close: string;
    Escape: string;
    Open: string;
} = ...

Type declaration

  • Close: string
  • Escape: string
  • Open: string

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

code: string
index: number = 0
req: any
Syntax: {
    Close: string;
    Escape: string;
    Open: string;
} = ...

Type declaration

  • Close: string
  • Escape: string
  • Open: string

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/ForgeClient.html b/docs/classes/ForgeClient.html index ad0d466e4e..1aecdc1147 100644 --- a/docs/classes/ForgeClient.html +++ b/docs/classes/ForgeClient.html @@ -1,4 +1,4 @@ -ForgeClient | @tryforge/forgescript

Hierarchy

  • Client<true>
    • ForgeClient

Indexable

[x: PropertyKey]: unknown

Constructors

constructor +ForgeClient | @tryforge/forgescript

Hierarchy

  • Client<true>
    • ForgeClient

Indexable

[x: PropertyKey]: unknown

Constructors

Properties

Constructors

Properties

application: ClientApplication
applicationCommands: ApplicationCommandManager = ...
channels: ChannelManager
commands: NativeCommandManager = ...
cooldowns: CooldownManager = ...
events: EventManager = ...
functions: ForgeFunctionManager = ...
globalVariables: Record<string, string> = {}
guilds: GuildManager
intervals: Map<string, Timeout> = ...
options: Omit<ClientOptions, "intents"> & {
    intents: IntentsBitField;
} & IForgeClientOptions

Type declaration

  • intents: IntentsBitField
readyTimestamp: number
rest: REST
shard: null | ShardClientUtil
sweepers: Sweepers
threading: ThreadManager = ...
timeouts: Map<string, Timeout> = ...
token: string
user: ClientUser
users: UserManager
voice: ClientVoiceManager
websockets: Map<number, WebSocket> = ...
ws: WebSocketManager
captureRejectionSymbol: typeof captureRejectionSymbol

Value: Symbol.for('nodejs.rejection')

+

Constructors

Properties

application: ClientApplication
applicationCommands: ApplicationCommandManager = ...
channels: ChannelManager
commands: NativeCommandManager = ...
cooldowns: CooldownManager = ...
events: EventManager = ...
functions: ForgeFunctionManager = ...
globalVariables: Record<string, string> = {}
guilds: GuildManager
intervals: Map<string, Timeout> = ...
options: Omit<ClientOptions, "intents"> & {
    intents: IntentsBitField;
} & IForgeClientOptions

Type declaration

  • intents: IntentsBitField
readyTimestamp: number
rest: REST
shard: null | ShardClientUtil
sweepers: Sweepers
threading: ThreadManager = ...
timeouts: Map<string, Timeout> = ...
token: string
user: ClientUser
users: UserManager
voice: ClientVoiceManager
websockets: Map<number, WebSocket> = ...
ws: WebSocketManager
captureRejectionSymbol: typeof captureRejectionSymbol

Value: Symbol.for('nodejs.rejection')

See how to write a custom rejection handler.

Since

v13.4.0, v12.16.0

captureRejections: boolean

Value: boolean

@@ -108,19 +108,19 @@

Installing a listener using this symbol does not change the behavior once an'error' event is emitted. Therefore, the process will still crash if no regular 'error' listener is installed.

Since

v13.6.0, v12.17.0

-

Accessors

  • get _censoredToken(): null | string
  • Returns null | string

  • get emojis(): BaseGuildEmojiManager
  • Returns BaseGuildEmojiManager

  • get readyAt(): If<Ready, Date, null>
  • Returns If<Ready, Date, null>

  • get uptime(): If<Ready, number, null>
  • Returns If<Ready, number, null>

Methods

  • Returns Promise<void>

  • Parameters

    • error: Error
    • event: string
    • Rest ...args: any[]

    Returns void

  • Alias for emitter.on(eventName, listener).

    +

Accessors

  • get _censoredToken(): null | string
  • Returns null | string

  • get emojis(): BaseGuildEmojiManager
  • Returns BaseGuildEmojiManager

  • get readyAt(): If<Ready, Date, null>
  • Returns If<Ready, Date, null>

  • get uptime(): If<Ready, number, null>
  • Returns If<Ready, number, null>

Methods

  • Returns Promise<void>

  • Parameters

    • error: Error
    • event: string
    • Rest ...args: any[]

    Returns void

  • Alias for emitter.on(eventName, listener).

    Parameters

    • eventName: string | symbol
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ForgeClient

    Since

    v0.1.26

    -
  • Parameters

    • id: string
    • Optional options: WebhookDeleteOptions

    Returns Promise<void>

  • Returns Promise<void>

  • Type Parameters

    • Event extends keyof ClientEvents

    Parameters

    • event: Event
    • Rest ...args: ClientEvents[Event]

    Returns boolean

  • Type Parameters

    • Event extends string | symbol

    Parameters

    • event: Exclude<Event, keyof ClientEvents>
    • Rest ...args: unknown[]

    Returns boolean

  • Returns an array listing the events for which the emitter has registered +

  • Parameters

    • id: string
    • Optional options: WebhookDeleteOptions

    Returns Promise<void>

  • Returns Promise<void>

  • Type Parameters

    • Event extends keyof ClientEvents

    Parameters

    • event: Event
    • Rest ...args: ClientEvents[Event]

    Returns boolean

  • Type Parameters

    • Event extends string | symbol

    Parameters

    • event: Exclude<Event, keyof ClientEvents>
    • Rest ...args: unknown[]

    Returns boolean

  • Returns an array listing the events for which the emitter has registered listeners. The values in the array are strings or Symbols.

    import { EventEmitter } from 'node:events';

    const myEE = new EventEmitter();
    myEE.on('foo', () => {});
    myEE.on('bar', () => {});

    const sym = Symbol('symbol');
    myEE.on(sym, () => {});

    console.log(myEE.eventNames());
    // Prints: [ 'foo', 'bar', Symbol(symbol) ]

    Returns (string | symbol)[]

    Since

    v6.0.0

    -
  • Parameters

    • guild: GuildResolvable

    Returns Promise<GuildPreview>

  • Parameters

    • template: string

    Returns Promise<GuildTemplate>

  • Parameters

    • guild: GuildResolvable

    Returns Promise<Widget>

  • Parameters

    • invite: string
    • Optional options: ClientFetchInviteOptions

    Returns Promise<Invite>

  • Returns Promise<Collection<string, StickerPack>>

    Deprecated

    Use Client.fetchStickerPacks instead.

    -
  • Parameters

    • id: string

    Returns Promise<Sticker>

  • Parameters

    • options: {
          packId: string;
      }
      • packId: string

    Returns Promise<StickerPack>

  • Parameters

    • Optional options: StickerPackFetchOptions

    Returns Promise<Collection<string, StickerPack>>

  • Returns Promise<Collection<string, VoiceRegion>>

  • Parameters

    • id: string
    • Optional token: string

    Returns Promise<Webhook<WebhookType>>

  • Parameters

    • Optional options: InviteGenerationOptions

    Returns string

  • Returns the current max listener value for the EventEmitter which is either +

  • Parameters

    • guild: GuildResolvable

    Returns Promise<GuildPreview>

  • Parameters

    • template: string

    Returns Promise<GuildTemplate>

  • Parameters

    • guild: GuildResolvable

    Returns Promise<Widget>

  • Parameters

    • invite: string
    • Optional options: ClientFetchInviteOptions

    Returns Promise<Invite>

  • Returns Promise<Collection<string, StickerPack>>

    Deprecated

    Use Client.fetchStickerPacks instead.

    +
  • Parameters

    • id: string

    Returns Promise<Sticker>

  • Parameters

    • options: {
          packId: string;
      }
      • packId: string

    Returns Promise<StickerPack>

  • Parameters

    • Optional options: StickerPackFetchOptions

    Returns Promise<Collection<string, StickerPack>>

  • Returns Promise<Collection<string, VoiceRegion>>

  • Parameters

    • id: string
    • Optional token: string

    Returns Promise<Webhook<WebhookType>>

  • Parameters

    • Optional options: InviteGenerationOptions

    Returns string

  • Returns the current max listener value for the EventEmitter which is either set by emitter.setMaxListeners(n) or defaults to defaultMaxListeners.

    Returns number

    Since

    v1.0.0

    -
  • Parameters

    • msg: Message<boolean>

    Returns Promise<null | string>

  • Returns this is Client<true>

  • Returns the number of listeners listening for the event named eventName. +

  • Parameters

    • msg: Message<boolean>

    Returns Promise<null | string>

  • Returns this is Client<true>

  • Returns the number of listeners listening for the event named eventName. If listener is provided, it will return how many times the listener is found in the list of the listeners of the event.

    Parameters

    • eventName: string | symbol

      The name of the event being listened for

      @@ -130,7 +130,7 @@
      server.on('connection', (stream) => {
      console.log('someone connected!');
      });
      console.log(util.inspect(server.listeners('connection')));
      // Prints: [ [Function] ]

      Parameters

      • eventName: string | symbol

      Returns Function[]

      Since

      v0.1.26

      -
  • Parameters

    • Optional token: string

    Returns Promise<string>

  • Type Parameters

    • Event extends keyof ClientEvents

    Parameters

    • event: Event
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: ClientEvents[Event]

          Returns void

    Returns ForgeClient

  • Type Parameters

    • Event extends string | symbol

    Parameters

    • event: Exclude<Event, keyof ClientEvents>
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ForgeClient

  • Type Parameters

    • Event extends keyof ClientEvents

    Parameters

    • event: Event
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: ClientEvents[Event]

          Returns void

    Returns ForgeClient

  • Type Parameters

    • Event extends string | symbol

    Parameters

    • event: Exclude<Event, keyof ClientEvents>
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ForgeClient

  • Type Parameters

    • Event extends keyof ClientEvents

    Parameters

    • event: Event
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: ClientEvents[Event]

          Returns void

    Returns ForgeClient

  • Type Parameters

    • Event extends string | symbol

    Parameters

    • event: Exclude<Event, keyof ClientEvents>
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ForgeClient

  • Adds the listener function to the beginning of the listeners array for the +

  • Parameters

    • Optional token: string

    Returns Promise<string>

  • Type Parameters

    • Event extends keyof ClientEvents

    Parameters

    • event: Event
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: ClientEvents[Event]

          Returns void

    Returns ForgeClient

  • Type Parameters

    • Event extends string | symbol

    Parameters

    • event: Exclude<Event, keyof ClientEvents>
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ForgeClient

  • Type Parameters

    • Event extends keyof ClientEvents

    Parameters

    • event: Event
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: ClientEvents[Event]

          Returns void

    Returns ForgeClient

  • Type Parameters

    • Event extends string | symbol

    Parameters

    • event: Exclude<Event, keyof ClientEvents>
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ForgeClient

  • Type Parameters

    • Event extends keyof ClientEvents

    Parameters

    • event: Event
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: ClientEvents[Event]

          Returns void

    Returns ForgeClient

  • Type Parameters

    • Event extends string | symbol

    Parameters

    • event: Exclude<Event, keyof ClientEvents>
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ForgeClient

  • Adds the listener function to the beginning of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventNameand listener will result in the listener being added, and called, multiple times.

    @@ -153,7 +153,7 @@
    import { EventEmitter } from 'node:events';
    const emitter = new EventEmitter();
    emitter.once('log', () => console.log('log once'));

    // Returns a new Array with a function `onceWrapper` which has a property
    // `listener` which contains the original listener bound above
    const listeners = emitter.rawListeners('log');
    const logFnWrapper = listeners[0];

    // Logs "log once" to the console and does not unbind the `once` event
    logFnWrapper.listener();

    // Logs "log once" to the console and removes the listener
    logFnWrapper();

    emitter.on('log', () => console.log('log persistently'));
    // Will return a new Array with a single function bound by `.on()` above
    const newListeners = emitter.rawListeners('log');

    // Logs "log persistently" twice
    newListeners[0]();
    emitter.emit('log');

    Parameters

    • eventName: string | symbol

    Returns Function[]

    Since

    v9.4.0

    -
  • Type Parameters

    • Event extends keyof ClientEvents

    Parameters

    • Optional event: Event

    Returns ForgeClient

  • Type Parameters

    • Event extends string | symbol

    Parameters

    • Optional event: Exclude<Event, keyof ClientEvents>

    Returns ForgeClient

  • Removes the specified listener from the listener array for the event namedeventName.

    +
  • Type Parameters

    • Event extends keyof ClientEvents

    Parameters

    • Optional event: Event

    Returns ForgeClient

  • Type Parameters

    • Event extends string | symbol

    Parameters

    • Optional event: Exclude<Event, keyof ClientEvents>

    Returns ForgeClient

  • Removes the specified listener from the listener array for the event namedeventName.

    const callback = (stream) => {
    console.log('someone connected!');
    };
    server.on('connection', callback);
    // ...
    server.removeListener('connection', callback);

    removeListener() will remove, at most, one instance of a listener from the @@ -183,7 +183,7 @@ modified for this specific EventEmitter instance. The value can be set toInfinity (or 0) to indicate an unlimited number of listeners.

    Returns a reference to the EventEmitter, so that calls can be chained.

    Parameters

    • n: number

    Returns ForgeClient

    Since

    v0.3.5

    -
  • Returns unknown

  • Experimental

    Listens once to the abort event on the provided signal.

    +
  • Returns unknown

  • Experimental

    Listens once to the abort event on the provided signal.

    Listening to the abort event on abort signals is unsafe and may lead to resource leaks since another third party with the signal can call e.stopImmediatePropagation(). Unfortunately Node.js cannot change @@ -221,7 +221,7 @@

  • eventName: string | symbol

    The event name

Returns number

Since

v0.9.12

Deprecated

Since v3.2.0 - Use listenerCount instead.

-
  • Type Parameters

    • Emitter extends EventEmitter

    • Event extends keyof ClientEvents

    Parameters

    • eventEmitter: Emitter
    • eventName: Emitter extends Client<boolean>
          ? Event
          : string | symbol
    • Optional options: {
          signal?: AbortSignal;
      }
      • Optional signal?: AbortSignal

    Returns AsyncEventIterator<Emitter extends Client<boolean>
        ? ClientEvents[Event]
        : any[]>

  • Type Parameters

    • Emitter extends EventEmitter

    • Event extends keyof ClientEvents

    Parameters

    • eventEmitter: Emitter
    • eventName: Emitter extends Client<boolean>
          ? Event
          : string | symbol
    • Optional options: {
          signal?: AbortSignal;
      }
      • Optional signal?: AbortSignal

    Returns Promise<Emitter extends Client<boolean>
        ? ClientEvents[Event]
        : any[]>

  • import { setMaxListeners, EventEmitter } from 'node:events';

    const target = new EventTarget();
    const emitter = new EventEmitter();

    setMaxListeners(5, target, emitter); +
  • Type Parameters

    • Emitter extends EventEmitter

    • Event extends keyof ClientEvents

    Parameters

    • eventEmitter: Emitter
    • eventName: Emitter extends Client<boolean>
          ? Event
          : string | symbol
    • Optional options: {
          signal?: AbortSignal;
      }
      • Optional signal?: AbortSignal

    Returns AsyncEventIterator<Emitter extends Client<boolean>
        ? ClientEvents[Event]
        : any[]>

  • Type Parameters

    • Emitter extends EventEmitter

    • Event extends keyof ClientEvents

    Parameters

    • eventEmitter: Emitter
    • eventName: Emitter extends Client<boolean>
          ? Event
          : string | symbol
    • Optional options: {
          signal?: AbortSignal;
      }
      • Optional signal?: AbortSignal

    Returns Promise<Emitter extends Client<boolean>
        ? ClientEvents[Event]
        : any[]>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/ForgeExtension.html b/docs/classes/ForgeExtension.html index 48e2a3aeb3..e8cd480c0b 100644 --- a/docs/classes/ForgeExtension.html +++ b/docs/classes/ForgeExtension.html @@ -1,4 +1,4 @@ -ForgeExtension | @tryforge/forgescript

Class ForgeExtensionAbstract

Constructors

constructor +ForgeExtension | @tryforge/forgescript

Class ForgeExtensionAbstract

Constructors

Properties

Constructors

Properties

_commands?: null | BaseCommandManager<unknown>
description: string
name: string
requireExtensions?: string[]

A list of extension names this extension requires

-
targetVersions?: string[]

Only the versions written here will be allowed

-
version: string

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

_commands?: null | BaseCommandManager<unknown>
description: string
name: string
requireExtensions?: string[]

A list of extension names this extension requires

+
targetVersions?: string[]

Only the versions written here will be allowed

+
version: string

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/ForgeFunction.html b/docs/classes/ForgeFunction.html index 1b371bfdef..cfc08654a7 100644 --- a/docs/classes/ForgeFunction.html +++ b/docs/classes/ForgeFunction.html @@ -1,7 +1,7 @@ -ForgeFunction | @tryforge/forgescript

Constructors

constructor +ForgeFunction | @tryforge/forgescript

Constructors

Properties

Methods

Constructors

Properties

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/ForgeFunctionManager.html b/docs/classes/ForgeFunctionManager.html index dca011c691..b71ad9001a 100644 --- a/docs/classes/ForgeFunctionManager.html +++ b/docs/classes/ForgeFunctionManager.html @@ -1,4 +1,4 @@ -ForgeFunctionManager | @tryforge/forgescript

Constructors

constructor +ForgeFunctionManager | @tryforge/forgescript

Constructors

Properties

Methods

add @@ -6,4 +6,4 @@ load populate resolve -

Constructors

Properties

client: ForgeClient
functions: Map<string, ForgeFunction> = ...

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

client: ForgeClient
functions: Map<string, ForgeFunction> = ...

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/FunctionManager.html b/docs/classes/FunctionManager.html index db3e6fb060..29ce82251f 100644 --- a/docs/classes/FunctionManager.html +++ b/docs/classes/FunctionManager.html @@ -1,4 +1,4 @@ -FunctionManager | @tryforge/forgescript

Constructors

constructor +FunctionManager | @tryforge/forgescript

Constructors

Properties

Accessors

Methods

add @@ -8,4 +8,4 @@ loadNative reload toJSON -

Constructors

Properties

Functions: Map<string, NativeFunction<IArg<ArgType, boolean, boolean, EnumLike<any>>[], boolean>> = ...

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

Functions: Map<string, NativeFunction<IArg<ArgType, boolean, boolean, EnumLike<any>>[], boolean>> = ...

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/Interpreter.html b/docs/classes/Interpreter.html index 94da484124..e941e5ff6b 100644 --- a/docs/classes/Interpreter.html +++ b/docs/classes/Interpreter.html @@ -1,3 +1,3 @@ -Interpreter | @tryforge/forgescript

Constructors

constructor +Interpreter | @tryforge/forgescript

Constructors

Methods

run -

Constructors

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/InviteTracker.html b/docs/classes/InviteTracker.html index fc6860377b..246903297f 100644 --- a/docs/classes/InviteTracker.html +++ b/docs/classes/InviteTracker.html @@ -1,4 +1,4 @@ -InviteTracker | @tryforge/forgescript

Constructors

constructor +InviteTracker | @tryforge/forgescript

Constructors

Properties

Constructors

Properties

Inviters: Collection<string, Collection<string, IGuildInviter>> = ...

Guild => invited user => invited by

-
Invites: Collection<string, IGuildInvite[]> = ...
RequiredEvents: (keyof ClientEvents)[] = ...
RequiredIntents: ("Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls")[] = ...

Methods

Generated using TypeDoc

\ No newline at end of file +
Invites: Collection<string, IGuildInvite[]> = ...
RequiredEvents: (keyof ClientEvents)[] = ...
RequiredIntents: ("Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls")[] = ...

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/Logger.html b/docs/classes/Logger.html index 5dad05de13..00ef8a5d76 100644 --- a/docs/classes/Logger.html +++ b/docs/classes/Logger.html @@ -1,4 +1,4 @@ -Logger | @tryforge/forgescript

Constructors

constructor +Logger | @tryforge/forgescript

Constructors

Properties

Constructors

Properties

Colors: {
    0: Chalk;
    1: Chalk;
    2: Chalk;
    3: Chalk;
    4: Chalk;
} = ...

Type declaration

  • 0: Chalk
  • 1: Chalk
  • 2: Chalk
  • 3: Chalk
  • 4: Chalk
DateColor: Chalk = clc.green.bold
Priority: LogPriority = LogPriority.Medium

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

Colors: {
    0: Chalk;
    1: Chalk;
    2: Chalk;
    3: Chalk;
    4: Chalk;
} = ...

Type declaration

  • 0: Chalk
  • 1: Chalk
  • 2: Chalk
  • 3: Chalk
  • 4: Chalk
DateColor: Chalk = clc.green.bold
Priority: LogPriority = LogPriority.Medium

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/NativeCommandManager.html b/docs/classes/NativeCommandManager.html index 8b5e72e948..28e2d9592c 100644 --- a/docs/classes/NativeCommandManager.html +++ b/docs/classes/NativeCommandManager.html @@ -1,4 +1,4 @@ -NativeCommandManager | @tryforge/forgescript

Hierarchy

Constructors

constructor +NativeCommandManager | @tryforge/forgescript

Hierarchy

Constructors

Properties

Accessors

Constructors

Properties

handlerName: string = NativeEventName
defaultMaxListeners: number

Accessors

Methods

  • Type Parameters

    • U extends "update"

    Parameters

    Returns boolean

  • Type Parameters

    • U extends "update"

    Returns U[]

  • Parameters

    • type: "update"

    Returns number

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

handlerName: string = NativeEventName
defaultMaxListeners: number

Accessors

Methods

  • Type Parameters

    • U extends "update"

    Parameters

    Returns boolean

  • Type Parameters

    • U extends "update"

    Returns U[]

  • Parameters

    • type: "update"

    Returns number

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/NativeFunction.html b/docs/classes/NativeFunction.html index 835f8acc2a..b64ee919f0 100644 --- a/docs/classes/NativeFunction.html +++ b/docs/classes/NativeFunction.html @@ -1,6 +1,6 @@ -NativeFunction | @tryforge/forgescript

Class NativeFunction<T, Unwrap>

Type Parameters

  • T extends [...IArg[]] = IArg[]

  • Unwrap extends boolean = boolean

Constructors

constructor +NativeFunction | @tryforge/forgescript

Class NativeFunction<T, Unwrap>

Type Parameters

  • T extends [...IArg[]] = IArg[]

  • Unwrap extends boolean = boolean

Constructors

Properties

Accessors

Constructors

Properties

async: boolean
data: INativeFunction<T, Unwrap>
path: string

Accessors

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

async: boolean
data: INativeFunction<T, Unwrap>
path: string

Accessors

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/Return.html b/docs/classes/Return.html index 587be86248..0620a04b6e 100644 --- a/docs/classes/Return.html +++ b/docs/classes/Return.html @@ -1,4 +1,4 @@ -Return | @tryforge/forgescript

Type Parameters

Constructors

constructor +Return | @tryforge/forgescript

Type Parameters

Constructors

Properties

Accessors

break @@ -7,4 +7,4 @@ return stop success -

Constructors

Properties

type: T
value: ReturnValue<T>

Accessors

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

type: T
value: ReturnValue<T>

Accessors

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/ThreadManager.html b/docs/classes/ThreadManager.html index bd05e98d8e..ba4127c7f6 100644 --- a/docs/classes/ThreadManager.html +++ b/docs/classes/ThreadManager.html @@ -1,4 +1,4 @@ -ThreadManager | @tryforge/forgescript

Constructors

constructor +ThreadManager | @tryforge/forgescript

Constructors

Properties

Constructors

Properties

available: Set<Worker> = ...
busy: Set<Worker> = ...
client: ForgeClient
executing: Map<number, IThreadTask> = ...
increment: number = 0
maxWorkerCount: number = 1
queue: Map<number, IThreadTask> = ...

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

available: Set<Worker> = ...
busy: Set<Worker> = ...
client: ForgeClient
executing: Map<number, IThreadTask> = ...
increment: number = 0
maxWorkerCount: number = 1
queue: Map<number, IThreadTask> = ...

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/VoiceTracker.html b/docs/classes/VoiceTracker.html index 26de663e20..be8abb9bad 100644 --- a/docs/classes/VoiceTracker.html +++ b/docs/classes/VoiceTracker.html @@ -1,3 +1,3 @@ -VoiceTracker | @tryforge/forgescript

Constructors

constructor +VoiceTracker | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Constructors

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/ArgType.html b/docs/enums/ArgType.html index c8d5efc49c..87a36309fb 100644 --- a/docs/enums/ArgType.html +++ b/docs/enums/ArgType.html @@ -1,4 +1,4 @@ -ArgType | @tryforge/forgescript

Enumeration ArgType

Enumeration Members

ApplicationEmoji +ArgType | @tryforge/forgescript

Enumeration ArgType

Enumeration Members

Enumeration Members

ApplicationEmoji: 29
Attachment: 20
AutomodRule: 30
BigInt: 2
Boolean: 19
Channel: 23
Color: 14
Date: 8
Emoji: 17
Enum: 15
ForumTag: 16
Guild: 9
GuildEmoji: 18
Invite: 11
Json: 13
Member: 28
Message: 22
Number: 6
OverwritePermission: 5
Permission: 12
Reaction: 21
Role: 24
RoleOrUser: 10
ScheduledEvent: 31
SoundboardSound: 33
StageInstance: 32
Sticker: 26
String: 1
Template: 34
TextChannel: 4
Time: 27
URL: 0
Unknown: 3
User: 7
Webhook: 25

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

ApplicationEmoji: 29
Attachment: 20
AutomodRule: 30
BigInt: 2
Boolean: 19
Channel: 23
Color: 14
Date: 8
Emoji: 17
Enum: 15
ForumTag: 16
Guild: 9
GuildEmoji: 18
Invite: 11
Json: 13
Member: 28
Message: 22
Number: 6
OverwritePermission: 5
Permission: 12
Reaction: 21
Role: 24
RoleOrUser: 10
ScheduledEvent: 31
SoundboardSound: 33
StageInstance: 32
Sticker: 26
String: 1
Template: 34
TextChannel: 4
Time: 27
URL: 0
Unknown: 3
User: 7
Webhook: 25

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/CalendarType.html b/docs/enums/CalendarType.html index 0344570320..d98ed6230b 100644 --- a/docs/enums/CalendarType.html +++ b/docs/enums/CalendarType.html @@ -1,4 +1,4 @@ -CalendarType | @tryforge/forgescript

Enumeration CalendarType

Enumeration Members

Buddhist +CalendarType | @tryforge/forgescript

Enumeration CalendarType

Enumeration Members

Enumeration Members

Buddhist: "buddhist"
Chinese: "chinese"
Coptic: "coptic"
Dangi: "dangi"
Ethioaa: "ethioaa"
Ethiopic: "ethiopic"
Gregory: "gregory"
Hebrew: "hebrew"
Indian: "indian"
Islamic: "islamic"
IslamicCivil: "islamic-civil"
IslamicRgsa: "islamic-rgsa"
IslamicTbla: "islamic-tbla"
IslamicUmalqura: "islamic-umalqura"
Iso8601: "iso8601"
Japanese: "japanese"
Persian: "persian"
Roc: "roc"

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

Buddhist: "buddhist"
Chinese: "chinese"
Coptic: "coptic"
Dangi: "dangi"
Ethioaa: "ethioaa"
Ethiopic: "ethiopic"
Gregory: "gregory"
Hebrew: "hebrew"
Indian: "indian"
Islamic: "islamic"
IslamicCivil: "islamic-civil"
IslamicRgsa: "islamic-rgsa"
IslamicTbla: "islamic-tbla"
IslamicUmalqura: "islamic-umalqura"
Iso8601: "iso8601"
Japanese: "japanese"
Persian: "persian"
Roc: "roc"

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/ErrorType.html b/docs/enums/ErrorType.html index dfddd30be8..8ca5661d53 100644 --- a/docs/enums/ErrorType.html +++ b/docs/enums/ErrorType.html @@ -1,4 +1,4 @@ -ErrorType | @tryforge/forgescript

Enumeration ErrorType

Enumeration Members

CompilerError +ErrorType | @tryforge/forgescript

Enumeration ErrorType

Enumeration Members

CompilerError: "$1 at $2:$3 ($4)"
Custom: "$1"
ExtensionNotFound: "Extension $1 does not seem to be loaded but is being used."
InvalidArgType: "Given value $1 for argument $2 is not of type $3"
MissingApplicationCommandData: "An application command is missing data property ($1)"
MissingArg: "Function $1 is missing argument $2"
MissingCommandType: "A command is missing its type ($1)"
MissingFields: "Function $1 requires brackets"
RequiredExtension: "Extension $1 requires the next extension: $2 loaded to work"
UnknownXName: "Unknown $1 with name $2"
UnsupportedExtensionVersion: "Extension $1 does not work for your ForgeScript version: $2"

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

CompilerError: "$1 at $2:$3 ($4)"
Custom: "$1"
ExtensionNotFound: "Extension $1 does not seem to be loaded but is being used."
InvalidArgType: "Given value $1 for argument $2 is not of type $3"
MissingApplicationCommandData: "An application command is missing data property ($1)"
MissingArg: "Function $1 is missing argument $2"
MissingCommandType: "A command is missing its type ($1)"
MissingFields: "Function $1 requires brackets"
RequiredExtension: "Extension $1 requires the next extension: $2 loaded to work"
UnknownXName: "Unknown $1 with name $2"
UnsupportedExtensionVersion: "Extension $1 does not work for your ForgeScript version: $2"

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/HTTPContentType.html b/docs/enums/HTTPContentType.html index a5057497ef..adcca79958 100644 --- a/docs/enums/HTTPContentType.html +++ b/docs/enums/HTTPContentType.html @@ -1,3 +1,3 @@ -HTTPContentType | @tryforge/forgescript

Enumeration HTTPContentType

Enumeration Members

Json +HTTPContentType | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

Json: 0
Text: 1

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/LogPriority.html b/docs/enums/LogPriority.html index c41a800730..5eec3fe81d 100644 --- a/docs/enums/LogPriority.html +++ b/docs/enums/LogPriority.html @@ -1,11 +1,11 @@ -LogPriority | @tryforge/forgescript

Enumeration LogPriority

Enumeration Members

High +LogPriority | @tryforge/forgescript

Enumeration LogPriority

Enumeration Members

Enumeration Members

High: 4

Logs info, debug data, warnings and errors

-
Low: 2

Logs only info and errors

-
Medium: 3

Logs only info, warnings and errors

-
None: 0

Does not log anything

-
VeryLow: 1

Logs only info

-

Generated using TypeDoc

\ No newline at end of file +
Low: 2

Logs only info and errors

+
Medium: 3

Logs only info, warnings and errors

+
None: 0

Does not log anything

+
VeryLow: 1

Logs only info

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/LogType.html b/docs/enums/LogType.html index 5d8e012a98..ecd98a6a39 100644 --- a/docs/enums/LogType.html +++ b/docs/enums/LogType.html @@ -1,6 +1,6 @@ -LogType | @tryforge/forgescript

Enumeration LogType

Enumeration Members

Debug +LogType | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

Debug: 2
Deprecated: 1
Error: 4
Info: 3
Warn: 0

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/OperatorType.html b/docs/enums/OperatorType.html index d9486e9d45..5833a731bc 100644 --- a/docs/enums/OperatorType.html +++ b/docs/enums/OperatorType.html @@ -1,8 +1,8 @@ -OperatorType | @tryforge/forgescript

Enumeration OperatorType

Enumeration Members

Eq +OperatorType | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

Eq: "=="
Gt: ">"
Gte: ">="
Lt: "<"
Lte: "<="
None: "unknown"
NotEq: "!="

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/RegistrationType.html b/docs/enums/RegistrationType.html index fe1608d2c9..0b280256ad 100644 --- a/docs/enums/RegistrationType.html +++ b/docs/enums/RegistrationType.html @@ -1,4 +1,4 @@ -RegistrationType | @tryforge/forgescript

Enumeration RegistrationType

Enumeration Members

All +RegistrationType | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

All: 2
Global: 0
Guild: 1

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/ReturnType.html b/docs/enums/ReturnType.html index 6764480d96..e3b83cc7a5 100644 --- a/docs/enums/ReturnType.html +++ b/docs/enums/ReturnType.html @@ -1,7 +1,7 @@ -ReturnType | @tryforge/forgescript

Enumeration ReturnType

Enumeration Members

Break +ReturnType | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

Break: 4
Continue: 5
Error: 0
Return: 3
Stop: 1
Success: 2

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/generateMetadata.html b/docs/functions/generateMetadata.html index e13a5a6cea..0ae11a6b54 100644 --- a/docs/functions/generateMetadata.html +++ b/docs/functions/generateMetadata.html @@ -1 +1 @@ -generateMetadata | @tryforge/forgescript

Function generateMetadata

  • Parameters

    • functionsAbsolutePath: string
    • Optional mainCategoryName: string
    • Optional eventName: string
    • warnOnNoOutput: boolean = false
    • Optional expose: Record<string, EnumLike>
    • Optional eventsAbsolutePath: string
    • translate: string[] = []

    Returns Promise<void>

Generated using TypeDoc

\ No newline at end of file +generateMetadata | @tryforge/forgescript

Function generateMetadata

  • Parameters

    • functionsAbsolutePath: string
    • Optional mainCategoryName: string
    • Optional eventName: string
    • warnOnNoOutput: boolean = false
    • Optional expose: Record<string, EnumLike>
    • Optional eventsAbsolutePath: string
    • translate: string[] = []

    Returns Promise<void>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index d9e0c2273c..b8b150287e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -43,7 +43,7 @@

This section will guide you through initializing a client and loading commands from a folder, as well as logging your bot into discord.

Client Initialization

We will write the following for a basic bot initialization, in a index.js file:

-
const { ForgeClient } = require("@tryforge/forgescript")

const client = new ForgeClient({
intents: [
"GuildMessages",
"Guilds",
"MessageContent" // This intent is privileged, must be whitelisted in dev portal, in your application.
],
events: [
"messageCreate",
"ready"
], // Events our bot will act on
prefixes: [
"!",
"?"
] // The prefixes to use for our bot!
})

client.login("token") +
const { ForgeClient } = require("@tryforge/forgescript")

const client = new ForgeClient({
intents: [
"GuildMessages",
"Guilds",
"MessageContent" // This intent is privileged, must be whitelisted in dev portal, in your application.
],
events: [
"messageCreate",
"clientReady"
], // Events our bot will act on
prefixes: [
"!",
"?"
] // The prefixes to use for our bot!
})

client.login("token")

This will be enough to put our bot on.

Registering commands

Registering commands is the way to go when we want something to happen on certain events.

diff --git a/docs/interfaces/IApplicationCommandData.html b/docs/interfaces/IApplicationCommandData.html index 0187ddc033..a2ee84a0e4 100644 --- a/docs/interfaces/IApplicationCommandData.html +++ b/docs/interfaces/IApplicationCommandData.html @@ -1,6 +1,6 @@ -IApplicationCommandData | @tryforge/forgescript

Interface IApplicationCommandData

interface IApplicationCommandData {
    code: string;
    data: RESTPostAPIApplicationCommandsJSONBody | SlashCommandBuilder | ContextMenuCommandBuilder;
    independent?: boolean;
    path?: null | string;
    type?: RegistrationType;
}

Properties

code +IApplicationCommandData | @tryforge/forgescript

Interface IApplicationCommandData

interface IApplicationCommandData {
    code: string;
    data: RESTPostAPIApplicationCommandsJSONBody | SlashCommandBuilder | ContextMenuCommandBuilder;
    independent?: boolean;
    path?: null | string;
    type?: RegistrationType;
}

Properties

code: string
data: RESTPostAPIApplicationCommandsJSONBody | SlashCommandBuilder | ContextMenuCommandBuilder
independent?: boolean
path?: null | string

Generated using TypeDoc

\ No newline at end of file +

Properties

code: string
data: RESTPostAPIApplicationCommandsJSONBody | SlashCommandBuilder | ContextMenuCommandBuilder
independent?: boolean
path?: null | string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IArg.html b/docs/interfaces/IArg.html index d1f280abb2..e1053189cf 100644 --- a/docs/interfaces/IArg.html +++ b/docs/interfaces/IArg.html @@ -1,4 +1,4 @@ -IArg | @tryforge/forgescript

Interface IArg<Type, Required, Rest, Enum>

interface IArg {
    check?: ((i) => boolean);
    condition?: boolean;
    delimiter?: string;
    description: string;
    enum?: Enum;
    name: string;
    pointer?: number;
    pointerProperty?: string;
    required?: Required;
    rest: Rest;
    type: Type;
}

Type Parameters

Properties

check? +IArg | @tryforge/forgescript

Interface IArg<Type, Required, Rest, Enum>

interface IArg {
    check?: ((i) => boolean);
    condition?: boolean;
    delimiter?: string;
    description: string;
    enum?: Enum;
    name: string;
    pointer?: number;
    pointerProperty?: string;
    required?: Required;
    rest: Rest;
    type: Type;
}

Type Parameters

Properties

check?: ((i) => boolean)

Type declaration

    • (i): boolean
    • Parameters

      Returns boolean

condition?: boolean
delimiter?: string
description: string
enum?: Enum
name: string
pointer?: number

Arg index to look at when a type requires a previously guild arg or depends on something.

-
pointerProperty?: string
required?: Required

Defaults to false

-
rest: Rest

Whether this argument is an array of values

-
type: Type

Generated using TypeDoc

\ No newline at end of file +

Properties

check?: ((i) => boolean)

Type declaration

    • (i): boolean
    • Parameters

      Returns boolean

condition?: boolean
delimiter?: string
description: string
enum?: Enum
name: string
pointer?: number

Arg index to look at when a type requires a previously guild arg or depends on something.

+
pointerProperty?: string
required?: Required

Defaults to false

+
rest: Rest

Whether this argument is an array of values

+
type: Type

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IAutomodRuleOptions.html b/docs/interfaces/IAutomodRuleOptions.html index 1bf8688c53..97e2abce7e 100644 --- a/docs/interfaces/IAutomodRuleOptions.html +++ b/docs/interfaces/IAutomodRuleOptions.html @@ -1,5 +1,5 @@ -IAutomodRuleOptions | @tryforge/forgescript

Interface IAutomodRuleOptions

interface IAutomodRuleOptions {
    actions: AutoModerationActionOptions[];
    exemptChannels?: string[];
    exemptRoles?: string[];
    triggerMetadata?: AutoModerationTriggerMetadataOptions;
}

Properties

actions +IAutomodRuleOptions | @tryforge/forgescript

Interface IAutomodRuleOptions

interface IAutomodRuleOptions {
    actions: AutoModerationActionOptions[];
    exemptChannels?: string[];
    exemptRoles?: string[];
    triggerMetadata?: AutoModerationTriggerMetadataOptions;
}

Properties

actions: AutoModerationActionOptions[]
exemptChannels?: string[]
exemptRoles?: string[]
triggerMetadata?: AutoModerationTriggerMetadataOptions

Generated using TypeDoc

\ No newline at end of file +

Properties

actions: AutoModerationActionOptions[]
exemptChannels?: string[]
exemptRoles?: string[]
triggerMetadata?: AutoModerationTriggerMetadataOptions

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IBaseCommand.html b/docs/interfaces/IBaseCommand.html index 3f1918e963..f2266fa18a 100644 --- a/docs/interfaces/IBaseCommand.html +++ b/docs/interfaces/IBaseCommand.html @@ -1,4 +1,4 @@ -IBaseCommand | @tryforge/forgescript

Interface IBaseCommand<T>

interface IBaseCommand {
    aliases?: string[];
    allowBots?: boolean;
    allowedInteractionTypes?: CommandInteractionTypes[];
    code: string;
    disableConsoleErrors?: boolean;
    guildOnly?: boolean;
    name?: string;
    path?: string;
    type: T;
    unloadable?: boolean;
    unprefixed?: boolean;
    [x: PropertyKey]: unknown;
}

Type Parameters

  • T

Indexable

[x: PropertyKey]: unknown

Properties

aliases? +IBaseCommand | @tryforge/forgescript

Interface IBaseCommand<T>

interface IBaseCommand {
    aliases?: string[];
    allowBots?: boolean;
    allowedInteractionTypes?: CommandInteractionTypes[];
    code: string;
    disableConsoleErrors?: boolean;
    guildOnly?: boolean;
    name?: string;
    path?: string;
    type: T;
    unloadable?: boolean;
    unprefixed?: boolean;
    [x: PropertyKey]: unknown;
}

Type Parameters

  • T

Indexable

[x: PropertyKey]: unknown

Properties

aliases?: string[]
allowBots?: boolean
allowedInteractionTypes?: CommandInteractionTypes[]
code: string
disableConsoleErrors?: boolean
guildOnly?: boolean
name?: string
path?: string

Do not define

-
type: T
unloadable?: boolean

Do not define

-
unprefixed?: boolean

Generated using TypeDoc

\ No newline at end of file +

Properties

aliases?: string[]
allowBots?: boolean
allowedInteractionTypes?: CommandInteractionTypes[]
code: string
disableConsoleErrors?: boolean
guildOnly?: boolean
name?: string
path?: string

Do not define

+
type: T
unloadable?: boolean

Do not define

+
unprefixed?: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ICommandManagerEvents.html b/docs/interfaces/ICommandManagerEvents.html index 4324250aef..37c2c4485c 100644 --- a/docs/interfaces/ICommandManagerEvents.html +++ b/docs/interfaces/ICommandManagerEvents.html @@ -1,2 +1,2 @@ -ICommandManagerEvents | @tryforge/forgescript

Interface ICommandManagerEvents<T>

interface ICommandManagerEvents {
    update: (() => void);
}

Type Parameters

  • T

Properties

Properties

update: (() => void)

Type declaration

    • (): void
    • Returns void

Generated using TypeDoc

\ No newline at end of file +ICommandManagerEvents | @tryforge/forgescript

Interface ICommandManagerEvents<T>

interface ICommandManagerEvents {
    update: (() => void);
}

Type Parameters

  • T

Properties

Properties

update: (() => void)

Type declaration

    • (): void
    • Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ICompilationResult.html b/docs/interfaces/ICompilationResult.html index 0f71e455a8..40385914c1 100644 --- a/docs/interfaces/ICompilationResult.html +++ b/docs/interfaces/ICompilationResult.html @@ -1,4 +1,4 @@ -ICompilationResult | @tryforge/forgescript

Interface ICompilationResult

interface ICompilationResult {
    code: string;
    functions: ICompiledFunction[];
    resolve: WrappedCode;
}

Properties

code +ICompilationResult | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Properties

code: string
functions: ICompiledFunction[]
resolve: WrappedCode

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ICompiledCommand.html b/docs/interfaces/ICompiledCommand.html index f8f941d67a..324c5e7c81 100644 --- a/docs/interfaces/ICompiledCommand.html +++ b/docs/interfaces/ICompiledCommand.html @@ -1,3 +1,3 @@ -ICompiledCommand | @tryforge/forgescript

Interface ICompiledCommand

interface ICompiledCommand {
    code: IExtendedCompilationResult;
    name?: IExtendedCompilationResult;
}

Properties

code +ICompiledCommand | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Properties

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ICompiledFunction.html b/docs/interfaces/ICompiledFunction.html index 0cf69f999a..a1dcc55f49 100644 --- a/docs/interfaces/ICompiledFunction.html +++ b/docs/interfaces/ICompiledFunction.html @@ -1,10 +1,10 @@ -ICompiledFunction | @tryforge/forgescript

Interface ICompiledFunction

interface ICompiledFunction {
    count: null | string;
    fields: null | (ICompiledFunctionField | ICompiledFunctionConditionField)[];
    id: string;
    index: number;
    name: string;
    negated: boolean;
    silent: boolean;
}

Properties

count +ICompiledFunction | @tryforge/forgescript

Interface ICompiledFunction

interface ICompiledFunction {
    count: null | string;
    fields: null | (ICompiledFunctionField | ICompiledFunctionConditionField)[];
    id: string;
    index: number;
    name: string;
    negated: boolean;
    silent: boolean;
}

Properties

count: null | string
id: string
index: number
name: string
negated: boolean

Whether output is not desirable

-
silent: boolean

Whether error will be silenced and just exit execution

-

Generated using TypeDoc

\ No newline at end of file +

Properties

count: null | string
id: string
index: number
name: string
negated: boolean

Whether output is not desirable

+
silent: boolean

Whether error will be silenced and just exit execution

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ICompiledFunctionConditionField.html b/docs/interfaces/ICompiledFunctionConditionField.html index ff714ad639..96f3cb9d1d 100644 --- a/docs/interfaces/ICompiledFunctionConditionField.html +++ b/docs/interfaces/ICompiledFunctionConditionField.html @@ -1,5 +1,5 @@ -ICompiledFunctionConditionField | @tryforge/forgescript

Interface ICompiledFunctionConditionField

interface ICompiledFunctionConditionField {
    lhs: ICompiledFunctionField;
    op: OperatorType;
    resolve: WrappedConditionCode;
    rhs?: ICompiledFunctionField;
}

Properties

lhs +ICompiledFunctionConditionField | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Properties

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ICompiledFunctionField.html b/docs/interfaces/ICompiledFunctionField.html index 2a6d1a2c8a..99acc47959 100644 --- a/docs/interfaces/ICompiledFunctionField.html +++ b/docs/interfaces/ICompiledFunctionField.html @@ -1,4 +1,4 @@ -ICompiledFunctionField | @tryforge/forgescript

Interface ICompiledFunctionField

interface ICompiledFunctionField {
    functions: ICompiledFunction[];
    resolve: WrappedCode;
    value: string;
}

Properties

functions +ICompiledFunctionField | @tryforge/forgescript

Interface ICompiledFunctionField

interface ICompiledFunctionField {
    functions: ICompiledFunction[];
    resolve: WrappedCode;
    value: string;
}

Properties

Properties

functions: ICompiledFunction[]
resolve: WrappedCode
value: string

Generated using TypeDoc

\ No newline at end of file +

Properties

functions: ICompiledFunction[]
resolve: WrappedCode
value: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IComponentOptions.html b/docs/interfaces/IComponentOptions.html index 136811acec..d44a6ab3ea 100644 --- a/docs/interfaces/IComponentOptions.html +++ b/docs/interfaces/IComponentOptions.html @@ -1,3 +1,3 @@ -IComponentOptions | @tryforge/forgescript

Interface IComponentOptions

interface IComponentOptions {
    gallery: MediaGalleryBuilder;
    section: SectionBuilder;
}

Properties

gallery +IComponentOptions | @tryforge/forgescript

Interface IComponentOptions

interface IComponentOptions {
    gallery: MediaGalleryBuilder;
    section: SectionBuilder;
}

Properties

Properties

gallery: MediaGalleryBuilder
section: SectionBuilder

Generated using TypeDoc

\ No newline at end of file +

Properties

gallery: MediaGalleryBuilder
section: SectionBuilder

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IContextCache.html b/docs/interfaces/IContextCache.html index adc4a259e8..6dc5a0a215 100644 --- a/docs/interfaces/IContextCache.html +++ b/docs/interfaces/IContextCache.html @@ -1,4 +1,4 @@ -IContextCache | @tryforge/forgescript

Interface IContextCache

interface IContextCache {
    automod: null | AutoModerationActionExecution;
    channel: null | BaseChannel;
    emoji: null | Emoji;
    entitlement: null | Entitlement;
    guild: null | Guild;
    interaction: null | Interaction;
    member: null | GuildMember;
    message: null | Message<boolean>;
    reaction: null | MessageReaction;
    role: null | Role;
    sound: null | SoundboardSound;
    sticker: null | Sticker;
    user: null | User;
}

Properties

automod +IContextCache | @tryforge/forgescript

Interface IContextCache

interface IContextCache {
    automod: null | AutoModerationActionExecution;
    channel: null | BaseChannel;
    emoji: null | Emoji;
    entitlement: null | Entitlement;
    guild: null | Guild;
    interaction: null | Interaction;
    member: null | GuildMember;
    message: null | Message<boolean>;
    reaction: null | MessageReaction;
    role: null | Role;
    sound: null | SoundboardSound;
    sticker: null | Sticker;
    subscription: null | Subscription;
    user: null | User;
}

Properties

automod: null | AutoModerationActionExecution
channel: null | BaseChannel
emoji: null | Emoji
entitlement: null | Entitlement
guild: null | Guild
interaction: null | Interaction
member: null | GuildMember
message: null | Message<boolean>
reaction: null | MessageReaction
role: null | Role
sound: null | SoundboardSound
sticker: null | Sticker
user: null | User

Generated using TypeDoc

\ No newline at end of file +

Properties

automod: null | AutoModerationActionExecution
channel: null | BaseChannel
emoji: null | Emoji
entitlement: null | Entitlement
guild: null | Guild
interaction: null | Interaction
member: null | GuildMember
message: null | Message<boolean>
reaction: null | MessageReaction
role: null | Role
sound: null | SoundboardSound
sticker: null | Sticker
subscription: null | Subscription
user: null | User

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ICooldown.html b/docs/interfaces/ICooldown.html index e9f5b0fd36..94d77931d0 100644 --- a/docs/interfaces/ICooldown.html +++ b/docs/interfaces/ICooldown.html @@ -1,3 +1,3 @@ -ICooldown | @tryforge/forgescript
interface ICooldown {
    duration: number;
    startedAt: number;
}

Properties

duration +ICooldown | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Properties

duration: number
startedAt: number

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IEvent.html b/docs/interfaces/IEvent.html index 4dee710e69..49304ba7b4 100644 --- a/docs/interfaces/IEvent.html +++ b/docs/interfaces/IEvent.html @@ -1,6 +1,7 @@ -IEvent | @tryforge/forgescript

Interface IEvent<Events, T>

interface IEvent {
    description: string;
    intents?: ("Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls")[];
    listener: ((this, ...args) => void | Promise<void>);
    name: T;
    version?: string;
}

Type Parameters

  • Events

  • T extends keyof Events

Properties

description +IEvent | @tryforge/forgescript

Interface IEvent<Events, T>

interface IEvent {
    deprecated?: boolean;
    description: string;
    intents?: ("Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls")[];
    listener: ((this, ...args) => void | Promise<void>);
    name: T;
    version?: string;
}

Type Parameters

  • Events

  • T extends keyof Events

Properties

description: string
intents?: ("Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls")[]
listener: ((this, ...args) => void | Promise<void>)

Type declaration

    • (this, ...args): void | Promise<void>
    • Parameters

      Returns void | Promise<void>

name: T
version?: string

Generated using TypeDoc

\ No newline at end of file +

Properties

deprecated?: boolean
description: string
intents?: ("Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls")[]
listener: ((this, ...args) => void | Promise<void>)

Type declaration

    • (this, ...args): void | Promise<void>
    • Parameters

      Returns void | Promise<void>

name: T
version?: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IExtendedCompilationResult.html b/docs/interfaces/IExtendedCompilationResult.html index 10824266e0..beb6ded6a5 100644 --- a/docs/interfaces/IExtendedCompilationResult.html +++ b/docs/interfaces/IExtendedCompilationResult.html @@ -1,4 +1,4 @@ -IExtendedCompilationResult | @tryforge/forgescript

Interface IExtendedCompilationResult

interface IExtendedCompilationResult {
    code: string;
    functions: CompiledFunction<IArg<ArgType, boolean, boolean, EnumLike<any>>[], boolean>[];
    resolve: WrappedCode;
}

Hierarchy

Properties

code +IExtendedCompilationResult | @tryforge/forgescript

Interface IExtendedCompilationResult

interface IExtendedCompilationResult {
    code: string;
    functions: CompiledFunction<IArg<ArgType, boolean, boolean, EnumLike<any>>[], boolean>[];
    resolve: WrappedCode;
}

Hierarchy

Properties

Properties

code: string
functions: CompiledFunction<IArg<ArgType, boolean, boolean, EnumLike<any>>[], boolean>[]
resolve: WrappedCode

Generated using TypeDoc

\ No newline at end of file +

Properties

code: string
functions: CompiledFunction<IArg<ArgType, boolean, boolean, EnumLike<any>>[], boolean>[]
resolve: WrappedCode

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IExtendedCompiledFunction.html b/docs/interfaces/IExtendedCompiledFunction.html index a6168ea402..741eda3830 100644 --- a/docs/interfaces/IExtendedCompiledFunction.html +++ b/docs/interfaces/IExtendedCompiledFunction.html @@ -1,10 +1,10 @@ -IExtendedCompiledFunction | @tryforge/forgescript

Interface IExtendedCompiledFunction

interface IExtendedCompiledFunction {
    count: null | string;
    fields: null | (IExtendedCompiledFunctionField | IExtendedCompiledFunctionConditionField)[];
    id: string;
    index: number;
    name: string;
    negated: boolean;
    silent: boolean;
}

Hierarchy

Properties

count +IExtendedCompiledFunction | @tryforge/forgescript

Interface IExtendedCompiledFunction

interface IExtendedCompiledFunction {
    count: null | string;
    fields: null | (IExtendedCompiledFunctionField | IExtendedCompiledFunctionConditionField)[];
    id: string;
    index: number;
    name: string;
    negated: boolean;
    silent: boolean;
}

Hierarchy

Properties

count: null | string
id: string
index: number
name: string
negated: boolean

Whether output is not desirable

-
silent: boolean

Whether error will be silenced and just exit execution

-

Generated using TypeDoc

\ No newline at end of file +

Properties

count: null | string
id: string
index: number
name: string
negated: boolean

Whether output is not desirable

+
silent: boolean

Whether error will be silenced and just exit execution

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IExtendedCompiledFunctionConditionField.html b/docs/interfaces/IExtendedCompiledFunctionConditionField.html index 71d93d0074..ff78a42f6d 100644 --- a/docs/interfaces/IExtendedCompiledFunctionConditionField.html +++ b/docs/interfaces/IExtendedCompiledFunctionConditionField.html @@ -1,5 +1,5 @@ -IExtendedCompiledFunctionConditionField | @tryforge/forgescript

Interface IExtendedCompiledFunctionConditionField

interface IExtendedCompiledFunctionConditionField {
    lhs: IExtendedCompiledFunctionField;
    op: OperatorType;
    resolve: WrappedConditionCode;
    rhs?: IExtendedCompiledFunctionField;
}

Hierarchy

Properties

lhs +IExtendedCompiledFunctionConditionField | @tryforge/forgescript

Interface IExtendedCompiledFunctionConditionField

interface IExtendedCompiledFunctionConditionField {
    lhs: IExtendedCompiledFunctionField;
    op: OperatorType;
    resolve: WrappedConditionCode;
    rhs?: IExtendedCompiledFunctionField;
}

Hierarchy

Properties

Properties

Generated using TypeDoc

\ No newline at end of file +

Properties

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IExtendedCompiledFunctionField.html b/docs/interfaces/IExtendedCompiledFunctionField.html index bc2fd69276..7961dc7652 100644 --- a/docs/interfaces/IExtendedCompiledFunctionField.html +++ b/docs/interfaces/IExtendedCompiledFunctionField.html @@ -1,5 +1,5 @@ -IExtendedCompiledFunctionField | @tryforge/forgescript

Interface IExtendedCompiledFunctionField

interface IExtendedCompiledFunctionField {
    functions: CompiledFunction<IArg<ArgType, boolean, boolean, EnumLike<any>>[], boolean>[];
    resolve: WrappedCode;
    resolveArg?: ((ctx, arg, value, ref) => unknown);
    value: string;
}

Hierarchy

Properties

functions +IExtendedCompiledFunctionField | @tryforge/forgescript

Interface IExtendedCompiledFunctionField

interface IExtendedCompiledFunctionField {
    functions: CompiledFunction<IArg<ArgType, boolean, boolean, EnumLike<any>>[], boolean>[];
    resolve: WrappedCode;
    resolveArg?: ((ctx, arg, value, ref) => unknown);
    value: string;
}

Hierarchy

Properties

functions: CompiledFunction<IArg<ArgType, boolean, boolean, EnumLike<any>>[], boolean>[]
resolve: WrappedCode
resolveArg?: ((ctx, arg, value, ref) => unknown)

Type declaration

    • (ctx, arg, value, ref): unknown
    • Parameters

      Returns unknown

value: string

Generated using TypeDoc

\ No newline at end of file +

Properties

functions: CompiledFunction<IArg<ArgType, boolean, boolean, EnumLike<any>>[], boolean>[]
resolve: WrappedCode
resolveArg?: ((ctx, arg, value, ref) => unknown)

Type declaration

    • (ctx, arg, value, ref): unknown
    • Parameters

      Returns unknown

value: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IForgeClientOptions.html b/docs/interfaces/IForgeClientOptions.html index 4ceb28b678..274f69ca21 100644 --- a/docs/interfaces/IForgeClientOptions.html +++ b/docs/interfaces/IForgeClientOptions.html @@ -1,4 +1,4 @@ -IForgeClientOptions | @tryforge/forgescript

Interface IForgeClientOptions

interface IForgeClientOptions {
    allowBots?: boolean;
    allowedMentions?: MessageMentionOptions;
    closeTimeout?: number;
    commands?: string;
    disableConsoleErrors?: boolean;
    enforceNonce?: boolean;
    events?: (keyof ClientEvents)[];
    extensions?: ForgeExtension[];
    failIfNotExists?: boolean;
    functions?: string;
    intents: BitFieldResolvable<"Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls", number>;
    jsonTransformer?: ((obj) => unknown);
    logLevel?: LogPriority;
    makeCache?: CacheFactory;
    mobile?: boolean;
    optionalGuildID?: boolean;
    partials?: readonly Partials[];
    prefixCaseInsensitive?: boolean;
    prefixes: IExtendedCompilationResult[];
    presence?: PresenceData;
    respondOnEdit?: number | boolean;
    rest?: Partial<RESTOptions>;
    restrictions?: IRestrictions;
    shardCount?: number;
    shards?: number | readonly number[] | "auto";
    sweepers?: SweeperOptions;
    token?: string;
    trackers?: ITrackers;
    useInviteSystem?: boolean;
    waitGuildTimeout?: number;
    ws?: WebSocketOptions;
}

Hierarchy

Properties

allowBots? +IForgeClientOptions | @tryforge/forgescript

Interface IForgeClientOptions

interface IForgeClientOptions {
    allowBots?: boolean;
    allowedMentions?: MessageMentionOptions;
    closeTimeout?: number;
    commands?: string;
    disableConsoleErrors?: boolean;
    enforceNonce?: boolean;
    events?: (keyof ClientEvents)[];
    extensions?: ForgeExtension[];
    failIfNotExists?: boolean;
    functions?: string;
    intents: BitFieldResolvable<"Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls", number>;
    jsonTransformer?: ((obj) => unknown);
    logLevel?: LogPriority;
    makeCache?: CacheFactory;
    mobile?: boolean;
    optionalGuildID?: boolean;
    partials?: readonly Partials[];
    prefixCaseInsensitive?: boolean;
    prefixes: IExtendedCompilationResult[];
    presence?: PresenceData;
    respondOnEdit?: number | boolean;
    rest?: Partial<RESTOptions>;
    restrictions?: IRestrictions;
    shardCount?: number;
    shards?: number | readonly number[] | "auto";
    sweepers?: SweeperOptions;
    token?: string;
    trackers?: ITrackers;
    useInviteSystem?: boolean;
    waitGuildTimeout?: number;
    ws?: WebSocketOptions;
}

Hierarchy

Properties

allowBots?: boolean

Allows the bot to execute events triggered by other bots (and itself)

-
allowedMentions?: MessageMentionOptions
closeTimeout?: number
commands?: string

Specifies a folder (path) to load all commands from it

-
disableConsoleErrors?: boolean
enforceNonce?: boolean
events?: (keyof ClientEvents)[]

The discord.js events our bot will use

-
extensions?: ForgeExtension[]
failIfNotExists?: boolean
functions?: string
intents: BitFieldResolvable<"Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls", number>
jsonTransformer?: ((obj) => unknown)

Type declaration

    • (obj): unknown
    • Parameters

      • obj: unknown

      Returns unknown

logLevel?: LogPriority

Specifies the logs to be received

-
makeCache?: CacheFactory
mobile?: boolean

This will connect the client to Discord with the mobile status

-
optionalGuildID?: boolean

Deprecated

Does not work

-
partials?: readonly Partials[]
prefixCaseInsensitive?: boolean

Whether prefixes should be case-insensitive, this only affects letters

-
presence?: PresenceData
respondOnEdit?: number | boolean

Allows the bot to re-use messages that were edited to find possibly command calls. +

allowedMentions?: MessageMentionOptions
closeTimeout?: number
commands?: string

Specifies a folder (path) to load all commands from it

+
disableConsoleErrors?: boolean
enforceNonce?: boolean
events?: (keyof ClientEvents)[]

The discord.js events our bot will use

+
extensions?: ForgeExtension[]
failIfNotExists?: boolean
functions?: string
intents: BitFieldResolvable<"Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls", number>
jsonTransformer?: ((obj) => unknown)

Type declaration

    • (obj): unknown
    • Parameters

      • obj: unknown

      Returns unknown

logLevel?: LogPriority

Specifies the logs to be received

+
makeCache?: CacheFactory
mobile?: boolean

This will connect the client to Discord with the mobile status

+
optionalGuildID?: boolean

Deprecated

Does not work

+
partials?: readonly Partials[]
prefixCaseInsensitive?: boolean

Whether prefixes should be case-insensitive, this only affects letters

+
presence?: PresenceData
respondOnEdit?: number | boolean

Allows the bot to re-use messages that were edited to find possibly command calls. If a number is passed, it's treated as the amount of milliseconds that can pass before the message becomes completely unusable.

-
rest?: Partial<RESTOptions>
restrictions?: IRestrictions
shardCount?: number
shards?: number | readonly number[] | "auto"
sweepers?: SweeperOptions
token?: string
trackers?: ITrackers
useInviteSystem?: boolean

Deprecated

use trackers: { invites: true } instead

-
waitGuildTimeout?: number
ws?: WebSocketOptions

Generated using TypeDoc

\ No newline at end of file +
rest?: Partial<RESTOptions>
restrictions?: IRestrictions
shardCount?: number
shards?: number | readonly number[] | "auto"
sweepers?: SweeperOptions
token?: string
trackers?: ITrackers
useInviteSystem?: boolean

Deprecated

use trackers: { invites: true } instead

+
waitGuildTimeout?: number
ws?: WebSocketOptions

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IForgeFunction.html b/docs/interfaces/IForgeFunction.html index b9504fbcfd..dc9f06810d 100644 --- a/docs/interfaces/IForgeFunction.html +++ b/docs/interfaces/IForgeFunction.html @@ -1,7 +1,7 @@ -IForgeFunction | @tryforge/forgescript

Interface IForgeFunction

interface IForgeFunction {
    brackets?: boolean;
    code: string;
    firstParamCondition?: boolean;
    name: string;
    params?: (string | IForgeFunctionParam)[];
    path?: string;
}

Properties

brackets? +IForgeFunction | @tryforge/forgescript

Interface IForgeFunction

interface IForgeFunction {
    brackets?: boolean;
    code: string;
    firstParamCondition?: boolean;
    name: string;
    params?: (string | IForgeFunctionParam)[];
    path?: string;
}

Properties

brackets?: boolean
code: string
firstParamCondition?: boolean
name: string
params?: (string | IForgeFunctionParam)[]
path?: string

Generated using TypeDoc

\ No newline at end of file +

Properties

brackets?: boolean
code: string
firstParamCondition?: boolean
name: string
params?: (string | IForgeFunctionParam)[]
path?: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IForgeFunctionParam.html b/docs/interfaces/IForgeFunctionParam.html index d2a6657865..0365d897f6 100644 --- a/docs/interfaces/IForgeFunctionParam.html +++ b/docs/interfaces/IForgeFunctionParam.html @@ -1,5 +1,5 @@ -IForgeFunctionParam | @tryforge/forgescript

Interface IForgeFunctionParam

interface IForgeFunctionParam {
    name: string;
    required?: boolean;
    rest?: boolean;
    type?: ArgType | "URL" | "String" | "BigInt" | "Unknown" | "TextChannel" | "OverwritePermission" | "Number" | "User" | "Date" | "Guild" | "RoleOrUser" | "Invite" | "Permission" | "Json" | "Color" | "Enum" | "ForumTag" | "Emoji" | "GuildEmoji" | "Boolean" | "Attachment" | "Reaction" | "Message" | "Channel" | "Role" | "Webhook" | "Sticker" | "Time" | "Member" | "ApplicationEmoji" | "AutomodRule" | "ScheduledEvent" | "StageInstance" | "SoundboardSound" | "Template";
}

Properties

name +IForgeFunctionParam | @tryforge/forgescript

Interface IForgeFunctionParam

interface IForgeFunctionParam {
    name: string;
    required?: boolean;
    rest?: boolean;
    type?: ArgType | "URL" | "String" | "BigInt" | "Unknown" | "TextChannel" | "OverwritePermission" | "Number" | "User" | "Date" | "Guild" | "RoleOrUser" | "Invite" | "Permission" | "Json" | "Color" | "Enum" | "ForumTag" | "Emoji" | "GuildEmoji" | "Boolean" | "Attachment" | "Reaction" | "Message" | "Channel" | "Role" | "Webhook" | "Sticker" | "Time" | "Member" | "ApplicationEmoji" | "AutomodRule" | "ScheduledEvent" | "StageInstance" | "SoundboardSound" | "Template";
}

Properties

name: string
required?: boolean
rest?: boolean
type?: ArgType | "URL" | "String" | "BigInt" | "Unknown" | "TextChannel" | "OverwritePermission" | "Number" | "User" | "Date" | "Guild" | "RoleOrUser" | "Invite" | "Permission" | "Json" | "Color" | "Enum" | "ForumTag" | "Emoji" | "GuildEmoji" | "Boolean" | "Attachment" | "Reaction" | "Message" | "Channel" | "Role" | "Webhook" | "Sticker" | "Time" | "Member" | "ApplicationEmoji" | "AutomodRule" | "ScheduledEvent" | "StageInstance" | "SoundboardSound" | "Template"

Generated using TypeDoc

\ No newline at end of file +

Properties

name: string
required?: boolean
rest?: boolean
type?: ArgType | "URL" | "String" | "BigInt" | "Unknown" | "TextChannel" | "OverwritePermission" | "Number" | "User" | "Date" | "Guild" | "RoleOrUser" | "Invite" | "Permission" | "Json" | "Color" | "Enum" | "ForumTag" | "Emoji" | "GuildEmoji" | "Boolean" | "Attachment" | "Reaction" | "Message" | "Channel" | "Role" | "Webhook" | "Sticker" | "Time" | "Member" | "ApplicationEmoji" | "AutomodRule" | "ScheduledEvent" | "StageInstance" | "SoundboardSound" | "Template"

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IGuildInvite.html b/docs/interfaces/IGuildInvite.html index c6f809ee67..dfa15c9491 100644 --- a/docs/interfaces/IGuildInvite.html +++ b/docs/interfaces/IGuildInvite.html @@ -1,4 +1,4 @@ -IGuildInvite | @tryforge/forgescript

Interface IGuildInvite

interface IGuildInvite {
    code: string;
    userId: string;
    uses: number;
}

Properties

code +IGuildInvite | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Properties

code: string
userId: string
uses: number

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IGuildInviter.html b/docs/interfaces/IGuildInviter.html index 011efb1e0a..12bf5a2857 100644 --- a/docs/interfaces/IGuildInviter.html +++ b/docs/interfaces/IGuildInviter.html @@ -1,3 +1,3 @@ -IGuildInviter | @tryforge/forgescript

Interface IGuildInviter

interface IGuildInviter {
    code: string;
    inviterId: string;
}

Properties

code +IGuildInviter | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Properties

code: string
inviterId: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IHttpOptions.html b/docs/interfaces/IHttpOptions.html index 4128c47bc6..44dbd5631c 100644 --- a/docs/interfaces/IHttpOptions.html +++ b/docs/interfaces/IHttpOptions.html @@ -1,7 +1,7 @@ -IHttpOptions | @tryforge/forgescript

Interface IHttpOptions

interface IHttpOptions {
    body: string;
    contentType?: HTTPContentType;
    form?: FormData;
    headers: Record<string, string>;
    method: string;
    response?: {
        headers?: Headers;
        ping?: number;
    };
}

Properties

body +IHttpOptions | @tryforge/forgescript

Interface IHttpOptions

interface IHttpOptions {
    body: string;
    contentType?: HTTPContentType;
    form?: FormData;
    headers: Record<string, string>;
    method: string;
    response?: {
        headers?: Headers;
        ping?: number;
    };
}

Properties

body: string
contentType?: HTTPContentType
form?: FormData
headers: Record<string, string>
method: string
response?: {
    headers?: Headers;
    ping?: number;
}

Type declaration

  • Optional headers?: Headers
  • Optional ping?: number

Generated using TypeDoc

\ No newline at end of file +

Properties

body: string
contentType?: HTTPContentType
form?: FormData
headers: Record<string, string>
method: string
response?: {
    headers?: Headers;
    ping?: number;
}

Type declaration

  • Optional headers?: Headers
  • Optional ping?: number

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ILocalFunctionData.html b/docs/interfaces/ILocalFunctionData.html index 18eb90ef93..9e0cd382ba 100644 --- a/docs/interfaces/ILocalFunctionData.html +++ b/docs/interfaces/ILocalFunctionData.html @@ -1,3 +1,3 @@ -ILocalFunctionData | @tryforge/forgescript

Interface ILocalFunctionData

interface ILocalFunctionData {
    args: string[];
    code: IExtendedCompiledFunctionField;
}

Properties

args +ILocalFunctionData | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +

Properties

args: string[]

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ILocation.html b/docs/interfaces/ILocation.html index 04917f8a25..d77aa15e85 100644 --- a/docs/interfaces/ILocation.html +++ b/docs/interfaces/ILocation.html @@ -1,3 +1,3 @@ -ILocation | @tryforge/forgescript
interface ILocation {
    column: number;
    line: number;
}

Properties

column +ILocation | @tryforge/forgescript
interface ILocation {
    column: number;
    line: number;
}

Properties

Properties

column: number
line: number

Generated using TypeDoc

\ No newline at end of file +

Properties

column: number
line: number

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IMultipleArgResolve.html b/docs/interfaces/IMultipleArgResolve.html index a2a1269875..358fe26611 100644 --- a/docs/interfaces/IMultipleArgResolve.html +++ b/docs/interfaces/IMultipleArgResolve.html @@ -1,3 +1,3 @@ -IMultipleArgResolve | @tryforge/forgescript

Interface IMultipleArgResolve<T, X>

interface IMultipleArgResolve {
    args: {
        [P in string | number | symbol]: UnwrapArgs<T>[X[P]]
    };
    return: Return<ReturnType>;
}

Type Parameters

  • T extends [...IArg[]]

  • X extends [...number[]]

Properties

args +IMultipleArgResolve | @tryforge/forgescript

Interface IMultipleArgResolve<T, X>

interface IMultipleArgResolve {
    args: {
        [P in string | number | symbol]: UnwrapArgs<T>[X[P]]
    };
    return: Return<ReturnType>;
}

Type Parameters

  • T extends [...IArg[]]

  • X extends [...number[]]

Properties

Properties

args: {
    [P in string | number | symbol]: UnwrapArgs<T>[X[P]]
}

Generated using TypeDoc

\ No newline at end of file +

Properties

args: {
    [P in string | number | symbol]: UnwrapArgs<T>[X[P]]
}

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/INativeFunction.html b/docs/interfaces/INativeFunction.html index 211921858a..16024062bf 100644 --- a/docs/interfaces/INativeFunction.html +++ b/docs/interfaces/INativeFunction.html @@ -1,4 +1,4 @@ -INativeFunction | @tryforge/forgescript

Interface INativeFunction<T, Unwrap>

interface INativeFunction {
    aliases?: `$${string}`[];
    args?: [...T[]];
    brackets?: boolean;
    deprecated?: boolean;
    description: string;
    examples?: string[];
    execute: NativeFunctionExecutor<T, Unwrap>;
    experimental?: boolean;
    name: `$${string}`;
    output?: ArgType | EnumLike<any> | (ArgType | EnumLike<any>)[];
    unwrap: Unwrap;
    version?: string;
}

Type Parameters

  • T extends [...IArg[]]

  • Unwrap extends boolean = boolean

Properties

aliases? +INativeFunction | @tryforge/forgescript

Interface INativeFunction<T, Unwrap>

interface INativeFunction {
    aliases?: `$${string}`[];
    args?: [...T[]];
    brackets?: boolean;
    deprecated?: boolean;
    description: string;
    examples?: string[];
    execute: NativeFunctionExecutor<T, Unwrap>;
    experimental?: boolean;
    name: `$${string}`;
    output?: ArgType | EnumLike<any> | (ArgType | EnumLike<any>)[];
    unwrap: Unwrap;
    version?: string;
}

Type Parameters

  • T extends [...IArg[]]

  • Unwrap extends boolean = boolean

Properties

Properties

aliases?: `$${string}`[]

Aliases this function has

-
args?: [...T[]]
brackets?: boolean

If undefined, function has no brackets

+
args?: [...T[]]
brackets?: boolean

If undefined, function has no brackets

If false, function can have brackets.

If true, function must have brackets.

-
deprecated?: boolean
description: string
examples?: string[]
execute: NativeFunctionExecutor<T, Unwrap>
experimental?: boolean
name: `$${string}`
output?: ArgType | EnumLike<any> | (ArgType | EnumLike<any>)[]
unwrap: Unwrap

Resolves all arguments and are passed through execute params.

-
version?: string

Do not provide this.

-

Generated using TypeDoc

\ No newline at end of file +
deprecated?: boolean
description: string
examples?: string[]
execute: NativeFunctionExecutor<T, Unwrap>
experimental?: boolean
name: `$${string}`
output?: ArgType | EnumLike<any> | (ArgType | EnumLike<any>)[]
unwrap: Unwrap

Resolves all arguments and are passed through execute params.

+
version?: string

Do not provide this.

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IRawField.html b/docs/interfaces/IRawField.html index f3962388da..e50d49c450 100644 --- a/docs/interfaces/IRawField.html +++ b/docs/interfaces/IRawField.html @@ -1,3 +1,3 @@ -IRawField | @tryforge/forgescript
interface IRawField {
    condition?: boolean;
    rest?: boolean;
}

Properties

condition? +IRawField | @tryforge/forgescript
interface IRawField {
    condition?: boolean;
    rest?: boolean;
}

Properties

Properties

condition?: boolean
rest?: boolean

Generated using TypeDoc

\ No newline at end of file +

Properties

condition?: boolean
rest?: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IRawForgeClientOptions.html b/docs/interfaces/IRawForgeClientOptions.html index 84ea3cf9af..2055f5e128 100644 --- a/docs/interfaces/IRawForgeClientOptions.html +++ b/docs/interfaces/IRawForgeClientOptions.html @@ -1,4 +1,4 @@ -IRawForgeClientOptions | @tryforge/forgescript

Interface IRawForgeClientOptions

interface IRawForgeClientOptions {
    allowBots?: boolean;
    allowedMentions?: MessageMentionOptions;
    closeTimeout?: number;
    commands?: string;
    disableConsoleErrors?: boolean;
    enforceNonce?: boolean;
    events?: (keyof ClientEvents)[];
    extensions?: ForgeExtension[];
    failIfNotExists?: boolean;
    functions?: string;
    intents: BitFieldResolvable<"Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls", number>;
    jsonTransformer?: ((obj) => unknown);
    logLevel?: LogPriority;
    makeCache?: CacheFactory;
    mobile?: boolean;
    optionalGuildID?: boolean;
    partials?: readonly Partials[];
    prefixCaseInsensitive?: boolean;
    prefixes?: string[];
    presence?: PresenceData;
    respondOnEdit?: number | boolean;
    rest?: Partial<RESTOptions>;
    restrictions?: IRestrictions;
    shardCount?: number;
    shards?: number | readonly number[] | "auto";
    sweepers?: SweeperOptions;
    token?: string;
    trackers?: ITrackers;
    useInviteSystem?: boolean;
    waitGuildTimeout?: number;
    ws?: WebSocketOptions;
}

Hierarchy

  • ClientOptions
    • IRawForgeClientOptions

Properties

allowBots? +IRawForgeClientOptions | @tryforge/forgescript

Interface IRawForgeClientOptions

interface IRawForgeClientOptions {
    allowBots?: boolean;
    allowedMentions?: MessageMentionOptions;
    closeTimeout?: number;
    commands?: string;
    disableConsoleErrors?: boolean;
    enforceNonce?: boolean;
    events?: (keyof ClientEvents)[];
    extensions?: ForgeExtension[];
    failIfNotExists?: boolean;
    functions?: string;
    intents: BitFieldResolvable<"Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls", number>;
    jsonTransformer?: ((obj) => unknown);
    logLevel?: LogPriority;
    makeCache?: CacheFactory;
    mobile?: boolean;
    optionalGuildID?: boolean;
    partials?: readonly Partials[];
    prefixCaseInsensitive?: boolean;
    prefixes?: string[];
    presence?: PresenceData;
    respondOnEdit?: number | boolean;
    rest?: Partial<RESTOptions>;
    restrictions?: IRestrictions;
    shardCount?: number;
    shards?: number | readonly number[] | "auto";
    sweepers?: SweeperOptions;
    token?: string;
    trackers?: ITrackers;
    useInviteSystem?: boolean;
    waitGuildTimeout?: number;
    ws?: WebSocketOptions;
}

Hierarchy

  • ClientOptions
    • IRawForgeClientOptions

Properties

allowBots?: boolean

Allows the bot to execute events triggered by other bots (and itself)

-
allowedMentions?: MessageMentionOptions
closeTimeout?: number
commands?: string

Specifies a folder (path) to load all commands from it

-
disableConsoleErrors?: boolean
enforceNonce?: boolean
events?: (keyof ClientEvents)[]

The discord.js events our bot will use

-
extensions?: ForgeExtension[]
failIfNotExists?: boolean
functions?: string
intents: BitFieldResolvable<"Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls", number>
jsonTransformer?: ((obj) => unknown)

Type declaration

    • (obj): unknown
    • Parameters

      • obj: unknown

      Returns unknown

logLevel?: LogPriority

Specifies the logs to be received

-
makeCache?: CacheFactory
mobile?: boolean

This will connect the client to Discord with the mobile status

-
optionalGuildID?: boolean

Deprecated

Does not work

-
partials?: readonly Partials[]
prefixCaseInsensitive?: boolean

Whether prefixes should be case-insensitive, this only affects letters

-
prefixes?: string[]

The prefixes our bot will act upon for command messages

-
presence?: PresenceData
respondOnEdit?: number | boolean

Allows the bot to re-use messages that were edited to find possibly command calls. +

allowedMentions?: MessageMentionOptions
closeTimeout?: number
commands?: string

Specifies a folder (path) to load all commands from it

+
disableConsoleErrors?: boolean
enforceNonce?: boolean
events?: (keyof ClientEvents)[]

The discord.js events our bot will use

+
extensions?: ForgeExtension[]
failIfNotExists?: boolean
functions?: string
intents: BitFieldResolvable<"Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls", number>
jsonTransformer?: ((obj) => unknown)

Type declaration

    • (obj): unknown
    • Parameters

      • obj: unknown

      Returns unknown

logLevel?: LogPriority

Specifies the logs to be received

+
makeCache?: CacheFactory
mobile?: boolean

This will connect the client to Discord with the mobile status

+
optionalGuildID?: boolean

Deprecated

Does not work

+
partials?: readonly Partials[]
prefixCaseInsensitive?: boolean

Whether prefixes should be case-insensitive, this only affects letters

+
prefixes?: string[]

The prefixes our bot will act upon for command messages

+
presence?: PresenceData
respondOnEdit?: number | boolean

Allows the bot to re-use messages that were edited to find possibly command calls. If a number is passed, it's treated as the amount of milliseconds that can pass before the message becomes completely unusable.

-
rest?: Partial<RESTOptions>
restrictions?: IRestrictions
shardCount?: number
shards?: number | readonly number[] | "auto"
sweepers?: SweeperOptions
token?: string
trackers?: ITrackers
useInviteSystem?: boolean

Deprecated

use trackers: { invites: true } instead

-
waitGuildTimeout?: number
ws?: WebSocketOptions

Generated using TypeDoc

\ No newline at end of file +
rest?: Partial<RESTOptions>
restrictions?: IRestrictions
shardCount?: number
shards?: number | readonly number[] | "auto"
sweepers?: SweeperOptions
token?: string
trackers?: ITrackers
useInviteSystem?: boolean

Deprecated

use trackers: { invites: true } instead

+
waitGuildTimeout?: number
ws?: WebSocketOptions

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IRawFunction.html b/docs/interfaces/IRawFunction.html index eb6879b8dc..20cb6242cd 100644 --- a/docs/interfaces/IRawFunction.html +++ b/docs/interfaces/IRawFunction.html @@ -1,7 +1,7 @@ -IRawFunction | @tryforge/forgescript

Interface IRawFunction

interface IRawFunction {
    aliases: null | string[];
    args: null | IRawFunctionFieldDefinition;
    name: string;
}

Properties

aliases +IRawFunction | @tryforge/forgescript

Interface IRawFunction

interface IRawFunction {
    aliases: null | string[];
    args: null | IRawFunctionFieldDefinition;
    name: string;
}

Properties

Properties

aliases: null | string[]

If undefined, function has no fields. +

Properties

aliases: null | string[]

If undefined, function has no fields. If present and required true, fields are required. If false, fields are not required.

-
name: string

Generated using TypeDoc

\ No newline at end of file +
name: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IRawFunctionFieldDefinition.html b/docs/interfaces/IRawFunctionFieldDefinition.html index f7ea3b47f6..612da08d8d 100644 --- a/docs/interfaces/IRawFunctionFieldDefinition.html +++ b/docs/interfaces/IRawFunctionFieldDefinition.html @@ -1,3 +1,3 @@ -IRawFunctionFieldDefinition | @tryforge/forgescript

Interface IRawFunctionFieldDefinition

interface IRawFunctionFieldDefinition {
    fields: IRawField[];
    required: boolean;
}

Properties

fields +IRawFunctionFieldDefinition | @tryforge/forgescript

Interface IRawFunctionFieldDefinition

interface IRawFunctionFieldDefinition {
    fields: IRawField[];
    required: boolean;
}

Properties

Properties

fields: IRawField[]
required: boolean

Generated using TypeDoc

\ No newline at end of file +

Properties

fields: IRawField[]
required: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IRawFunctionMatch.html b/docs/interfaces/IRawFunctionMatch.html index 90e1e8525d..dc90e9236e 100644 --- a/docs/interfaces/IRawFunctionMatch.html +++ b/docs/interfaces/IRawFunctionMatch.html @@ -1,7 +1,7 @@ -IRawFunctionMatch | @tryforge/forgescript

Interface IRawFunctionMatch

interface IRawFunctionMatch {
    count: null | string;
    fn: IRawFunction;
    index: number;
    length: number;
    negated: boolean;
    silent: boolean;
}

Properties

count +IRawFunctionMatch | @tryforge/forgescript

Interface IRawFunctionMatch

interface IRawFunctionMatch {
    count: null | string;
    fn: IRawFunction;
    index: number;
    length: number;
    negated: boolean;
    silent: boolean;
}

Properties

count: null | string
index: number
length: number
negated: boolean
silent: boolean

Generated using TypeDoc

\ No newline at end of file +

Properties

count: null | string
index: number
length: number
negated: boolean
silent: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IRestrictions.html b/docs/interfaces/IRestrictions.html index 1ef15336fc..e3a5cb7ce2 100644 --- a/docs/interfaces/IRestrictions.html +++ b/docs/interfaces/IRestrictions.html @@ -1,3 +1,3 @@ -IRestrictions | @tryforge/forgescript

Interface IRestrictions

interface IRestrictions {
    guildIDs?: string[];
    userIDs?: string[];
}

Properties

guildIDs? +IRestrictions | @tryforge/forgescript

Interface IRestrictions

interface IRestrictions {
    guildIDs?: string[];
    userIDs?: string[];
}

Properties

Properties

guildIDs?: string[]
userIDs?: string[]

Generated using TypeDoc

\ No newline at end of file +

Properties

guildIDs?: string[]
userIDs?: string[]

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IRunnable.html b/docs/interfaces/IRunnable.html index cfde953888..dacbe309ce 100644 --- a/docs/interfaces/IRunnable.html +++ b/docs/interfaces/IRunnable.html @@ -1,4 +1,4 @@ -IRunnable | @tryforge/forgescript
interface IRunnable {
    allowTopLevelReturn?: boolean;
    args?: string[];
    client: ForgeClient;
    command: null | BaseCommand<unknown>;
    container?: Container;
    data: IExtendedCompilationResult;
    disableConsoleErrors?: boolean;
    doNotSend?: boolean;
    environment?: Record<string, unknown>;
    extras?: unknown;
    keywords?: Record<string, string>;
    obj: Sendable;
    redirectErrorsToConsole?: boolean;
    states?: States;
}

Properties

allowTopLevelReturn? +IRunnable | @tryforge/forgescript
interface IRunnable {
    allowTopLevelReturn?: boolean;
    args?: string[];
    client: ForgeClient;
    command: null | BaseCommand<unknown>;
    container?: Container;
    data: IExtendedCompilationResult;
    disableConsoleErrors?: boolean;
    doNotSend?: boolean;
    environment?: Record<string, unknown>;
    extras?: unknown;
    keywords?: Record<string, string>;
    obj: Sendable;
    redirectErrorsToConsole?: boolean;
    states?: States;
}

Properties

allowTopLevelReturn?: boolean
args?: string[]

The args used in the message command

-
client: ForgeClient

The available discord client

-
command: null | BaseCommand<unknown>

The command used for this execution

-
container?: Container

The container reference to use

-

The compiled data to execute

-
disableConsoleErrors?: boolean

Removes errors output to console

-
doNotSend?: boolean

Whether to suppress sending the response to discord.

-
environment?: Record<string, unknown>

The already existing env variables

-
extras?: unknown

Extras data

-
keywords?: Record<string, string>

The already existing variables defined with $let

-

The context this code will run in

-
redirectErrorsToConsole?: boolean

Whether to suppress errors from being sent to discord, and be sent to console instead

-
states?: States

The old and new states of an event

-

Generated using TypeDoc

\ No newline at end of file +

Properties

allowTopLevelReturn?: boolean
args?: string[]

The args used in the message command

+
client: ForgeClient

The available discord client

+
command: null | BaseCommand<unknown>

The command used for this execution

+
container?: Container

The container reference to use

+

The compiled data to execute

+
disableConsoleErrors?: boolean

Removes errors output to console

+
doNotSend?: boolean

Whether to suppress sending the response to discord.

+
environment?: Record<string, unknown>

The already existing env variables

+
extras?: unknown

Extras data

+
keywords?: Record<string, string>

The already existing variables defined with $let

+

The context this code will run in

+
redirectErrorsToConsole?: boolean

Whether to suppress errors from being sent to discord, and be sent to console instead

+
states?: States

The old and new states of an event

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IStates.html b/docs/interfaces/IStates.html index e557ede697..5897abdbd3 100644 --- a/docs/interfaces/IStates.html +++ b/docs/interfaces/IStates.html @@ -1,4 +1,4 @@ -IStates | @tryforge/forgescript
interface IStates {
    audit: GuildAuditLogsEntry<AuditLogEvent, "Update" | "Create" | "Delete" | "All", "Unknown" | "User" | "Guild" | "Invite" | "Emoji" | "Message" | "Channel" | "Role" | "Webhook" | "Sticker" | "StageInstance" | "SoundboardSound" | "Integration" | "GuildScheduledEvent" | "Thread" | "ApplicationCommand" | "AutoModeration" | "GuildOnboardingPrompt" | "GuildOnboarding">;
    automodRule: AutoModerationRule;
    ban: GuildBan;
    bulk: (Message<boolean> | PartialMessage)[];
    channel: Channel;
    emoji: GuildEmoji;
    entitlement: Entitlement;
    guild: Guild;
    invite: Invite;
    member: GuildMember;
    message: Message<boolean>;
    poll: PollAnswer;
    presence: Presence;
    role: Role;
    scheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus>;
    soundboardSound: SoundboardSound | PartialSoundboardSound;
    stage: StageInstance;
    sticker: Sticker;
    user: User;
    voiceEffect: VoiceChannelEffect;
    voiceState: VoiceState;
}

Properties

audit +IStates | @tryforge/forgescript
interface IStates {
    audit: GuildAuditLogsEntry<AuditLogEvent, "Update" | "Create" | "Delete" | "All", "Unknown" | "User" | "Guild" | "Invite" | "Emoji" | "Message" | "Channel" | "Role" | "Webhook" | "Sticker" | "StageInstance" | "SoundboardSound" | "Integration" | "GuildScheduledEvent" | "Thread" | "ApplicationCommand" | "AutoModeration" | "GuildOnboardingPrompt" | "GuildOnboarding">;
    automodRule: AutoModerationRule;
    ban: GuildBan;
    bulk: (Message<boolean> | PartialMessage)[];
    channel: Channel;
    emoji: GuildEmoji;
    entitlement: Entitlement;
    guild: Guild;
    invite: Invite;
    member: GuildMember;
    message: Message<boolean>;
    poll: PollAnswer;
    presence: Presence;
    role: Role;
    scheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus>;
    soundboardSound: SoundboardSound | PartialSoundboardSound;
    stage: StageInstance;
    sticker: Sticker;
    subscription: Subscription;
    user: User;
    voiceEffect: VoiceChannelEffect;
    voiceState: VoiceState;
}

Properties

audit: GuildAuditLogsEntry<AuditLogEvent, "Update" | "Create" | "Delete" | "All", "Unknown" | "User" | "Guild" | "Invite" | "Emoji" | "Message" | "Channel" | "Role" | "Webhook" | "Sticker" | "StageInstance" | "SoundboardSound" | "Integration" | "GuildScheduledEvent" | "Thread" | "ApplicationCommand" | "AutoModeration" | "GuildOnboardingPrompt" | "GuildOnboarding">
automodRule: AutoModerationRule
ban: GuildBan
bulk: (Message<boolean> | PartialMessage)[]
channel: Channel
emoji: GuildEmoji
entitlement: Entitlement
guild: Guild
invite: Invite
member: GuildMember
message: Message<boolean>
poll: PollAnswer
presence: Presence
role: Role
scheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus>
soundboardSound: SoundboardSound | PartialSoundboardSound
stage: StageInstance
sticker: Sticker
user: User
voiceEffect: VoiceChannelEffect
voiceState: VoiceState

Generated using TypeDoc

\ No newline at end of file +

Properties

audit: GuildAuditLogsEntry<AuditLogEvent, "Update" | "Create" | "Delete" | "All", "Unknown" | "User" | "Guild" | "Invite" | "Emoji" | "Message" | "Channel" | "Role" | "Webhook" | "Sticker" | "StageInstance" | "SoundboardSound" | "Integration" | "GuildScheduledEvent" | "Thread" | "ApplicationCommand" | "AutoModeration" | "GuildOnboardingPrompt" | "GuildOnboarding">
automodRule: AutoModerationRule
ban: GuildBan
bulk: (Message<boolean> | PartialMessage)[]
channel: Channel
emoji: GuildEmoji
entitlement: Entitlement
guild: Guild
invite: Invite
member: GuildMember
message: Message<boolean>
poll: PollAnswer
presence: Presence
role: Role
scheduledEvent: GuildScheduledEvent<GuildScheduledEventStatus>
soundboardSound: SoundboardSound | PartialSoundboardSound
stage: StageInstance
sticker: Sticker
subscription: Subscription
user: User
voiceEffect: VoiceChannelEffect
voiceState: VoiceState

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IThreadContext.html b/docs/interfaces/IThreadContext.html index 7477d8cf75..ab9ef95e9f 100644 --- a/docs/interfaces/IThreadContext.html +++ b/docs/interfaces/IThreadContext.html @@ -1,4 +1,4 @@ -IThreadContext | @tryforge/forgescript

Interface IThreadContext

interface IThreadContext {
    code: string;
    environment?: Record<string, unknown>;
    keywords?: Record<string, string>;
}

Properties

code +IThreadContext | @tryforge/forgescript

Interface IThreadContext

interface IThreadContext {
    code: string;
    environment?: Record<string, unknown>;
    keywords?: Record<string, string>;
}

Properties

code: string
environment?: Record<string, unknown>
keywords?: Record<string, string>

Generated using TypeDoc

\ No newline at end of file +

Properties

code: string
environment?: Record<string, unknown>
keywords?: Record<string, string>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IThreadResult.html b/docs/interfaces/IThreadResult.html index 4111c15c50..8ac43cd5a1 100644 --- a/docs/interfaces/IThreadResult.html +++ b/docs/interfaces/IThreadResult.html @@ -1,3 +1,3 @@ -IThreadResult | @tryforge/forgescript

Interface IThreadResult

interface IThreadResult {
    taskId: number;
    value: null | string;
}

Properties

taskId +IThreadResult | @tryforge/forgescript

Interface IThreadResult

interface IThreadResult {
    taskId: number;
    value: null | string;
}

Properties

Properties

taskId: number
value: null | string

Generated using TypeDoc

\ No newline at end of file +

Properties

taskId: number
value: null | string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/IThreadTask.html b/docs/interfaces/IThreadTask.html index f42592d9dd..ceec9d916e 100644 --- a/docs/interfaces/IThreadTask.html +++ b/docs/interfaces/IThreadTask.html @@ -1,4 +1,4 @@ -IThreadTask | @tryforge/forgescript
interface IThreadTask {
    context: IThreadContext;
    id: number;
    resolve: ((res) => void);
}

Properties

context +IThreadTask | @tryforge/forgescript
interface IThreadTask {
    context: IThreadContext;
    id: number;
    resolve: ((res) => void);
}

Properties

Properties

id: number
resolve: ((res) => void)

Type declaration

    • (res): void
    • Parameters

      • res: null | string

      Returns void

Generated using TypeDoc

\ No newline at end of file +

Properties

id: number
resolve: ((res) => void)

Type declaration

    • (res): void
    • Parameters

      • res: null | string

      Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ITrackers.html b/docs/interfaces/ITrackers.html index 927cdca17e..6d010f49e4 100644 --- a/docs/interfaces/ITrackers.html +++ b/docs/interfaces/ITrackers.html @@ -1,3 +1,3 @@ -ITrackers | @tryforge/forgescript
interface ITrackers {
    invites?: boolean;
    voice?: boolean;
}

Properties

invites? +ITrackers | @tryforge/forgescript
interface ITrackers {
    invites?: boolean;
    voice?: boolean;
}

Properties

Properties

invites?: boolean
voice?: boolean

Generated using TypeDoc

\ No newline at end of file +

Properties

invites?: boolean
voice?: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/AssertArgs.html b/docs/types/AssertArgs.html index cb5c8de113..a353ed01bd 100644 --- a/docs/types/AssertArgs.html +++ b/docs/types/AssertArgs.html @@ -1 +1 @@ -AssertArgs | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +AssertArgs | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/ClassInstance.html b/docs/types/ClassInstance.html index efdf7fb8a6..2eda35717e 100644 --- a/docs/types/ClassInstance.html +++ b/docs/types/ClassInstance.html @@ -1 +1 @@ -ClassInstance | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +ClassInstance | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/ClassType.html b/docs/types/ClassType.html index 20985afcaa..c185e06a7f 100644 --- a/docs/types/ClassType.html +++ b/docs/types/ClassType.html @@ -1 +1 @@ -ClassType | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +ClassType | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/CommandInteractionTypes.html b/docs/types/CommandInteractionTypes.html index a75c204e2a..e142ee46da 100644 --- a/docs/types/CommandInteractionTypes.html +++ b/docs/types/CommandInteractionTypes.html @@ -1 +1 @@ -CommandInteractionTypes | @tryforge/forgescript

Type alias CommandInteractionTypes

CommandInteractionTypes: "button" | "modal" | "slashCommand" | "autocomplete" | "contextMenu" | "selectMenu" | "activityCommand"

Generated using TypeDoc

\ No newline at end of file +CommandInteractionTypes | @tryforge/forgescript

Type alias CommandInteractionTypes

CommandInteractionTypes: "button" | "modal" | "slashCommand" | "autocomplete" | "contextMenu" | "selectMenu" | "activityCommand"

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/CommandType.html b/docs/types/CommandType.html index 19faa901a1..dc7ffe94b8 100644 --- a/docs/types/CommandType.html +++ b/docs/types/CommandType.html @@ -1 +1 @@ -CommandType | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +CommandType | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/EnumLike.html b/docs/types/EnumLike.html index b1b1ecd10b..cc9684213c 100644 --- a/docs/types/EnumLike.html +++ b/docs/types/EnumLike.html @@ -1 +1 @@ -EnumLike | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +EnumLike | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/ExpectCallback.html b/docs/types/ExpectCallback.html index e5b4378cff..f31e3b1e52 100644 --- a/docs/types/ExpectCallback.html +++ b/docs/types/ExpectCallback.html @@ -1 +1 @@ -ExpectCallback | @tryforge/forgescript

Type alias ExpectCallback<T, Unwrap>

ExpectCallback<T, Unwrap>: ((args) => Promise<Return> | Return)

Type Parameters

  • T extends [...IArg[]]

  • Unwrap extends boolean

Type declaration

Generated using TypeDoc

\ No newline at end of file +ExpectCallback | @tryforge/forgescript

Type alias ExpectCallback<T, Unwrap>

ExpectCallback<T, Unwrap>: ((args) => Promise<Return> | Return)

Type Parameters

  • T extends [...IArg[]]

  • Unwrap extends boolean

Type declaration

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/FilterProperties.html b/docs/types/FilterProperties.html index 9bab6c12ab..eebcb97ee4 100644 --- a/docs/types/FilterProperties.html +++ b/docs/types/FilterProperties.html @@ -1 +1 @@ -FilterProperties | @tryforge/forgescript

Type alias FilterProperties<T>

FilterProperties<T>: {
    [P in keyof T as T[P] extends ((...args) => any)
        ? never
        : P]: T[P]
}

Type Parameters

  • T

Generated using TypeDoc

\ No newline at end of file +FilterProperties | @tryforge/forgescript

Type alias FilterProperties<T>

FilterProperties<T>: {
    [P in keyof T as T[P] extends ((...args) => any)
        ? never
        : P]: T[P]
}

Type Parameters

  • T

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/GetArgType.html b/docs/types/GetArgType.html index abac7d5c5a..4622796297 100644 --- a/docs/types/GetArgType.html +++ b/docs/types/GetArgType.html @@ -1 +1 @@ -GetArgType | @tryforge/forgescript

Type alias GetArgType<T, Enum>

GetArgType<T, Enum>: T extends Number
    ? number
    : T extends String
        ? string
        : T extends User
            ? User
            : T extends URL
                ? string
                : T extends Json
                    ? Record<string, unknown>
                    : T extends RoleOrUser
                        ? Role | User
                        : T extends Guild
                            ? Guild
                            : T extends Color
                                ? number
                                : T extends Role
                                    ? Role
                                    : T extends TextChannel
                                        ? TextBasedChannel
                                        : T extends Attachment
                                            ? AttachmentBuilder
                                            : T extends BigInt
                                                ? bigint
                                                : T extends Unknown
                                                    ? unknown
                                                    : T extends Boolean
                                                        ? boolean
                                                        : T extends Date
                                                            ? Date
                                                            : T extends Enum
                                                                ? GetEnum<Enum>
                                                                : T extends Channel
                                                                    ? BaseChannel
                                                                    : T extends Message
                                                                        ? Message<true>
                                                                        : T extends Member
                                                                            ? GuildMember
                                                                            : T extends GuildEmoji
                                                                                ? GuildEmoji
                                                                                : T extends ApplicationEmoji
                                                                                    ? ApplicationEmoji
                                                                                    : T extends OverwritePermission
                                                                                        ? OverwritePermission
                                                                                        : T extends Sticker
                                                                                            ? Sticker
                                                                                            : T extends Reaction
                                                                                                ? MessageReaction
                                                                                                : T extends Webhook
                                                                                                    ? Webhook
                                                                                                    : T extends Invite
                                                                                                        ? Invite
                                                                                                        : T extends ForumTag
                                                                                                            ? GuildForumTag
                                                                                                            : T extends Time
                                                                                                                ? number
                                                                                                                : T extends Permission
                                                                                                                    ? PermissionsString
                                                                                                                    : T extends Emoji
                                                                                                                        ? Emoji
                                                                                                                        : T extends AutomodRule
                                                                                                                            ? AutoModerationRule
                                                                                                                            : T extends ScheduledEvent
                                                                                                                                ? GuildScheduledEvent
                                                                                                                                : T extends StageInstance
                                                                                                                                    ? StageInstance
                                                                                                                                    : T extends SoundboardSound
                                                                                                                                        ? SoundboardSound
                                                                                                                                        : T extends Template
                                                                                                                                            ? GuildTemplate
                                                                                                                                            : null

Type Parameters

Generated using TypeDoc

\ No newline at end of file +GetArgType | @tryforge/forgescript

Type alias GetArgType<T, Enum>

GetArgType<T, Enum>: T extends Number
    ? number
    : T extends String
        ? string
        : T extends User
            ? User
            : T extends URL
                ? string
                : T extends Json
                    ? Record<string, unknown>
                    : T extends RoleOrUser
                        ? Role | User
                        : T extends Guild
                            ? Guild
                            : T extends Color
                                ? number
                                : T extends Role
                                    ? Role
                                    : T extends TextChannel
                                        ? TextBasedChannel
                                        : T extends Attachment
                                            ? AttachmentBuilder
                                            : T extends BigInt
                                                ? bigint
                                                : T extends Unknown
                                                    ? unknown
                                                    : T extends Boolean
                                                        ? boolean
                                                        : T extends Date
                                                            ? Date
                                                            : T extends Enum
                                                                ? GetEnum<Enum>
                                                                : T extends Channel
                                                                    ? BaseChannel
                                                                    : T extends Message
                                                                        ? Message<true>
                                                                        : T extends Member
                                                                            ? GuildMember
                                                                            : T extends GuildEmoji
                                                                                ? GuildEmoji
                                                                                : T extends ApplicationEmoji
                                                                                    ? ApplicationEmoji
                                                                                    : T extends OverwritePermission
                                                                                        ? OverwritePermission
                                                                                        : T extends Sticker
                                                                                            ? Sticker
                                                                                            : T extends Reaction
                                                                                                ? MessageReaction
                                                                                                : T extends Webhook
                                                                                                    ? Webhook
                                                                                                    : T extends Invite
                                                                                                        ? Invite
                                                                                                        : T extends ForumTag
                                                                                                            ? GuildForumTag
                                                                                                            : T extends Time
                                                                                                                ? number
                                                                                                                : T extends Permission
                                                                                                                    ? PermissionsString
                                                                                                                    : T extends Emoji
                                                                                                                        ? Emoji
                                                                                                                        : T extends AutomodRule
                                                                                                                            ? AutoModerationRule
                                                                                                                            : T extends ScheduledEvent
                                                                                                                                ? GuildScheduledEvent
                                                                                                                                : T extends StageInstance
                                                                                                                                    ? StageInstance
                                                                                                                                    : T extends SoundboardSound
                                                                                                                                        ? SoundboardSound
                                                                                                                                        : T extends Template
                                                                                                                                            ? GuildTemplate
                                                                                                                                            : null

Type Parameters

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/GetEnum.html b/docs/types/GetEnum.html index f6d21cd516..2e9b516497 100644 --- a/docs/types/GetEnum.html +++ b/docs/types/GetEnum.html @@ -1 +1 @@ -GetEnum | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +GetEnum | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/GetErrorArgs.html b/docs/types/GetErrorArgs.html index ae7f3c6652..d0650f9bb0 100644 --- a/docs/types/GetErrorArgs.html +++ b/docs/types/GetErrorArgs.html @@ -1 +1 @@ -GetErrorArgs | @tryforge/forgescript

Type alias GetErrorArgs<T>

GetErrorArgs<T>: T extends `${infer L}$${infer R}`
    ? [unknown, ...GetErrorArgs<R>]
    : []

Type Parameters

  • T extends string

Generated using TypeDoc

\ No newline at end of file +GetErrorArgs | @tryforge/forgescript

Type alias GetErrorArgs<T>

GetErrorArgs<T>: T extends `${infer L}$${infer R}`
    ? [unknown, ...GetErrorArgs<R>]
    : []

Type Parameters

  • T extends string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/MarkNullable.html b/docs/types/MarkNullable.html index a93100fa9c..92deaba66c 100644 --- a/docs/types/MarkNullable.html +++ b/docs/types/MarkNullable.html @@ -1 +1 @@ -MarkNullable | @tryforge/forgescript

Type alias MarkNullable<T, Req, Rest>

MarkNullable<T, Req, Rest>: Rest extends true
    ? T
    : Req extends true
        ? T
        : T | null

Type Parameters

  • T

  • Req extends boolean

  • Rest extends boolean = boolean

Generated using TypeDoc

\ No newline at end of file +MarkNullable | @tryforge/forgescript

Type alias MarkNullable<T, Req, Rest>

MarkNullable<T, Req, Rest>: Rest extends true
    ? T
    : Req extends true
        ? T
        : T | null

Type Parameters

  • T

  • Req extends boolean

  • Rest extends boolean = boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/MarkRest.html b/docs/types/MarkRest.html index 38ee5d8b70..78bdefa58e 100644 --- a/docs/types/MarkRest.html +++ b/docs/types/MarkRest.html @@ -1 +1 @@ -MarkRest | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +MarkRest | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/NativeFunctionExecutor.html b/docs/types/NativeFunctionExecutor.html index 3c4f28103a..2b816db4bb 100644 --- a/docs/types/NativeFunctionExecutor.html +++ b/docs/types/NativeFunctionExecutor.html @@ -1 +1 @@ -NativeFunctionExecutor | @tryforge/forgescript

Type alias NativeFunctionExecutor<T, Unwrap>

NativeFunctionExecutor<T, Unwrap>: Unwrap extends true
    ? ((this, ctx, args) => Promise<Return> | Return)
    : ((this, ctx) => Promise<Return> | Return)

Type Parameters

  • T extends [...IArg[]]

  • Unwrap extends boolean = boolean

Generated using TypeDoc

\ No newline at end of file +NativeFunctionExecutor | @tryforge/forgescript

Type alias NativeFunctionExecutor<T, Unwrap>

NativeFunctionExecutor<T, Unwrap>: Unwrap extends true
    ? ((this, ctx, args) => Promise<Return> | Return)
    : ((this, ctx) => Promise<Return> | Return)

Type Parameters

  • T extends [...IArg[]]

  • Unwrap extends boolean = boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/OverwritePermission.html b/docs/types/OverwritePermission.html index 28e60ece60..7f18fc71e6 100644 --- a/docs/types/OverwritePermission.html +++ b/docs/types/OverwritePermission.html @@ -1 +1 @@ -OverwritePermission | @tryforge/forgescript

Type alias OverwritePermission

OverwritePermission: {
    permission: PermissionsString;
    value: null | boolean;
}

Type declaration

  • permission: PermissionsString
  • value: null | boolean

Generated using TypeDoc

\ No newline at end of file +OverwritePermission | @tryforge/forgescript

Type alias OverwritePermission

OverwritePermission: {
    permission: PermissionsString;
    value: null | boolean;
}

Type declaration

  • permission: PermissionsString
  • value: null | boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/RawExecutableCode.html b/docs/types/RawExecutableCode.html index d8a8787e3c..6b34f91438 100644 --- a/docs/types/RawExecutableCode.html +++ b/docs/types/RawExecutableCode.html @@ -1 +1 @@ -RawExecutableCode | @tryforge/forgescript

Type alias RawExecutableCode

RawExecutableCode: ((ctx) => Promise<unknown[] | null>)

Type declaration

    • (ctx): Promise<unknown[] | null>
    • Parameters

      Returns Promise<unknown[] | null>

Generated using TypeDoc

\ No newline at end of file +RawExecutableCode | @tryforge/forgescript

Type alias RawExecutableCode

RawExecutableCode: ((ctx) => Promise<unknown[] | null>)

Type declaration

    • (ctx): Promise<unknown[] | null>
    • Parameters

      Returns Promise<unknown[] | null>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/RecursiveArray.html b/docs/types/RecursiveArray.html index 9464b162db..759f643c57 100644 --- a/docs/types/RecursiveArray.html +++ b/docs/types/RecursiveArray.html @@ -1 +1 @@ -RecursiveArray | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file +RecursiveArray | @tryforge/forgescript

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/ReturnValue.html b/docs/types/ReturnValue.html index 172cf2075b..d6416c4f6d 100644 --- a/docs/types/ReturnValue.html +++ b/docs/types/ReturnValue.html @@ -1 +1 @@ -ReturnValue | @tryforge/forgescript

Type alias ReturnValue<T>

ReturnValue<T>: T extends Error
    ? ForgeError
    : T extends Return
        ? string
        : T extends Success
            ? unknown
            : T extends Stop | Break | Continue
                ? null
                : never

Type Parameters

Generated using TypeDoc

\ No newline at end of file +ReturnValue | @tryforge/forgescript

Type alias ReturnValue<T>

ReturnValue<T>: T extends Error
    ? ForgeError
    : T extends Return
        ? string
        : T extends Success
            ? unknown
            : T extends Stop | Break | Continue
                ? null
                : never

Type Parameters

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/Sendable.html b/docs/types/Sendable.html index 06ed222632..25d182f0ff 100644 --- a/docs/types/Sendable.html +++ b/docs/types/Sendable.html @@ -1 +1 @@ -Sendable | @tryforge/forgescript
Sendable: {} | Sticker | GuildScheduledEvent | Role | Presence | Message | User | GuildMember | BaseChannel | Interaction | VoiceState | WebhookClient | GuildEmoji | Guild | MessageReaction | Invite | AutoModerationActionExecution | SoundboardSound

Type declaration

    Generated using TypeDoc

    \ No newline at end of file +Sendable | @tryforge/forgescript
    Sendable: {} | Sticker | GuildScheduledEvent | Role | Presence | Message | User | GuildMember | BaseChannel | Interaction | VoiceState | WebhookClient | GuildEmoji | Guild | MessageReaction | Invite | AutoModerationActionExecution | SoundboardSound | Emoji | ApplicationEmoji

    Type declaration

      Generated using TypeDoc

      \ No newline at end of file diff --git a/docs/types/States.html b/docs/types/States.html index 311952795f..1f7b3166de 100644 --- a/docs/types/States.html +++ b/docs/types/States.html @@ -1 +1 @@ -States | @tryforge/forgescript
      States: {
          [K in keyof IStates]?: {
              new?: IStates[K] | null;
              old?: IStates[K] | null;
          }
      }

      Generated using TypeDoc

      \ No newline at end of file +States | @tryforge/forgescript
      States: {
          [K in keyof IStates]?: {
              new?: IStates[K] | null;
              old?: IStates[K] | null;
          }
      }

      Generated using TypeDoc

      \ No newline at end of file diff --git a/docs/types/UnwrapArg.html b/docs/types/UnwrapArg.html index ef3bcadf38..ddb6711593 100644 --- a/docs/types/UnwrapArg.html +++ b/docs/types/UnwrapArg.html @@ -1 +1 @@ -UnwrapArg | @tryforge/forgescript

      Type alias UnwrapArg<T>

      UnwrapArg<T>: T extends IArg<infer Type, infer Required, infer Rest, infer Enum>
          ? MarkRest<MarkNullable<GetArgType<Type, Enum>, Required, Rest>, Rest>
          : never

      Type Parameters

      • T

      Generated using TypeDoc

      \ No newline at end of file +UnwrapArg | @tryforge/forgescript

      Type alias UnwrapArg<T>

      UnwrapArg<T>: T extends IArg<infer Type, infer Required, infer Rest, infer Enum>
          ? MarkRest<MarkNullable<GetArgType<Type, Enum>, Required, Rest>, Rest>
          : never

      Type Parameters

      • T

      Generated using TypeDoc

      \ No newline at end of file diff --git a/docs/types/UnwrapArgs.html b/docs/types/UnwrapArgs.html index 36300deca4..2de9d555f7 100644 --- a/docs/types/UnwrapArgs.html +++ b/docs/types/UnwrapArgs.html @@ -1 +1 @@ -UnwrapArgs | @tryforge/forgescript

      Generated using TypeDoc

      \ No newline at end of file +UnwrapArgs | @tryforge/forgescript

      Generated using TypeDoc

      \ No newline at end of file diff --git a/docs/types/WrappedCode.html b/docs/types/WrappedCode.html index ff94db9bda..72addd6051 100644 --- a/docs/types/WrappedCode.html +++ b/docs/types/WrappedCode.html @@ -1 +1 @@ -WrappedCode | @tryforge/forgescript

      Generated using TypeDoc

      \ No newline at end of file +WrappedCode | @tryforge/forgescript

      Generated using TypeDoc

      \ No newline at end of file diff --git a/docs/types/WrappedConditionCode.html b/docs/types/WrappedConditionCode.html index 116f09527b..2bde75fddf 100644 --- a/docs/types/WrappedConditionCode.html +++ b/docs/types/WrappedConditionCode.html @@ -1 +1 @@ -WrappedConditionCode | @tryforge/forgescript

      Type alias WrappedConditionCode

      WrappedConditionCode: ((lhs, rhs) => boolean)

      Type declaration

        • (lhs, rhs): boolean
        • Parameters

          • lhs: unknown
          • rhs: unknown

          Returns boolean

      Generated using TypeDoc

      \ No newline at end of file +WrappedConditionCode | @tryforge/forgescript

      Type alias WrappedConditionCode

      WrappedConditionCode: ((lhs, rhs) => boolean)

      Type declaration

        • (lhs, rhs): boolean
        • Parameters

          • lhs: unknown
          • rhs: unknown

          Returns boolean

      Generated using TypeDoc

      \ No newline at end of file diff --git a/docs/variables/Conditions.html b/docs/variables/Conditions.html index 0951cd2da9..efc62c8045 100644 --- a/docs/variables/Conditions.html +++ b/docs/variables/Conditions.html @@ -1 +1 @@ -Conditions | @tryforge/forgescript

      Generated using TypeDoc

      \ No newline at end of file +Conditions | @tryforge/forgescript

      Generated using TypeDoc

      \ No newline at end of file diff --git a/docs/variables/NativeEventName.html b/docs/variables/NativeEventName.html index 50a19518f7..35d2fb9b53 100644 --- a/docs/variables/NativeEventName.html +++ b/docs/variables/NativeEventName.html @@ -1 +1 @@ -NativeEventName | @tryforge/forgescript

      Generated using TypeDoc

      \ No newline at end of file +NativeEventName | @tryforge/forgescript

      Generated using TypeDoc

      \ No newline at end of file diff --git a/docs/variables/Operators.html b/docs/variables/Operators.html index bbce5c6a5f..a9e63af0f8 100644 --- a/docs/variables/Operators.html +++ b/docs/variables/Operators.html @@ -1 +1 @@ -Operators | @tryforge/forgescript

      Generated using TypeDoc

      \ No newline at end of file +Operators | @tryforge/forgescript

      Generated using TypeDoc

      \ No newline at end of file diff --git a/metadata/changelogs.json b/metadata/changelogs.json index 872c198373..abf6384f99 100644 --- a/metadata/changelogs.json +++ b/metadata/changelogs.json @@ -1 +1 @@ -{"1.2.0":[{"message":"Added URL arg type"},{"message":"Fixed updateApplicationCommands partially working"},{"message":"Added updateApplicationCommands"},{"message":"Changed all functions internally to adapt to the new negation operator"},{"message":"Move negation operator to the beginning of function"},{"message":"make executionTime more accurate"},{"message":"added parseInt"},{"message":"Fixed findUser crash"},{"message":"Fixed some grammar errors in docs by Nicky"},{"message":"added ifx function allows blocks of statements"},{"message":"Fixed lastMessageID returning content instead of id"},{"message":"Return no longer requires brackets"},{"message":"Fixed commandInfo"},{"message":"Added allowedInteractionTypes property to commands and the name property now works for interactions"},{"message":"Speeded up interpreter performance"},{"message":"Added negation operator to cancel output of functions"},{"message":"Added deleteCommand"},{"message":"Fixed successJSON and successFormatted"},{"message":"Add line:column to parser errors"},{"message":"Deleted changelogs folder"},{"message":"Moved json files to metadata folder"},{"message":"Added color strings back"},{"message":"Renamed loadJSON = jsonLoad"},{"message":"Added jsonSet"},{"message":"Reordered fields in botOwnerID default to the owner id"},{"message":"Added reason field to createInvite"},{"message":"Fixed botOwnerID and extended its functionality"},{"message":"Added missing reference to ThreadManager.ts"},{"message":"Make httpRequest last field optional and added httpResult [shortcut for env]"},{"message":"Fixed small typo in a log given by FunctionManager#load"},{"message":"Added color functions and new arg type"},{"message":"Added autoModerationActionExecution event and a few functions for it"},{"message":"Added titleURL to embed properties"},{"message":"Added hasExtension"},{"message":"Fixed embed properties and added color and authorURL to it"},{"message":"Added a handful of functions"},{"message":"Renamed runInThread => coroutine"},{"message":"Added lastMessageID"},{"message":"Fix docgen not generating functions"},{"message":"Added interactionFollowUp"},{"message":"Implemented feature for code threading (experimental)"},{"message":"Add error for invalid flags in changelog gen"},{"message":"Make json instead of txt for changelogs"}],"1.3.0":[{"message":"Added mobile option to client"},{"message":"Added $addRoleSelectMenu"},{"message":"added $sliceText and $messageSlice"},{"message":"Added a lot of missing guild and role functions"},{"message":"added $arrayPushJSON and unshift variants"},{"message":"Added $guildChannelIDs and $guildRoleIDs"},{"message":"Added $hyperlink"},{"message":"Added $mentionedXCount"},{"message":"Added command path to compilation errors, fixed some path joins"},{"message":"Added ability to disable unneccesary functions"},{"message":"Improved description of $isValidHex and $isValidLink"},{"message":"Added 2 new properties to extension class (requireExtensions and targetVersions)"},{"message":"Added $isValidHex"},{"message":"Some interpreter optimizations were applied, attempt to fix stickers issue with $editMessage and added $deferUpdate"},{"message":"Added formatting functions"},{"message":"Fixed $stickers indexing and added $sticker (sticker support for responses)"},{"message":"Added $ordinal"},{"message":"Added $enableUserMentions, $enableRoleMentions, $disableEveryoneMention and $disableAllMentions"},{"message":"Added $disableUserMentions, $disableRoleMentions, $nomention and a new field to $reply"},{"message":"Added $disableUserMentions, $disableRoleMentions, $nomention and a new field to $reply"},{"message":"Added bigint functions, and some shorthand functions for $let"},{"message":"Added better logging to ForgeScript core, also implemented api as a function"},{"message":"Fixed negation operator for functions with fields"},{"message":"Functions are now case insensitive, improved commit.ts"},{"message":"Added case insensitive functions, improved commit.ts"},{"message":"Please write the commit message:"},{"message":"Please write the commit message:"},{"message":"Bump ForgeScript version"}],"1.4.0":[{"message":"$arrayLoad now allows loading without values"},{"message":"Fixed $isSlashCommand and slashCommand int type"},{"message":"Fixed guild functions"},{"message":"$option now returns attachment urls"},{"message":"interactionCreate events now forward app commands, might become a breaking change for some (?),"},{"message":"Fixed $guildRulesChannelID"},{"message":"Added more time units"},{"message":"Added $discordTimestamp"},{"message":"Fixed some component functions, added $isJSON"},{"message":"Added $userIDs"},{"message":"Added some more funcs"},{"message":"Added some funcs"},{"message":"Added $voiceMove"},{"message":"Added some new functions"},{"message":"Nothing much"},{"message":"Tried a fix for ephemeral messages not being recognized"},{"message":"Added emoji property to component"},{"message":"Added some aliases and functions"},{"message":"Added $transcript, $guildChannelID, $getComponent and $loadComponent"},{"message":"Removed old compiler."},{"message":"Added $splitTextJoin and $reply now mentions by default"},{"message":"Added registration type to application commands"},{"message":"Added $findMembers"},{"message":"Added $hasAnyPerms"},{"message":"Fixed $guildNSFWLevel"},{"message":"Change $commandInfo's last field."},{"message":"Prefixes no longer sensitive"},{"message":"Fixed no ping behavior"},{"message":"Small typo"},{"message":"Added Arg class for ease of arg creation"},{"message":"Fixed $awaitComponent throwing error regardless of error disabled"},{"message":"Fixed interactionReply 2nd field, fixed $disableConsoleErrors"},{"message":"Added index to parsed functions"},{"message":"Added event emitter to command manager"},{"message":"Added new option to client and command to disable errors"},{"message":"feat: add $userID as alias to $authorID"},{"message":"Added more await functions, added $showModal"},{"message":"Fixed some file funcs"},{"message":"Added more file functions"},{"message":"Added more file functions"},{"message":"Added form data support to http"},{"message":"Added BaseCommandManager#toArray"},{"message":"Added a lot of sticker functions, changed $sticker fields."},{"message":"Removed content argument from $createThread"},{"message":"Setting Context#obj now clears cache, cache was moved to a property, added context loaders."},{"message":"FunctionManager#add is now a shorthand for addMany"},{"message":"$scope now allows syncing vars, adapted paths to work with other operating systems"},{"message":"Prefixes are no longer required"},{"message":"dollar custom functions now allow recursion"},{"message":"Custom functions are now populated as actual functions, made several changes, backwards compatibility to FunctionManager#load, fixed $messageCreatedAt, and some other stuff"},{"message":"Reenabled outer escaping in experimental compiler, functions are properly escaped"},{"message":"Fixed experimental compiler skipping functions"},{"message":"Fixed experimental compiler again"},{"message":"Added docs translations, fixed compiler again, fixed $thumbnail and some other embed functions causing errors with empty field values, array functions can now return output, $eval now shares context container"},{"message":"Fixed condition fields not working in experimental compiler"},{"message":"Added alloc field to resolveCode"},{"message":"fixed some imports"},{"message":"Another fix to experimental compiler, fixed types in the json"},{"message":"Added $interactionDelete and translations"},{"message":"Added translations.json"},{"message":"Added ForgeClient#commandManagers"},{"message":"I promise this is the last row of events"},{"message":"Another row of events."},{"message":"Added a few more events!"},{"message":"Added $usertag and $discriminator"},{"message":"Changed $jsonSet fields"},{"message":"$arrayMap now allows json, fixed $cloneChannel, $jsonDelete and added error when missing data to app commands"},{"message":"Fixed $cloneChannel, $arrayMap now allows json returned, fixed $jsonDelete"},{"message":"whoops forgot to install deps"},{"message":"Fixed command load crash"},{"message":"Exported generateMetadata again"},{"message":"Fixed circular imports (pain)"},{"message":"Fixed docgen"},{"message":"Added eventabsolutepath option to generateMetadata"},{"message":"Added intents enum, added alias to $hasChannelPerms"},{"message":"Added $cloneChannel, $channelHas(Any)Perms, fixed no perms issue with attach files perm"},{"message":"Added more events"},{"message":"Redone dist"},{"message":"Added $messageSticker and $messageStickerCount, renamed $stickers"},{"message":"Added $fetchResponse"},{"message":"Added $editField"},{"message":"Added $guildHas(Any)Features"},{"message":"Added more aliases"},{"message":"Added $fetchEmbeds, added more functionality to $getEmbed, added $loadEmbeds"},{"message":"Added id to all commands"},{"message":"Renamed $markdown to $inlineCode"},{"message":"Fixed $markdown"},{"message":"Redone errors a bit"},{"message":"Added ForgeClient#getExtension and Context#getExtension"},{"message":"Fixed $argCount, fixed $updateApplicationCommands description, fixed $fetchAuditLog/$fetchUserAuditLog fields"},{"message":"Added $jsonDelete"},{"message":"Swapped $jsonSet fields, now made work"},{"message":"Added output type to functions"},{"message":"Removed message validation from $deleteMessage"},{"message":"Added infinite loop possibility to $loop"},{"message":"Fixed $arrayEvery"},{"message":"Fixed $httpResult with no args"},{"message":"Fixed $arraySome"},{"message":"Fixed $httpRequest ignoring $httpSetContentType"},{"message":"Added $httpSetContentType"},{"message":"Added path to app commans"},{"message":"Added $guildEmojis"},{"message":"Added fields to $applicationCommandDisplay"},{"message":"Added $loop"},{"message":"Added $editStringSelectMenu, $editOption and replaced separator field $getEmbed in favor of field index."},{"message":"Added $applicationCommandDisplay"},{"message":"I trimmed twice"},{"message":"Fixed $argCount returning 1 for empty values"},{"message":"Added $locale"},{"message":"Added roleCount to member properties"},{"message":"Added some functions for audit log management"},{"message":"Added $guildBannedMembers and $guildBanReason"},{"message":"Added enums.json to metadata, added enumName to args in metadata"},{"message":"Added aliases to all $bot functions and $server"},{"message":"Added $memberIDs"},{"message":"added $messageContent"},{"message":"Commented all runnable properties"},{"message":"Added function support to prefixes"},{"message":"Added $modifyChannelPerms and modified internal code"},{"message":"Added $channelPermissionsfor"},{"message":"Fix slashes not working with independent mode"},{"message":"Added independent prop to app commands"},{"message":"Fixed $messageAttachment"},{"message":"Added $replaceText as alias to $replace"},{"message":"Added alias to $sendMessage and added $messageAttachment"},{"message":"Fixed compiler breaking on negation op"},{"message":"$isValidHex no longer accepts hexes like ff#ff00"},{"message":"Small touch on compiler"},{"message":"Added aliases to functions (experimental)"},{"message":"Changed extension loadup message"},{"message":"Removed category property from functions"},{"message":"Added respondOnEdit as client option"},{"message":"Rearranged functions in categories"},{"message":"Fixed path again"},{"message":"Fixed empty files being used"},{"message":"Fixed command path"},{"message":"Categorized all functions"},{"message":"Added category to functions.json, deleted generateFunctionDoc"},{"message":"Added $arrayRandomIndex, $arrayRandomValue, fixed $platform user arg, deleted $attachments in favor of $messageAttachments"},{"message":"Fixed $guildChannelCount"},{"message":"(Might fix invite system?) Added deprecation warning to ForgeClient#useInviteSystem, implemented ForgeClient#trackers."},{"message":"Introduced breaking change to extensions, added extra command checks and minor improvements"},{"message":"Reorganized structures folder"},{"message":"Fixed version on newer functions"},{"message":"Fixed package.json version"},{"message":"Added few channel, voice, select menu and option functions"},{"message":"Bump 1.4.0"}],"1.5.0":[{"message":"Fixed $memberCustomStatus"},{"message":"Added prefixCaseInsensitive client option"},{"message":"Fixed $deleteMessage always returns 0 for one single deleted message"},{"message":"Added deprecation warning logger to $interactionRequirePremium"},{"message":"Added filters to $clearMessages and $clearUserMessages"},{"message":"Fixed $emojiID not working with app emojis"},{"message":"Added $botDescription, $setBotDescription and $setBotTags"},{"message":"Added $unparseDigital, renamed $isBool to $isBoolean"},{"message":"Fixed $deleteComponent functions can cause empty action rows"},{"message":"Fixed successJSON can't handle BigInts"},{"message":"Fixed automod rule options not being cleared after execution"},{"message":"Fixed $guildMemberCount offline presence not working properly"},{"message":"Added new params to $bar, fixed negative input"},{"message":"Added $arrayFindLastIndex"},{"message":"Updated $arraySplice to now return deleted elements"},{"message":"Added $guildEmojiLimit, $guildStickerLimit and $arrayLastIndexOf"},{"message":"Added optional arg to $guildMemberCount"},{"message":"Added $parseDigital"},{"message":"Added $firstMessageID and $channelPinnedMessages"},{"message":"Added optional direction arg to $loop and fixed iteration count for infinite times"},{"message":"Added $deleteIn"},{"message":"Added optional arg to $authorizingIntegrationOwners"},{"message":"Fixed reactions of messages not properly cached, fixes reaction functions"},{"message":"Added optional reason param to $timeout"},{"message":"Fixed $randomGuildChannelID"},{"message":"Added support for nullable and optional custom func params"},{"message":"Added $interactionRawData"},{"message":"Added $channelPermissionsOf"},{"message":"Added various raw data functions"},{"message":"Added $cloneChannelPerms, small changes and additions"},{"message":"Added some new functions"},{"message":"Added new functions, aliases and parameters"},{"message":"Added more flag functions and $setGuildPausedInvites"},{"message":"Added $isPinned"},{"message":"Added args to $messageType, fixed $messageWebhookID"},{"message":"Added more voice state properties"},{"message":"Fixed emoji functions, added support for app emojis, small changes"},{"message":"Added some new functions and properties"},{"message":"Added $editEmoji, update djs to v14.16.3"},{"message":"Updated invite functions"},{"message":"Fix for previous commit"},{"message":"Added new application command functions"},{"message":"Fixed application command functions"},{"message":"Allowed strings as input for $isInteger and $isFloat"},{"message":"Added $authorizingIntegrationOwners and $context"},{"message":"Added $targetMessageEmbeds, new msg properties and updated $djsEval"},{"message":"Added $targetMessage and more message properties"},{"message":"Added $httpPing"},{"message":"Deprecated $interactionRequirePremium in favor of new premium buttons"},{"message":"Added $httpGetHeader"},{"message":"Added $isRepliable"},{"message":"Added $memberActivity"},{"message":"Added $threadStarterMessageID and fixed thread functions"},{"message":"Added new automod rule events and state functions"},{"message":"Added $tts"},{"message":"Fixed $editButton not allowing empty labels"},{"message":"Added new functions, fixed $editButton, update djs to v14.16.2"},{"message":"Added support for more application command customization"},{"message":"Added $editGuildTemplate"},{"message":"Moved prev wrongly added aliases from $loadEmbeds to $fetchEmbeds"},{"message":"Added $messageEditedAt"},{"message":"Added optional separator arg to $selectMenuValues"},{"message":"Added bunch of new automod rule functions"},{"message":"Renamed func to $setGuildBoostProgressBar"},{"message":"Updated deprecated Emoji#url getter"},{"message":"Added $getApplicationEmojis and small improvements"},{"message":"Update $createInvite to always create unique invites"},{"message":"Optimized $guildBoosterIDs, final commit"},{"message":"Revert prev change"},{"message":"Small change"},{"message":"Fixed $guildBoosterIDs again"},{"message":"Fixed $guildBoosterIDs"},{"message":"Added $threadTotalMessagesSent and small fixes"},{"message":"Added more guild boost functions"},{"message":"Fixed $title doesn't allow empty values"},{"message":"Fixed $guildID and $channelID not working with user installable apps"},{"message":"Added $guildHighestRoleID and $guildLowestRoleID"},{"message":"Fixed prev $ fix caused no note on docs?"},{"message":"Fixed $ sign not escaped properly for GitHub commits"},{"message":"Added $$userReferenceID"},{"message":"Added randomRoleID and optional reason arg to voiceMove"},{"message":"'Added $memberLowestRoleID'"},{"message":"Added guild template funcs and fixed typo"},{"message":"Added \\$lastPinTimestamp and aliases to \\$loadEmbeds"},{"message":"Added optional type param to emoji count funcs"},{"message":"Fixed guild funcs not working within ban events"},{"message":"Added optional asc param to \\$rolePosition"},{"message":"Fixed $arrayAdvancedSort"},{"message":"Added support for SKUIds in addButton funcs"},{"message":"Fixed typo in $decrypt desc"},{"message":"Added new functions and userinstall app support, update djs to v14.16.1"},{"message":"Added $encrypt, $decrypt and $randomBytes"},{"message":"Fi"},{"message":"Added $week"},{"message":"Added $deleteThread"},{"message":"Fix channel id being optional in some funcs"},{"message":"Added $setChannelArchiveDuration"},{"message":"Added another function"},{"message":"New functions some new fields for other functions"},{"message":"Idk"},{"message":"Added modifyforumtag"},{"message":"Fixed fetching messages giving partial ones"},{"message":"Added $isArchived and fix threads no cached"},{"message":"Added hasPoll"},{"message":"More poll functionality"},{"message":"Fixed $pollAnswers emojis not showing up"},{"message":"Added some poll functionality"},{"message":"Skill issue"},{"message":"Updated $createInvite with more parameters"},{"message":"Fixed $applicationCommandOptions and new param"},{"message":"Added new param to $cropText"},{"message":"Added $applicationCommandOptions"},{"message":"Added 2 new fields to $webhookSend"},{"message":"Added entitlement support, updated djs to v14.5"},{"message":"Added @private to some command props"},{"message":"Fixed $escapeCode"},{"message":"Added many new cooldown function utilities"},{"message":"Added new field to $bar, added $advancedBar for complex bars."},{"message":"Introduced count and silent operators"},{"message":"Added $average"},{"message":"fixed parseJSON for numbers"},{"message":"Remove old attachments when editing"},{"message":"Added $reverseText"},{"message":"Fixed $bar again"},{"message":"Fixed $bar not working with multi char strings"},{"message":"Added $gc"},{"message":"Small changes"},{"message":"Added $bar"},{"message":"Fixed compiler attempting to read fields for functions that dont have args"},{"message":"Added new workflow"},{"message":"workflow test | 3#"},{"message":"workflow test | #2"},{"message":"dev workflow | #1"},{"message":"Fixed $editButton and $editButtonOf attempting to set empty fields"},{"message":"Added websocket support"},{"message":"Added many functions to edit components and rows from different messages"},{"message":"Some functions did not allow negation operator, this has been fixed."},{"message":"Added $channelIsChildrenOf"},{"message":"Added $djs and $js aliases to $djsEval"},{"message":"Added $discordAPI as alias to $api"},{"message":"Quick change to $api"},{"message":"Added $api"},{"message":"Updated readme"},{"message":"Bump version"}],"2.1.0":[{"message":"Added $deleteField, updated some descriptions"},{"message":"Removed deprecated djs stuff"},{"message":"Added bunch of new guild functions"},{"message":"Added some shard functions, updated $userBadges"},{"message":"Added $memberBanner, bump versions"}],"2.2.0":[{"message":"Added $djsVersion"},{"message":"Added $forward and new guild functions, djs v14.18"},{"message":"Added more forum functions"},{"message":"Added $jsonHas, fixed other json functions"},{"message":"Added $subtext"},{"message":"Fixed $loadComponents"},{"message":"Added $fetchMessage"},{"message":"Added optional guild arg to $applicationCommands"},{"message":"Added optional param to $applicationCommandCount"},{"message":"Added $pathJoin and $pathResolve"},{"message":"Added $fetchRoles, $fetchChannels and new arg to $fetchMembers"},{"message":"Added new functions and more support for app emojis, fixed some functions"},{"message":"Added bunch of new edit select menu functions"},{"message":"Added $getMessageReactions and new arg to $getMessageReactionCount"},{"message":"Added $getInvite and $getGuildInvite, updated $deleteInvite, added more invite properties"},{"message":"Added sort type to $arraySort"},{"message":"Added functions to enable all buttons and components"},{"message":"Added $disableComponents and $disableComponentsOf"},{"message":"Added $disableButtons and $disableButtonsOf"},{"message":"Added support for return statement in $loop"},{"message":"Added $sign and $pi"},{"message":"Fixed $XExists funcs throw errors in console"},{"message":"Added client webhook event functions"},{"message":"Allowed time changing functions to affect $parseDate locales"},{"message":"Added $ramTotal and some aliases"}],"2.3.0":[{"message":"Small changes, fixed ArgType.Date"},{"message":"Added more stage instance support"},{"message":"Marked affected guild functions as deprecated"},{"message":"Added embed support to $webhookEditMessage"},{"message":"Fixed custom function loader"},{"message":"Comited updates"},{"message":"Bumped to main depency Sucessfully"},{"message":"added $chalkLog"},{"message":"Added alias $weekday to $dayOfWeek"},{"message":"Fixed $poll and $pollAnswer"},{"message":"breaking change: changed behavior of $day, Added $dayOfWeek"},{"message":"Added $clearTimeout and $clearInterval"},{"message":"Added local functions"},{"message":"Added optional type property to custom function params"},{"message":"Fixed $isBanned throws error"},{"message":"Added more interaction member support and new functions, fixed $nickname"},{"message":"Added $stickerURL and new arg to $messageStickers"},{"message":"Small changes and fixes"},{"message":"Required param now affects rest arguments, fixed $advancedBar"},{"message":"Added voiceChannelEffectSend event and $effect"},{"message":"Fixed $hasPerms and $hasAnyPerms"},{"message":"Added more webhook funcs and $followChannel, bump versions"}],"2.4.0":[{"message":"Fixed various component functions","timestamp":"2025-08-22T16:57:22.559Z","author":"xNickyDev"},{"message":"Fixed $getComponents (cv2 support)","timestamp":"2025-08-18T14:03:27.129Z","author":"xNickyDev"},{"message":"Fixed buffers and generating enums","timestamp":"2025-08-15T02:49:33.018Z","author":"xNickyDev"},{"message":"Fixed generating paths","timestamp":"2025-07-29T14:29:25.750Z","author":"xNickyDev"},{"message":"Fixed some time functions","timestamp":"2025-07-20T15:32:18.766Z","author":"xNickyDev"},{"message":"Removed deprecated reason args of thread member functions","timestamp":"2025-07-11T13:54:55.163Z","author":"xNickyDev"},{"message":"Small fixes","timestamp":"2025-07-11T13:19:13.998Z","author":"xNickyDev"},{"message":"Support editing select menus in cv2","timestamp":"2025-07-04T10:42:32.634Z","author":"xNickyDev"},{"message":"Fixed $httpRequest causes crash on error, small other fixes","timestamp":"2025-06-30T14:16:37.284Z","author":"xNickyDev"},{"message":"Added new functions, bump djs","timestamp":"2025-06-26T12:35:03.061Z","author":"xNickyDev"},{"message":"Added $isActivityCommand and \"activityCommand\" type","timestamp":"2025-06-23T13:58:14.934Z","author":"xNickyDev"},{"message":"Allowed components for webhook messages, added threadID to $webhookEditMessage","timestamp":"2025-06-23T01:43:23.580Z","author":"xNickyDev"},{"message":"Added new functions","timestamp":"2025-06-21T23:46:13.433Z","author":"xNickyDev"},{"message":"Added activity support, small fixes","timestamp":"2025-06-17T23:56:50.402Z","author":"xNickyDev"},{"message":"Small changes, bump djs","timestamp":"2025-06-16T16:46:48.122Z","author":"xNickyDev"},{"message":"Added rest option to custom function params","timestamp":"2025-06-11T15:44:19.305Z","author":"xNickyDev"},{"message":"Fixed stacking action rows in containers","timestamp":"2025-06-08T14:45:00.185Z","author":"xNickyDev"},{"message":"Fixed prev change on component builders","timestamp":"2025-06-08T07:54:39.212Z","author":"xNickyDev"},{"message":"Fixed $arrayCreate not defaulting to empty array","timestamp":"2025-06-08T06:55:40.602Z","author":"xNickyDev"},{"message":"Added $messageEmojis","timestamp":"2025-06-07T13:17:03.415Z","author":"xNickyDev"},{"message":"Fixed $guildVanityCode, optimized $unparseDigital","timestamp":"2025-06-06T22:12:53.498Z","author":"xNickyDev"},{"message":"Added $cloneRole, $guildInviteExists and new metadata","timestamp":"2025-06-03T21:24:10.034Z","author":"xNickyDev"},{"message":"Added $guildTemplateCode","timestamp":"2025-05-28T18:33:45.595Z","author":"xNickyDev"},{"message":"Added $typeof, $syncGuildTemplate and new arg to $createGuild","timestamp":"2025-05-28T00:45:57.765Z","author":"xNickyDev"},{"message":"Added $getSnapshots","timestamp":"2025-05-27T17:53:35.939Z","author":"xNickyDev"},{"message":"Restructured changelogs.json","timestamp":"2025-05-24T20:07:12.496Z","author":"xNickyDev"},{"message":"Fixed count operator for empty strings"},{"message":"Added desc arg to $attachment, deleted $test"},{"message":"Fixed $memberAvatar and $memberBanner"},{"message":"Fixed $loadComponents, $fetchResponse, $fetchComponents"},{"message":"Added team functions, changed $loop last arg"},{"message":"Fixed edit component functions, bump djs"},{"message":"Added components v2 support"},{"message":"Added soundboard support, bump versions"}],"2.4.1":[{"message":"Fixed broken legacy component functions","timestamp":"2025-08-22T18:55:42.916Z","author":"xNickyDev"}]} \ No newline at end of file +{"1.2.0":[{"message":"Added URL arg type"},{"message":"Fixed updateApplicationCommands partially working"},{"message":"Added updateApplicationCommands"},{"message":"Changed all functions internally to adapt to the new negation operator"},{"message":"Move negation operator to the beginning of function"},{"message":"make executionTime more accurate"},{"message":"added parseInt"},{"message":"Fixed findUser crash"},{"message":"Fixed some grammar errors in docs by Nicky"},{"message":"added ifx function allows blocks of statements"},{"message":"Fixed lastMessageID returning content instead of id"},{"message":"Return no longer requires brackets"},{"message":"Fixed commandInfo"},{"message":"Added allowedInteractionTypes property to commands and the name property now works for interactions"},{"message":"Speeded up interpreter performance"},{"message":"Added negation operator to cancel output of functions"},{"message":"Added deleteCommand"},{"message":"Fixed successJSON and successFormatted"},{"message":"Add line:column to parser errors"},{"message":"Deleted changelogs folder"},{"message":"Moved json files to metadata folder"},{"message":"Added color strings back"},{"message":"Renamed loadJSON = jsonLoad"},{"message":"Added jsonSet"},{"message":"Reordered fields in botOwnerID default to the owner id"},{"message":"Added reason field to createInvite"},{"message":"Fixed botOwnerID and extended its functionality"},{"message":"Added missing reference to ThreadManager.ts"},{"message":"Make httpRequest last field optional and added httpResult [shortcut for env]"},{"message":"Fixed small typo in a log given by FunctionManager#load"},{"message":"Added color functions and new arg type"},{"message":"Added autoModerationActionExecution event and a few functions for it"},{"message":"Added titleURL to embed properties"},{"message":"Added hasExtension"},{"message":"Fixed embed properties and added color and authorURL to it"},{"message":"Added a handful of functions"},{"message":"Renamed runInThread => coroutine"},{"message":"Added lastMessageID"},{"message":"Fix docgen not generating functions"},{"message":"Added interactionFollowUp"},{"message":"Implemented feature for code threading (experimental)"},{"message":"Add error for invalid flags in changelog gen"},{"message":"Make json instead of txt for changelogs"}],"1.3.0":[{"message":"Added mobile option to client"},{"message":"Added $addRoleSelectMenu"},{"message":"added $sliceText and $messageSlice"},{"message":"Added a lot of missing guild and role functions"},{"message":"added $arrayPushJSON and unshift variants"},{"message":"Added $guildChannelIDs and $guildRoleIDs"},{"message":"Added $hyperlink"},{"message":"Added $mentionedXCount"},{"message":"Added command path to compilation errors, fixed some path joins"},{"message":"Added ability to disable unneccesary functions"},{"message":"Improved description of $isValidHex and $isValidLink"},{"message":"Added 2 new properties to extension class (requireExtensions and targetVersions)"},{"message":"Added $isValidHex"},{"message":"Some interpreter optimizations were applied, attempt to fix stickers issue with $editMessage and added $deferUpdate"},{"message":"Added formatting functions"},{"message":"Fixed $stickers indexing and added $sticker (sticker support for responses)"},{"message":"Added $ordinal"},{"message":"Added $enableUserMentions, $enableRoleMentions, $disableEveryoneMention and $disableAllMentions"},{"message":"Added $disableUserMentions, $disableRoleMentions, $nomention and a new field to $reply"},{"message":"Added $disableUserMentions, $disableRoleMentions, $nomention and a new field to $reply"},{"message":"Added bigint functions, and some shorthand functions for $let"},{"message":"Added better logging to ForgeScript core, also implemented api as a function"},{"message":"Fixed negation operator for functions with fields"},{"message":"Functions are now case insensitive, improved commit.ts"},{"message":"Added case insensitive functions, improved commit.ts"},{"message":"Please write the commit message:"},{"message":"Please write the commit message:"},{"message":"Bump ForgeScript version"}],"1.4.0":[{"message":"$arrayLoad now allows loading without values"},{"message":"Fixed $isSlashCommand and slashCommand int type"},{"message":"Fixed guild functions"},{"message":"$option now returns attachment urls"},{"message":"interactionCreate events now forward app commands, might become a breaking change for some (?),"},{"message":"Fixed $guildRulesChannelID"},{"message":"Added more time units"},{"message":"Added $discordTimestamp"},{"message":"Fixed some component functions, added $isJSON"},{"message":"Added $userIDs"},{"message":"Added some more funcs"},{"message":"Added some funcs"},{"message":"Added $voiceMove"},{"message":"Added some new functions"},{"message":"Nothing much"},{"message":"Tried a fix for ephemeral messages not being recognized"},{"message":"Added emoji property to component"},{"message":"Added some aliases and functions"},{"message":"Added $transcript, $guildChannelID, $getComponent and $loadComponent"},{"message":"Removed old compiler."},{"message":"Added $splitTextJoin and $reply now mentions by default"},{"message":"Added registration type to application commands"},{"message":"Added $findMembers"},{"message":"Added $hasAnyPerms"},{"message":"Fixed $guildNSFWLevel"},{"message":"Change $commandInfo's last field."},{"message":"Prefixes no longer sensitive"},{"message":"Fixed no ping behavior"},{"message":"Small typo"},{"message":"Added Arg class for ease of arg creation"},{"message":"Fixed $awaitComponent throwing error regardless of error disabled"},{"message":"Fixed interactionReply 2nd field, fixed $disableConsoleErrors"},{"message":"Added index to parsed functions"},{"message":"Added event emitter to command manager"},{"message":"Added new option to client and command to disable errors"},{"message":"feat: add $userID as alias to $authorID"},{"message":"Added more await functions, added $showModal"},{"message":"Fixed some file funcs"},{"message":"Added more file functions"},{"message":"Added more file functions"},{"message":"Added form data support to http"},{"message":"Added BaseCommandManager#toArray"},{"message":"Added a lot of sticker functions, changed $sticker fields."},{"message":"Removed content argument from $createThread"},{"message":"Setting Context#obj now clears cache, cache was moved to a property, added context loaders."},{"message":"FunctionManager#add is now a shorthand for addMany"},{"message":"$scope now allows syncing vars, adapted paths to work with other operating systems"},{"message":"Prefixes are no longer required"},{"message":"dollar custom functions now allow recursion"},{"message":"Custom functions are now populated as actual functions, made several changes, backwards compatibility to FunctionManager#load, fixed $messageCreatedAt, and some other stuff"},{"message":"Reenabled outer escaping in experimental compiler, functions are properly escaped"},{"message":"Fixed experimental compiler skipping functions"},{"message":"Fixed experimental compiler again"},{"message":"Added docs translations, fixed compiler again, fixed $thumbnail and some other embed functions causing errors with empty field values, array functions can now return output, $eval now shares context container"},{"message":"Fixed condition fields not working in experimental compiler"},{"message":"Added alloc field to resolveCode"},{"message":"fixed some imports"},{"message":"Another fix to experimental compiler, fixed types in the json"},{"message":"Added $interactionDelete and translations"},{"message":"Added translations.json"},{"message":"Added ForgeClient#commandManagers"},{"message":"I promise this is the last row of events"},{"message":"Another row of events."},{"message":"Added a few more events!"},{"message":"Added $usertag and $discriminator"},{"message":"Changed $jsonSet fields"},{"message":"$arrayMap now allows json, fixed $cloneChannel, $jsonDelete and added error when missing data to app commands"},{"message":"Fixed $cloneChannel, $arrayMap now allows json returned, fixed $jsonDelete"},{"message":"whoops forgot to install deps"},{"message":"Fixed command load crash"},{"message":"Exported generateMetadata again"},{"message":"Fixed circular imports (pain)"},{"message":"Fixed docgen"},{"message":"Added eventabsolutepath option to generateMetadata"},{"message":"Added intents enum, added alias to $hasChannelPerms"},{"message":"Added $cloneChannel, $channelHas(Any)Perms, fixed no perms issue with attach files perm"},{"message":"Added more events"},{"message":"Redone dist"},{"message":"Added $messageSticker and $messageStickerCount, renamed $stickers"},{"message":"Added $fetchResponse"},{"message":"Added $editField"},{"message":"Added $guildHas(Any)Features"},{"message":"Added more aliases"},{"message":"Added $fetchEmbeds, added more functionality to $getEmbed, added $loadEmbeds"},{"message":"Added id to all commands"},{"message":"Renamed $markdown to $inlineCode"},{"message":"Fixed $markdown"},{"message":"Redone errors a bit"},{"message":"Added ForgeClient#getExtension and Context#getExtension"},{"message":"Fixed $argCount, fixed $updateApplicationCommands description, fixed $fetchAuditLog/$fetchUserAuditLog fields"},{"message":"Added $jsonDelete"},{"message":"Swapped $jsonSet fields, now made work"},{"message":"Added output type to functions"},{"message":"Removed message validation from $deleteMessage"},{"message":"Added infinite loop possibility to $loop"},{"message":"Fixed $arrayEvery"},{"message":"Fixed $httpResult with no args"},{"message":"Fixed $arraySome"},{"message":"Fixed $httpRequest ignoring $httpSetContentType"},{"message":"Added $httpSetContentType"},{"message":"Added path to app commans"},{"message":"Added $guildEmojis"},{"message":"Added fields to $applicationCommandDisplay"},{"message":"Added $loop"},{"message":"Added $editStringSelectMenu, $editOption and replaced separator field $getEmbed in favor of field index."},{"message":"Added $applicationCommandDisplay"},{"message":"I trimmed twice"},{"message":"Fixed $argCount returning 1 for empty values"},{"message":"Added $locale"},{"message":"Added roleCount to member properties"},{"message":"Added some functions for audit log management"},{"message":"Added $guildBannedMembers and $guildBanReason"},{"message":"Added enums.json to metadata, added enumName to args in metadata"},{"message":"Added aliases to all $bot functions and $server"},{"message":"Added $memberIDs"},{"message":"added $messageContent"},{"message":"Commented all runnable properties"},{"message":"Added function support to prefixes"},{"message":"Added $modifyChannelPerms and modified internal code"},{"message":"Added $channelPermissionsfor"},{"message":"Fix slashes not working with independent mode"},{"message":"Added independent prop to app commands"},{"message":"Fixed $messageAttachment"},{"message":"Added $replaceText as alias to $replace"},{"message":"Added alias to $sendMessage and added $messageAttachment"},{"message":"Fixed compiler breaking on negation op"},{"message":"$isValidHex no longer accepts hexes like ff#ff00"},{"message":"Small touch on compiler"},{"message":"Added aliases to functions (experimental)"},{"message":"Changed extension loadup message"},{"message":"Removed category property from functions"},{"message":"Added respondOnEdit as client option"},{"message":"Rearranged functions in categories"},{"message":"Fixed path again"},{"message":"Fixed empty files being used"},{"message":"Fixed command path"},{"message":"Categorized all functions"},{"message":"Added category to functions.json, deleted generateFunctionDoc"},{"message":"Added $arrayRandomIndex, $arrayRandomValue, fixed $platform user arg, deleted $attachments in favor of $messageAttachments"},{"message":"Fixed $guildChannelCount"},{"message":"(Might fix invite system?) Added deprecation warning to ForgeClient#useInviteSystem, implemented ForgeClient#trackers."},{"message":"Introduced breaking change to extensions, added extra command checks and minor improvements"},{"message":"Reorganized structures folder"},{"message":"Fixed version on newer functions"},{"message":"Fixed package.json version"},{"message":"Added few channel, voice, select menu and option functions"},{"message":"Bump 1.4.0"}],"1.5.0":[{"message":"Fixed $memberCustomStatus"},{"message":"Added prefixCaseInsensitive client option"},{"message":"Fixed $deleteMessage always returns 0 for one single deleted message"},{"message":"Added deprecation warning logger to $interactionRequirePremium"},{"message":"Added filters to $clearMessages and $clearUserMessages"},{"message":"Fixed $emojiID not working with app emojis"},{"message":"Added $botDescription, $setBotDescription and $setBotTags"},{"message":"Added $unparseDigital, renamed $isBool to $isBoolean"},{"message":"Fixed $deleteComponent functions can cause empty action rows"},{"message":"Fixed successJSON can't handle BigInts"},{"message":"Fixed automod rule options not being cleared after execution"},{"message":"Fixed $guildMemberCount offline presence not working properly"},{"message":"Added new params to $bar, fixed negative input"},{"message":"Added $arrayFindLastIndex"},{"message":"Updated $arraySplice to now return deleted elements"},{"message":"Added $guildEmojiLimit, $guildStickerLimit and $arrayLastIndexOf"},{"message":"Added optional arg to $guildMemberCount"},{"message":"Added $parseDigital"},{"message":"Added $firstMessageID and $channelPinnedMessages"},{"message":"Added optional direction arg to $loop and fixed iteration count for infinite times"},{"message":"Added $deleteIn"},{"message":"Added optional arg to $authorizingIntegrationOwners"},{"message":"Fixed reactions of messages not properly cached, fixes reaction functions"},{"message":"Added optional reason param to $timeout"},{"message":"Fixed $randomGuildChannelID"},{"message":"Added support for nullable and optional custom func params"},{"message":"Added $interactionRawData"},{"message":"Added $channelPermissionsOf"},{"message":"Added various raw data functions"},{"message":"Added $cloneChannelPerms, small changes and additions"},{"message":"Added some new functions"},{"message":"Added new functions, aliases and parameters"},{"message":"Added more flag functions and $setGuildPausedInvites"},{"message":"Added $isPinned"},{"message":"Added args to $messageType, fixed $messageWebhookID"},{"message":"Added more voice state properties"},{"message":"Fixed emoji functions, added support for app emojis, small changes"},{"message":"Added some new functions and properties"},{"message":"Added $editEmoji, update djs to v14.16.3"},{"message":"Updated invite functions"},{"message":"Fix for previous commit"},{"message":"Added new application command functions"},{"message":"Fixed application command functions"},{"message":"Allowed strings as input for $isInteger and $isFloat"},{"message":"Added $authorizingIntegrationOwners and $context"},{"message":"Added $targetMessageEmbeds, new msg properties and updated $djsEval"},{"message":"Added $targetMessage and more message properties"},{"message":"Added $httpPing"},{"message":"Deprecated $interactionRequirePremium in favor of new premium buttons"},{"message":"Added $httpGetHeader"},{"message":"Added $isRepliable"},{"message":"Added $memberActivity"},{"message":"Added $threadStarterMessageID and fixed thread functions"},{"message":"Added new automod rule events and state functions"},{"message":"Added $tts"},{"message":"Fixed $editButton not allowing empty labels"},{"message":"Added new functions, fixed $editButton, update djs to v14.16.2"},{"message":"Added support for more application command customization"},{"message":"Added $editGuildTemplate"},{"message":"Moved prev wrongly added aliases from $loadEmbeds to $fetchEmbeds"},{"message":"Added $messageEditedAt"},{"message":"Added optional separator arg to $selectMenuValues"},{"message":"Added bunch of new automod rule functions"},{"message":"Renamed func to $setGuildBoostProgressBar"},{"message":"Updated deprecated Emoji#url getter"},{"message":"Added $getApplicationEmojis and small improvements"},{"message":"Update $createInvite to always create unique invites"},{"message":"Optimized $guildBoosterIDs, final commit"},{"message":"Revert prev change"},{"message":"Small change"},{"message":"Fixed $guildBoosterIDs again"},{"message":"Fixed $guildBoosterIDs"},{"message":"Added $threadTotalMessagesSent and small fixes"},{"message":"Added more guild boost functions"},{"message":"Fixed $title doesn't allow empty values"},{"message":"Fixed $guildID and $channelID not working with user installable apps"},{"message":"Added $guildHighestRoleID and $guildLowestRoleID"},{"message":"Fixed prev $ fix caused no note on docs?"},{"message":"Fixed $ sign not escaped properly for GitHub commits"},{"message":"Added $$userReferenceID"},{"message":"Added randomRoleID and optional reason arg to voiceMove"},{"message":"'Added $memberLowestRoleID'"},{"message":"Added guild template funcs and fixed typo"},{"message":"Added \\$lastPinTimestamp and aliases to \\$loadEmbeds"},{"message":"Added optional type param to emoji count funcs"},{"message":"Fixed guild funcs not working within ban events"},{"message":"Added optional asc param to \\$rolePosition"},{"message":"Fixed $arrayAdvancedSort"},{"message":"Added support for SKUIds in addButton funcs"},{"message":"Fixed typo in $decrypt desc"},{"message":"Added new functions and userinstall app support, update djs to v14.16.1"},{"message":"Added $encrypt, $decrypt and $randomBytes"},{"message":"Fi"},{"message":"Added $week"},{"message":"Added $deleteThread"},{"message":"Fix channel id being optional in some funcs"},{"message":"Added $setChannelArchiveDuration"},{"message":"Added another function"},{"message":"New functions some new fields for other functions"},{"message":"Idk"},{"message":"Added modifyforumtag"},{"message":"Fixed fetching messages giving partial ones"},{"message":"Added $isArchived and fix threads no cached"},{"message":"Added hasPoll"},{"message":"More poll functionality"},{"message":"Fixed $pollAnswers emojis not showing up"},{"message":"Added some poll functionality"},{"message":"Skill issue"},{"message":"Updated $createInvite with more parameters"},{"message":"Fixed $applicationCommandOptions and new param"},{"message":"Added new param to $cropText"},{"message":"Added $applicationCommandOptions"},{"message":"Added 2 new fields to $webhookSend"},{"message":"Added entitlement support, updated djs to v14.5"},{"message":"Added @private to some command props"},{"message":"Fixed $escapeCode"},{"message":"Added many new cooldown function utilities"},{"message":"Added new field to $bar, added $advancedBar for complex bars."},{"message":"Introduced count and silent operators"},{"message":"Added $average"},{"message":"fixed parseJSON for numbers"},{"message":"Remove old attachments when editing"},{"message":"Added $reverseText"},{"message":"Fixed $bar again"},{"message":"Fixed $bar not working with multi char strings"},{"message":"Added $gc"},{"message":"Small changes"},{"message":"Added $bar"},{"message":"Fixed compiler attempting to read fields for functions that dont have args"},{"message":"Added new workflow"},{"message":"workflow test | 3#"},{"message":"workflow test | #2"},{"message":"dev workflow | #1"},{"message":"Fixed $editButton and $editButtonOf attempting to set empty fields"},{"message":"Added websocket support"},{"message":"Added many functions to edit components and rows from different messages"},{"message":"Some functions did not allow negation operator, this has been fixed."},{"message":"Added $channelIsChildrenOf"},{"message":"Added $djs and $js aliases to $djsEval"},{"message":"Added $discordAPI as alias to $api"},{"message":"Quick change to $api"},{"message":"Added $api"},{"message":"Updated readme"},{"message":"Bump version"}],"2.1.0":[{"message":"Added $deleteField, updated some descriptions"},{"message":"Removed deprecated djs stuff"},{"message":"Added bunch of new guild functions"},{"message":"Added some shard functions, updated $userBadges"},{"message":"Added $memberBanner, bump versions"}],"2.2.0":[{"message":"Added $djsVersion"},{"message":"Added $forward and new guild functions, djs v14.18"},{"message":"Added more forum functions"},{"message":"Added $jsonHas, fixed other json functions"},{"message":"Added $subtext"},{"message":"Fixed $loadComponents"},{"message":"Added $fetchMessage"},{"message":"Added optional guild arg to $applicationCommands"},{"message":"Added optional param to $applicationCommandCount"},{"message":"Added $pathJoin and $pathResolve"},{"message":"Added $fetchRoles, $fetchChannels and new arg to $fetchMembers"},{"message":"Added new functions and more support for app emojis, fixed some functions"},{"message":"Added bunch of new edit select menu functions"},{"message":"Added $getMessageReactions and new arg to $getMessageReactionCount"},{"message":"Added $getInvite and $getGuildInvite, updated $deleteInvite, added more invite properties"},{"message":"Added sort type to $arraySort"},{"message":"Added functions to enable all buttons and components"},{"message":"Added $disableComponents and $disableComponentsOf"},{"message":"Added $disableButtons and $disableButtonsOf"},{"message":"Added support for return statement in $loop"},{"message":"Added $sign and $pi"},{"message":"Fixed $XExists funcs throw errors in console"},{"message":"Added client webhook event functions"},{"message":"Allowed time changing functions to affect $parseDate locales"},{"message":"Added $ramTotal and some aliases"}],"2.3.0":[{"message":"Small changes, fixed ArgType.Date"},{"message":"Added more stage instance support"},{"message":"Marked affected guild functions as deprecated"},{"message":"Added embed support to $webhookEditMessage"},{"message":"Fixed custom function loader"},{"message":"Comited updates"},{"message":"Bumped to main depency Sucessfully"},{"message":"added $chalkLog"},{"message":"Added alias $weekday to $dayOfWeek"},{"message":"Fixed $poll and $pollAnswer"},{"message":"breaking change: changed behavior of $day, Added $dayOfWeek"},{"message":"Added $clearTimeout and $clearInterval"},{"message":"Added local functions"},{"message":"Added optional type property to custom function params"},{"message":"Fixed $isBanned throws error"},{"message":"Added more interaction member support and new functions, fixed $nickname"},{"message":"Added $stickerURL and new arg to $messageStickers"},{"message":"Small changes and fixes"},{"message":"Required param now affects rest arguments, fixed $advancedBar"},{"message":"Added voiceChannelEffectSend event and $effect"},{"message":"Fixed $hasPerms and $hasAnyPerms"},{"message":"Added more webhook funcs and $followChannel, bump versions"}],"2.4.0":[{"message":"Fixed various component functions","timestamp":"2025-08-22T16:57:22.559Z","author":"xNickyDev"},{"message":"Fixed $getComponents (cv2 support)","timestamp":"2025-08-18T14:03:27.129Z","author":"xNickyDev"},{"message":"Fixed buffers and generating enums","timestamp":"2025-08-15T02:49:33.018Z","author":"xNickyDev"},{"message":"Fixed generating paths","timestamp":"2025-07-29T14:29:25.750Z","author":"xNickyDev"},{"message":"Fixed some time functions","timestamp":"2025-07-20T15:32:18.766Z","author":"xNickyDev"},{"message":"Removed deprecated reason args of thread member functions","timestamp":"2025-07-11T13:54:55.163Z","author":"xNickyDev"},{"message":"Small fixes","timestamp":"2025-07-11T13:19:13.998Z","author":"xNickyDev"},{"message":"Support editing select menus in cv2","timestamp":"2025-07-04T10:42:32.634Z","author":"xNickyDev"},{"message":"Fixed $httpRequest causes crash on error, small other fixes","timestamp":"2025-06-30T14:16:37.284Z","author":"xNickyDev"},{"message":"Added new functions, bump djs","timestamp":"2025-06-26T12:35:03.061Z","author":"xNickyDev"},{"message":"Added $isActivityCommand and \"activityCommand\" type","timestamp":"2025-06-23T13:58:14.934Z","author":"xNickyDev"},{"message":"Allowed components for webhook messages, added threadID to $webhookEditMessage","timestamp":"2025-06-23T01:43:23.580Z","author":"xNickyDev"},{"message":"Added new functions","timestamp":"2025-06-21T23:46:13.433Z","author":"xNickyDev"},{"message":"Added activity support, small fixes","timestamp":"2025-06-17T23:56:50.402Z","author":"xNickyDev"},{"message":"Small changes, bump djs","timestamp":"2025-06-16T16:46:48.122Z","author":"xNickyDev"},{"message":"Added rest option to custom function params","timestamp":"2025-06-11T15:44:19.305Z","author":"xNickyDev"},{"message":"Fixed stacking action rows in containers","timestamp":"2025-06-08T14:45:00.185Z","author":"xNickyDev"},{"message":"Fixed prev change on component builders","timestamp":"2025-06-08T07:54:39.212Z","author":"xNickyDev"},{"message":"Fixed $arrayCreate not defaulting to empty array","timestamp":"2025-06-08T06:55:40.602Z","author":"xNickyDev"},{"message":"Added $messageEmojis","timestamp":"2025-06-07T13:17:03.415Z","author":"xNickyDev"},{"message":"Fixed $guildVanityCode, optimized $unparseDigital","timestamp":"2025-06-06T22:12:53.498Z","author":"xNickyDev"},{"message":"Added $cloneRole, $guildInviteExists and new metadata","timestamp":"2025-06-03T21:24:10.034Z","author":"xNickyDev"},{"message":"Added $guildTemplateCode","timestamp":"2025-05-28T18:33:45.595Z","author":"xNickyDev"},{"message":"Added $typeof, $syncGuildTemplate and new arg to $createGuild","timestamp":"2025-05-28T00:45:57.765Z","author":"xNickyDev"},{"message":"Added $getSnapshots","timestamp":"2025-05-27T17:53:35.939Z","author":"xNickyDev"},{"message":"Restructured changelogs.json","timestamp":"2025-05-24T20:07:12.496Z","author":"xNickyDev"},{"message":"Fixed count operator for empty strings"},{"message":"Added desc arg to $attachment, deleted $test"},{"message":"Fixed $memberAvatar and $memberBanner"},{"message":"Fixed $loadComponents, $fetchResponse, $fetchComponents"},{"message":"Added team functions, changed $loop last arg"},{"message":"Fixed edit component functions, bump djs"},{"message":"Added components v2 support"},{"message":"Added soundboard support, bump versions"}],"2.4.1":[{"message":"Fixed broken legacy component functions","timestamp":"2025-08-22T18:55:42.916Z","author":"xNickyDev"}],"2.5.0":[{"message":"Renamed $fetchGuildPreview to $getGuildPreview","timestamp":"2025-09-26T12:56:54.443Z","author":"xNickyDev"},{"message":"Added new events, optimized fetching app emojis","timestamp":"2025-09-23T13:21:24.285Z","author":"xNickyDev"},{"message":"Added new functions and made small adjustments","timestamp":"2025-09-19T17:28:13.859Z","author":"xNickyDev"},{"message":"Added $channelThreadIDs and $fetchThreads","timestamp":"2025-09-06T10:45:31.870Z","author":"xNickyDev"},{"message":"Added int param to $rolePerms and $memberPerms","timestamp":"2025-09-05T16:33:00.998Z","author":"xNickyDev"},{"message":"better fix of commit command","timestamp":"2025-09-05T13:48:51.528Z","author":"aggelos-007"},{"message":"fix $ issue on commits and fixed generateMetadata","timestamp":"2025-09-05T13:35:48.449Z","author":"aggelos-007"},{"message":"Remove ready event in favor of clientReady","timestamp":"2025-09-05T13:26:40.023Z","author":"xNickyDev"},{"message":"Added $getTextSplitIndex","timestamp":"2025-09-04T16:33:13.538Z","author":"aggelos-007"},{"message":"fix $async","timestamp":"2025-09-02T15:42:45.022Z","author":"aggelos-007"},{"message":"fix $setTimeout & $setInterval","timestamp":"2025-09-02T15:21:04.589Z","author":"aggelos-007"},{"message":"Forum tags overhall and addition","timestamp":"2025-08-30T00:33:32.463Z","author":"xNickyDev"},{"message":"Added $setAuditLogReason","timestamp":"2025-08-29T14:45:48.188Z","author":"xNickyDev"},{"message":"Fixed disabling mentions","timestamp":"2025-08-28T21:14:32.470Z","author":"xNickyDev"},{"message":"Added $getPoll, fixed $botMutualGuilds","timestamp":"2025-08-27T22:27:38.926Z","author":"xNickyDev"},{"message":"fix $eval not fetching enviroment variables on escaped code.","timestamp":"2025-08-26T21:38:30.272Z","author":"aggelos-007"},{"message":"Added $guildInvites and many missing properties","timestamp":"2025-08-24T14:13:51.216Z","author":"xNickyDev"},{"message":"Added $arrayUnique and $hasComponents","timestamp":"2025-08-23T14:12:11.269Z","author":"xNickyDev"},{"message":"Added new features, bump djs","timestamp":"2025-08-23T12:15:35.045Z","author":"xNickyDev"}]} \ No newline at end of file diff --git a/metadata/enums.json b/metadata/enums.json index e54d88400b..335c93287b 100644 --- a/metadata/enums.json +++ b/metadata/enums.json @@ -1 +1 @@ -{"SortType":["asc","desc"],"AuditLogEvent":["GuildUpdate","ChannelCreate","ChannelUpdate","ChannelDelete","ChannelOverwriteCreate","ChannelOverwriteUpdate","ChannelOverwriteDelete","MemberKick","MemberPrune","MemberBanAdd","MemberBanRemove","MemberUpdate","MemberRoleUpdate","MemberMove","MemberDisconnect","BotAdd","RoleCreate","RoleUpdate","RoleDelete","InviteCreate","InviteUpdate","InviteDelete","WebhookCreate","WebhookUpdate","WebhookDelete","EmojiCreate","EmojiUpdate","EmojiDelete","MessageDelete","MessageBulkDelete","MessagePin","MessageUnpin","IntegrationCreate","IntegrationUpdate","IntegrationDelete","StageInstanceCreate","StageInstanceUpdate","StageInstanceDelete","StickerCreate","StickerUpdate","StickerDelete","GuildScheduledEventCreate","GuildScheduledEventUpdate","GuildScheduledEventDelete","ThreadCreate","ThreadUpdate","ThreadDelete","ApplicationCommandPermissionUpdate","SoundboardSoundCreate","SoundboardSoundUpdate","SoundboardSoundDelete","AutoModerationRuleCreate","AutoModerationRuleUpdate","AutoModerationRuleDelete","AutoModerationBlockMessage","AutoModerationFlagToChannel","AutoModerationUserCommunicationDisabled","CreatorMonetizationRequestCreated","CreatorMonetizationTermsAccepted","OnboardingPromptCreate","OnboardingPromptUpdate","OnboardingPromptDelete","OnboardingCreate","OnboardingUpdate","HomeSettingsCreate","HomeSettingsUpdate"],"AuditProperty":["id","targetID","timestamp","reason","executorID","actionType","targetType","action","changes","extra"],"AutoModerationActionType":["BlockMessage","SendAlertMessage","Timeout","BlockMemberInteraction"],"AutoModerationRuleTriggerType":["Keyword","Spam","KeywordPreset","MentionSpam","MemberProfile"],"AutoModerationRuleEventType":["MessageSend","MemberUpdate"],"AutomodRuleProperty":["id","name","authorID","enabled","eventType","triggerType","triggerMetadata","exemptRoles","exemptChannels","actions","keywordFilter","regexPatterns","presets","allowList","mentionTotalLimit","mentionRaidProtectionEnabled"],"AutoModerationRuleKeywordPresetType":["Profanity","SexualContent","Slurs"],"TeamMemberProperty":["id","role","membership"],"ApplicationWebhookEventType":["ApplicationAuthorized","EntitlementCreate","QuestUserEnrollment"],"ApplicationWebhookEventStatus":["Disabled","Enabled","DisabledByDiscord"],"ActivityType":["Playing","Streaming","Listening","Watching","Custom","Competing"],"Status":["Ready","Connecting","Reconnecting","Idle","Nearly","Disconnected","WaitingForGuilds","Identifying","Resuming"],"PermissionFlagsBits":["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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps"],"ChannelType":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"ChannelFlags":["GuildFeedRemoved","Pinned","ActiveChannelsRemoved","RequireTag","IsSpam","IsGuildResourceChannel","ClydeAI","IsScheduledForDeletion","HideMediaDownloadOptions"],"PermissionOverwritesProperty":["id","type","allow","deny"],"PermissionsStateType":["allow","deny"],"VoiceRegionType":["brazil","hongkong","india","japan","rotterdam","russia","singapore","south-korea","southafrica","sydney","us-central","us-east","us-south","us-west"],"WebhookProperty":["id","name","type","avatar","ownerID","channelID","guildID","sourceChannelID","sourceGuildID","timestamp","token","url"],"StageInstancePrivacyLevel":["Public","GuildOnly"],"ForumLayoutType":["NotSet","ListView","GalleryView"],"SortOrderType":["LatestActivity","CreationDate"],"ThreadAutoArchiveDuration":["OneHour","OneDay","ThreeDays","OneWeek"],"ForumTagProperty":["emoji","id","moderated","name"],"StageProperty":["channelID","id","topic","timestamp","guildID","privacyLevel","eventId"],"VideoQualityMode":["Auto","Full"],"ButtonStyle":["Primary","Secondary","Success","Danger","Link","Premium"],"SeparatorSpacingSize":["Small","Large"],"TextInputStyle":["Short","Paragraph"],"Colors":["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"],"EmojiType":["normal","animated"],"ApplicationEmojiProperty":["authorID","name","id","identifier","requiresColons","managed","timestamp","animated","url","format"],"EntitlementType":["Purchase","PremiumSubscription","DeveloperGift","TestModePurchase","FreePurchase","UserGift","PremiumPurchase","ApplicationSubscription"],"InviteProperty":["authorID","channelID","guildID","uses","maxUses","maxAge","timestamp","code","url","type","expiresTimestamp","temporary","deletable","memberCount","presenceCount","targetType","targetUser"],"TemplateProperty":["code","name","description","guildID","authorID","timestamp","updatedTimestamp","url","usageCount","unSynced"],"GuildDefaultMessageNotifications":["AllMessages","OnlyMentions"],"GuildExplicitContentFilter":["Disabled","MembersWithoutRoles","AllMembers"],"GuildFeature":["AnimatedBanner","AnimatedIcon","ApplicationCommandPermissionsV2","AutoModeration","Banner","Community","CreatorMonetizableProvisional","CreatorStorePage","DeveloperSupportServer","Discoverable","Featurable","HasDirectoryEntry","Hub","InvitesDisabled","InviteSplash","LinkedToHub","MemberVerificationGateEnabled","MoreSoundboard","MonetizationEnabled","MoreStickers","News","Partnered","PreviewEnabled","PrivateThreads","RaidAlertsDisabled","RelayEnabled","RoleIcons","RoleSubscriptionsAvailableForPurchase","RoleSubscriptionsEnabled","Soundboard","TicketedEventsEnabled","VanityURL","Verified","VIPRegions","WelcomeScreenEnabled"],"GuildMFALevel":["None","Elevated"],"PresenceStatus":["online","idle","dnd","offline"],"GuildNSFWLevel":["Default","Explicit","Safe","AgeRestricted"],"Locale":["Indonesian","EnglishUS","EnglishGB","Bulgarian","ChineseCN","ChineseTW","Croatian","Czech","Danish","Dutch","Finnish","French","German","Greek","Hindi","Hungarian","Italian","Japanese","Korean","Lithuanian","Norwegian","Polish","PortugueseBR","Romanian","Russian","SpanishES","SpanishLATAM","Swedish","Thai","Turkish","Ukrainian","Vietnamese"],"SoundboardSoundProperty":["name","id","guildID","userID","emoji","volume","timestamp","available","url"],"GuildVerificationLevel":["None","Low","Medium","High","VeryHigh"],"HTTPContentType":["Json","Text"],"AuthorizingIntegrationOwnersType":["Guild","User"],"InteractionContextType":["Guild","BotDM","PrivateChannel"],"MemberProperty":["nickname","displayName","displayColor","roles","flags","mention","avatar","banner","bannable","kickable","guildID","id","manageable","timeout","timedOutUntil","status","addedRoles","roleCount","removedRoles","platform","timestamp","boosting","boostingSince","permissions"],"MessageProperty":["id","content","flags","username","type","channelID","guildID","authorID","timestamp","editTimestamp","hasPoll","system","pinned","url","attachments","stickers"],"EmbedProperty":["title","titleURL","authorName","authorIcon","footerText","image","thumbnail","footerIcon","description","timestamp","authorURL","color","fieldName","fieldInline","fieldValue"],"LogType":["Warn","Deprecated","Debug","Info","Error"],"ChannelProperty":["id","type","topic","bitrate","members","name","timestamp"],"SearchMethodType":["startsWith","endsWith","includes"],"RoleProperty":["timestamp","id","name","icon","color","hoisted","managed","mentionable","rawPosition","position","permissions","tags","members"],"ActivityProperty":["name","type","details","buttons","flags","timestamp","endTimestamp","startTimestamp","partyID","partySize","syncID","url","largeText","largeImage","smallText","smallImage"],"CustomStatusType":["state","emoji"],"GuildMemberFlags":["DidRejoin","CompletedOnboarding","BypassesVerification","StartedOnboarding","IsGuest","StartedHomeActions","CompletedHomeActions","AutomodQuarantinedUsernameOrGuildNickname","AutomodQuarantinedBio","DmSettingsUpsellAcknowledged"],"ComponentProperty":["id","type","customID","label","style","url","disabled","maxValues","minValues","optionCount","options","optionNames","emoji","optionDescriptions","optionValues","content","accentColor","spoiler","divider","spacing","items","itemUrls","fileUrl","accessory","components","thumbnailUrl"],"ReactionType":["normal","burst"],"ReactionProperty":["emoji","count","burstCount","normalCount","me","meBurst","burstColors"],"AttachmentFlags":["IsRemix"],"MessageFlags":["Crossposted","IsCrosspost","SuppressEmbeds","SourceMessageDeleted","Urgent","HasThread","Ephemeral","Loading","FailedToMentionSomeRolesInThread","ShouldShowLinkNotDiscordWarning","SuppressNotifications","IsVoiceMessage","HasSnapshot","IsComponentsV2"],"StickerReturnType":["id","url"],"MessageType":["Default","RecipientAdd","RecipientRemove","Call","ChannelNameChange","ChannelIconChange","ChannelPinnedMessage","UserJoin","GuildBoost","GuildBoostTier1","GuildBoostTier2","GuildBoostTier3","ChannelFollowAdd","GuildDiscoveryDisqualified","GuildDiscoveryRequalified","GuildDiscoveryGracePeriodInitialWarning","GuildDiscoveryGracePeriodFinalWarning","ThreadCreated","Reply","ChatInputCommand","ThreadStarterMessage","GuildInviteReminder","ContextMenuCommand","AutoModerationAction","RoleSubscriptionPurchase","InteractionPremiumUpsell","StageStart","StageEnd","StageSpeaker","StageRaiseHand","StageTopic","GuildApplicationPremiumSubscription","GuildIncidentAlertModeEnabled","GuildIncidentAlertModeDisabled","GuildIncidentReportRaid","GuildIncidentReportFalseAlarm","PurchaseNotification","PollResult"],"PollLayoutType":["Default"],"RoleFlags":["InPrompt"],"BulkProperty":["messages","contents","users","count"],"VoiceEffectProperty":["emoji","channelID","guildID","userID","soundID","soundVolume","animationID","animationType"],"EmojiProperty":["guildID","name","id","authorID","identifier","requiresColons","roles","managed","timestamp","animated","url","format"],"EntitlementProperty":["userID","consumed","guildId","id","skuID","type","endTimestamp","startTimestamp","active","test","guildSubscription","userSubscription"],"GuildProperty":["id","ownerID","name","description","features","afkChannelID","maximumMembers","systemChannelID","afkTimeout","memberCount","boostCount","timestamp","icon","splash","banner","roles","emojis","stickers","boostLevel","approximateMemberCount","approximatePresenceCount"],"PresenceProperty":["id","guildID","status","platform"],"ScheduledEventProperty":["id","userID","guildID","channelID","name","userCount","description","startTimestamp","endTimestamp","timestamp","url","cover","entityID","location","entityType"],"VoiceStateProperty":["channelID","guildID","authorID","deaf","selfDeaf","guildDeaf","muted","selfMuted","guildMuted","timestamp","selfVideo","streaming","suppressed"],"StickerProperty":["guildID","name","id","timestamp","url","format","available","tags","sortValue","packID","description"],"UserProperty":["id","username","displayName","globalName","badges","avatar","accentColor","banner","timestamp","dmChannelID"],"StickerFormatType":["PNG","APNG","Lottie","GIF"],"StickerType":["Standard","Guild"],"BasicTimeFormat":["Numeric","TwoDigit"],"TimestampStyles":["ShortTime","LongTime","ShortDate","LongDate","ShortDateTime","LongDateTime","RelativeTime"],"ExtendedTimeFormat":["Numeric","TwoDigit","Long","Short","Narrow"],"DateType":["LocaleDate","LocaleTime","Locale","Date","ISO","UTC","Time"],"CalendarType":["Buddhist","Chinese","Coptic","Dangi","Ethioaa","Ethiopic","Gregory","Hebrew","Indian","Islamic","IslamicUmalqura","IslamicTbla","IslamicCivil","IslamicRgsa","Iso8601","Japanese","Persian","Roc"],"UserFlags":["Staff","Partner","Hypesquad","BugHunterLevel1","MFASMS","PremiumPromoDismissed","HypeSquadOnlineHouse1","HypeSquadOnlineHouse2","HypeSquadOnlineHouse3","PremiumEarlySupporter","TeamPseudoUser","HasUnreadUrgentMessages","BugHunterLevel2","VerifiedBot","VerifiedDeveloper","CertifiedModerator","BotHTTPInteractions","Spammer","DisablePremium","ActiveDeveloper","Quarantined","Collaborator","RestrictedCollaborator"],"WebhookType":["Incoming","ChannelFollower","Application"],"ConnectionState":["Connecting","Closed","Closing","Open"]} \ No newline at end of file +{"SortType":["asc","desc"],"AuditLogEvent":["GuildUpdate","ChannelCreate","ChannelUpdate","ChannelDelete","ChannelOverwriteCreate","ChannelOverwriteUpdate","ChannelOverwriteDelete","MemberKick","MemberPrune","MemberBanAdd","MemberBanRemove","MemberUpdate","MemberRoleUpdate","MemberMove","MemberDisconnect","BotAdd","RoleCreate","RoleUpdate","RoleDelete","InviteCreate","InviteUpdate","InviteDelete","WebhookCreate","WebhookUpdate","WebhookDelete","EmojiCreate","EmojiUpdate","EmojiDelete","MessageDelete","MessageBulkDelete","MessagePin","MessageUnpin","IntegrationCreate","IntegrationUpdate","IntegrationDelete","StageInstanceCreate","StageInstanceUpdate","StageInstanceDelete","StickerCreate","StickerUpdate","StickerDelete","GuildScheduledEventCreate","GuildScheduledEventUpdate","GuildScheduledEventDelete","ThreadCreate","ThreadUpdate","ThreadDelete","ApplicationCommandPermissionUpdate","SoundboardSoundCreate","SoundboardSoundUpdate","SoundboardSoundDelete","AutoModerationRuleCreate","AutoModerationRuleUpdate","AutoModerationRuleDelete","AutoModerationBlockMessage","AutoModerationFlagToChannel","AutoModerationUserCommunicationDisabled","AutoModerationQuarantineUser","CreatorMonetizationRequestCreated","CreatorMonetizationTermsAccepted","OnboardingPromptCreate","OnboardingPromptUpdate","OnboardingPromptDelete","OnboardingCreate","OnboardingUpdate","HomeSettingsCreate","HomeSettingsUpdate"],"AuditProperty":["id","targetID","timestamp","reason","executorID","actionType","targetType","action","changes","extra"],"AutoModerationActionType":["BlockMessage","SendAlertMessage","Timeout","BlockMemberInteraction"],"AutoModerationRuleTriggerType":["Keyword","Spam","KeywordPreset","MentionSpam","MemberProfile"],"AutoModerationRuleEventType":["MessageSend","MemberUpdate"],"AutomodRuleProperty":["id","name","authorID","enabled","eventType","triggerType","triggerMetadata","exemptRoles","exemptChannels","actions","keywordFilter","regexPatterns","presets","allowList","mentionTotalLimit","mentionRaidProtectionEnabled"],"AutoModerationRuleKeywordPresetType":["Profanity","SexualContent","Slurs"],"TeamMemberProperty":["id","role","membership"],"ApplicationWebhookEventType":["ApplicationAuthorized","ApplicationDeauthorized","EntitlementCreate","QuestUserEnrollment"],"ApplicationWebhookEventStatus":["Disabled","Enabled","DisabledByDiscord"],"ActivityType":["Playing","Streaming","Listening","Watching","Custom","Competing"],"Status":["Ready","Connecting","Reconnecting","Idle","Nearly","Disconnected","WaitingForGuilds","Identifying","Resuming"],"PermissionFlagsBits":["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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps","PinMessages"],"ChannelType":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"ChannelFlags":["GuildFeedRemoved","Pinned","ActiveChannelsRemoved","RequireTag","IsSpam","IsGuildResourceChannel","ClydeAI","IsScheduledForDeletion","HideMediaDownloadOptions"],"PermissionOverwritesProperty":["id","type","allow","deny"],"PermissionsStateType":["allow","deny"],"VoiceRegionType":["brazil","hongkong","india","japan","rotterdam","russia","singapore","south-korea","southafrica","sydney","us-central","us-east","us-south","us-west"],"WebhookProperty":["id","name","type","avatar","ownerID","channelID","guildID","sourceChannelID","sourceGuildID","timestamp","token","url"],"StageInstancePrivacyLevel":["Public","GuildOnly"],"ForumLayoutType":["NotSet","ListView","GalleryView"],"SortOrderType":["LatestActivity","CreationDate"],"ThreadAutoArchiveDuration":["OneHour","OneDay","ThreeDays","OneWeek"],"ForumTagProperty":["emoji","id","moderated","name"],"StageProperty":["channelID","id","topic","timestamp","guildID","privacyLevel","eventId"],"VideoQualityMode":["Auto","Full"],"ButtonStyle":["Primary","Secondary","Success","Danger","Link","Premium"],"SeparatorSpacingSize":["Small","Large"],"TextInputStyle":["Short","Paragraph"],"Colors":["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"],"EmojiType":["normal","animated"],"ApplicationEmojiProperty":["authorID","name","id","identifier","requiresColons","managed","timestamp","animated","url","format"],"EntitlementType":["Purchase","PremiumSubscription","DeveloperGift","TestModePurchase","FreePurchase","UserGift","PremiumPurchase","ApplicationSubscription"],"InviteProperty":["authorID","channelID","guildID","uses","maxUses","maxAge","timestamp","code","url","type","expiresTimestamp","temporary","deletable","memberCount","presenceCount","targetType","targetUser"],"GuildPreviewProperty":["id","name","description","features","timestamp","icon","splash","emojis","stickers","discoverySplash","approximateMemberCount","approximatePresenceCount"],"TemplateProperty":["code","name","description","guildID","authorID","timestamp","updatedTimestamp","url","usageCount","unSynced"],"GuildDefaultMessageNotifications":["AllMessages","OnlyMentions"],"GuildExplicitContentFilter":["Disabled","MembersWithoutRoles","AllMembers"],"GuildFeature":["AnimatedBanner","AnimatedIcon","ApplicationCommandPermissionsV2","AutoModeration","Banner","Community","CreatorMonetizableProvisional","CreatorStorePage","DeveloperSupportServer","Discoverable","Featurable","HasDirectoryEntry","Hub","InvitesDisabled","InviteSplash","LinkedToHub","MemberVerificationGateEnabled","MoreSoundboard","MonetizationEnabled","MoreStickers","News","Partnered","PreviewEnabled","PrivateThreads","RaidAlertsDisabled","RelayEnabled","RoleIcons","RoleSubscriptionsAvailableForPurchase","RoleSubscriptionsEnabled","Soundboard","TicketedEventsEnabled","VanityURL","Verified","VIPRegions","WelcomeScreenEnabled","GuildTags","EnhancedRoleColors","GuestsEnabled"],"GuildMFALevel":["None","Elevated"],"PresenceStatus":["online","idle","dnd","offline"],"GuildNSFWLevel":["Default","Explicit","Safe","AgeRestricted"],"Locale":["Indonesian","EnglishUS","EnglishGB","Bulgarian","ChineseCN","ChineseTW","Croatian","Czech","Danish","Dutch","Finnish","French","German","Greek","Hindi","Hungarian","Italian","Japanese","Korean","Lithuanian","Norwegian","Polish","PortugueseBR","Romanian","Russian","SpanishES","SpanishLATAM","Swedish","Thai","Turkish","Ukrainian","Vietnamese"],"SoundboardSoundProperty":["name","id","guildID","userID","emoji","volume","timestamp","available","url"],"GuildVerificationLevel":["None","Low","Medium","High","VeryHigh"],"HTTPContentType":["Json","Text"],"AuthorizingIntegrationOwnersType":["Guild","User"],"InteractionContextType":["Guild","BotDM","PrivateChannel"],"MemberProperty":["nickname","displayName","displayColor","roles","flags","mention","avatar","banner","bannable","kickable","guildID","id","manageable","timeout","timedOutUntil","status","addedRoles","roleCount","removedRoles","platform","timestamp","boosting","boostingSince","permissions","avatarDecoration"],"MessageProperty":["id","content","flags","username","type","channelID","guildID","authorID","timestamp","editTimestamp","hasPoll","system","pinned","url","attachments","stickers"],"EmbedProperty":["title","titleURL","authorName","authorIcon","footerText","image","thumbnail","footerIcon","description","timestamp","authorURL","color","fieldName","fieldInline","fieldValue"],"LogType":["Warn","Deprecated","Debug","Info","Error"],"ChannelProperty":["id","name","type","topic","bitrate","members","timestamp","nsfw","flags","parentID","position","rawPosition","slowmode","appliedTags","availableTags","archived","locked"],"SearchMethodType":["startsWith","endsWith","includes"],"RoleProperty":["id","name","icon","color","hoisted","managed","mentionable","rawPosition","position","timestamp","permissions","tags","members","unicodeEmoji","secondaryColor","tertiaryColor"],"ActivityProperty":["name","type","details","buttons","flags","timestamp","endTimestamp","startTimestamp","partyID","partySize","syncID","url","largeText","largeImage","smallText","smallImage"],"CustomStatusType":["state","emoji"],"GuildMemberFlags":["DidRejoin","CompletedOnboarding","BypassesVerification","StartedOnboarding","IsGuest","StartedHomeActions","CompletedHomeActions","AutomodQuarantinedUsernameOrGuildNickname","AutomodQuarantinedBio","DmSettingsUpsellAcknowledged","AutoModQuarantinedGuildTag"],"ComponentProperty":["id","type","customID","label","style","url","disabled","maxValues","minValues","optionCount","options","optionNames","emoji","optionDescriptions","optionValues","content","accentColor","spoiler","divider","spacing","items","itemUrls","fileUrl","accessory","components","thumbnailUrl"],"ReactionType":["normal","burst"],"ReactionProperty":["emoji","count","burstCount","normalCount","me","meBurst","burstColors"],"PollProperty":["question","layoutType","answers","answerCount","totalVotes","expiresTimestamp","allowMultiselect","resultsFinalized"],"AttachmentFlags":["IsRemix"],"MessageFlags":["Crossposted","IsCrosspost","SuppressEmbeds","SourceMessageDeleted","Urgent","HasThread","Ephemeral","Loading","FailedToMentionSomeRolesInThread","ShouldShowLinkNotDiscordWarning","SuppressNotifications","IsVoiceMessage","HasSnapshot","IsComponentsV2"],"StickerReturnType":["id","url"],"MessageType":["Default","RecipientAdd","RecipientRemove","Call","ChannelNameChange","ChannelIconChange","ChannelPinnedMessage","UserJoin","GuildBoost","GuildBoostTier1","GuildBoostTier2","GuildBoostTier3","ChannelFollowAdd","GuildDiscoveryDisqualified","GuildDiscoveryRequalified","GuildDiscoveryGracePeriodInitialWarning","GuildDiscoveryGracePeriodFinalWarning","ThreadCreated","Reply","ChatInputCommand","ThreadStarterMessage","GuildInviteReminder","ContextMenuCommand","AutoModerationAction","RoleSubscriptionPurchase","InteractionPremiumUpsell","StageStart","StageEnd","StageSpeaker","StageRaiseHand","StageTopic","GuildApplicationPremiumSubscription","GuildIncidentAlertModeEnabled","GuildIncidentAlertModeDisabled","GuildIncidentReportRaid","GuildIncidentReportFalseAlarm","PurchaseNotification","PollResult"],"PollLayoutType":["Default"],"RoleColor":["Primary","Secondary","Tertiary"],"RoleFlags":["InPrompt"],"BulkProperty":["messages","contents","timestamps","attachments","stickers","users","count"],"VoiceEffectProperty":["emoji","channelID","guildID","userID","soundID","soundVolume","animationID","animationType"],"EmojiProperty":["guildID","name","id","authorID","identifier","requiresColons","roles","managed","timestamp","animated","url","format"],"EntitlementProperty":["userID","consumed","guildId","id","skuID","type","endTimestamp","startTimestamp","active","test","guildSubscription","userSubscription"],"GuildProperty":["id","ownerID","name","description","features","afkChannelID","maximumMembers","systemChannelID","afkTimeout","memberCount","boostCount","timestamp","icon","splash","banner","roles","emojis","stickers","boostLevel","discoverySplash","approximateMemberCount","approximatePresenceCount"],"PresenceProperty":["id","guildID","status","platform"],"ScheduledEventProperty":["id","userID","guildID","channelID","name","userCount","description","startTimestamp","endTimestamp","timestamp","url","cover","entityID","location","entityType"],"VoiceStateProperty":["channelID","guildID","authorID","deaf","selfDeaf","guildDeaf","muted","selfMuted","guildMuted","timestamp","selfVideo","streaming","suppressed"],"StickerProperty":["id","name","guildID","authorID","timestamp","url","format","available","tags","sortValue","packID","description"],"SubscriptionProperty":["id","userID","status","country","skuIDs","renewalSkuIDs","entitlementIDs","canceledTimestamp","periodEndTimestamp","periodStartTimestamp"],"UserProperty":["id","username","displayName","globalName","badges","avatar","accentColor","banner","timestamp","dmChannelID","avatarDecoration","primaryGuildTag","primaryGuildBadge","primaryGuildEnabled","primaryGuildID"],"StickerFormatType":["PNG","APNG","Lottie","GIF"],"StickerType":["Standard","Guild"],"BasicTimeFormat":["Numeric","TwoDigit"],"TimestampStyles":["ShortTime","LongTime","ShortDate","LongDate","ShortDateTime","LongDateTime","RelativeTime"],"ExtendedTimeFormat":["Numeric","TwoDigit","Long","Short","Narrow"],"DateType":["LocaleDate","LocaleTime","Locale","Date","ISO","UTC","Time"],"CalendarType":["Buddhist","Chinese","Coptic","Dangi","Ethioaa","Ethiopic","Gregory","Hebrew","Indian","Islamic","IslamicUmalqura","IslamicTbla","IslamicCivil","IslamicRgsa","Iso8601","Japanese","Persian","Roc"],"UserFlags":["Staff","Partner","Hypesquad","BugHunterLevel1","MFASMS","PremiumPromoDismissed","HypeSquadOnlineHouse1","HypeSquadOnlineHouse2","HypeSquadOnlineHouse3","PremiumEarlySupporter","TeamPseudoUser","HasUnreadUrgentMessages","BugHunterLevel2","VerifiedBot","VerifiedDeveloper","CertifiedModerator","BotHTTPInteractions","Spammer","DisablePremium","ActiveDeveloper","Quarantined","Collaborator","RestrictedCollaborator"],"WebhookType":["Incoming","ChannelFollower","Application"],"ConnectionState":["Connecting","Closed","Closing","Open"]} \ No newline at end of file diff --git a/metadata/events.json b/metadata/events.json index 5eb422189f..2c4d1d75f2 100644 --- a/metadata/events.json +++ b/metadata/events.json @@ -1 +1 @@ -[{"name":"autoModerationActionExecution","version":"1.2.0","description":"This event is fired when an automod is fired under a message","intents":["Guilds","AutoModerationExecution"]},{"name":"autoModerationRuleCreate","version":"1.5.0","description":"This event is fired when an automod rule is created","intents":["Guilds","AutoModerationConfiguration"]},{"name":"autoModerationRuleDelete","version":"1.5.0","description":"This event is fired when an automod rule is deleted","intents":["Guilds","AutoModerationConfiguration"]},{"name":"autoModerationRuleUpdate","version":"1.5.0","description":"This event is fired when an automod rule is updated","intents":["Guilds","AutoModerationConfiguration"]},{"name":"channelCreate","version":"1.0.1","description":"This event is fired when a channel is created","intents":["Guilds"]},{"name":"channelDelete","version":"1.0.1","description":"This event is fired when a channel is deleted","intents":["Guilds"]},{"name":"channelPinsUpdate","version":"1.4.0","description":"This event is fired when a channel's pins are updated","intents":["Guilds"]},{"name":"channelUpdate","version":"1.0.1","intents":["Guilds"],"description":"This event is fired when a channel is updated"},{"name":"debug","version":"1.0.1","description":"This event is fired when discord.js sends out debug info"},{"name":"emojiCreate","version":"1.0.1","description":"This event is fired when an emoji is created","intents":["GuildExpressions"]},{"name":"emojiDelete","version":"1.0.1","description":"This event is fired when an emoji is deleted","intents":["GuildExpressions"]},{"name":"emojiUpdate","version":"1.0.1","intents":["GuildExpressions"],"description":"This event is fired when an emoji is updated"},{"name":"entitlementCreate","version":"1.5.0","description":"This event is fired when an entitlement is created"},{"name":"entitlementDelete","version":"1.5.0","description":"This event is fired when an entitlement is deleted"},{"name":"entitlementUpdate","version":"1.5.0","description":"This event is fired when an entitlement is updated"},{"name":"error","version":"1.0.1","description":"This event is fired when an error happens on the client"},{"name":"guildAuditLogEntryCreate","version":"1.0.3","description":"This event is fired when a guild audit log entry is created","intents":["Guilds","GuildModeration"]},{"name":"guildAvailable","version":"1.4.0","description":"This event is fired when a guild becomes available","intents":["Guilds"]},{"name":"guildBanAdd","version":"1.4.0","description":"This event is fired when a member is banned from the guild","intents":["GuildMembers","GuildModeration"]},{"name":"guildBanRemove","version":"1.4.0","description":"This event is fired when a member is unbanned from a guild","intents":["GuildMembers","GuildModeration"]},{"name":"guildCreate","version":"1.0.1","description":"This event is fired when the bot is added to a guild","intents":["Guilds"]},{"name":"guildDelete","version":"1.0.1","description":"This event is fired when a guild is deleted","intents":["Guilds"]},{"name":"guildMemberAdd","version":"1.0.1","description":"This event is fired when a member joins the guild","intents":["GuildMembers"]},{"name":"guildMemberAvailable","version":"1.4.0","description":"This event is fired when a member of a guild becomes available","intents":["GuildMembers"]},{"name":"guildMemberRemove","version":"1.0.1","description":"This event is fired when a member leaves, is kicked or banned from a guild","intents":["GuildMembers"]},{"name":"guildMemberUpdate","version":"1.0.1","description":"This event is fired when a member is updated in a guild","intents":["GuildMembers"]},{"name":"guildScheduledEventCreate","version":"1.4.0","description":"This event is called when a scheduled event is created","intents":["GuildScheduledEvents"]},{"name":"guildScheduledEventDelete","version":"1.4.0","description":"This event is called when a scheduled event is deleted","intents":["GuildScheduledEvents"]},{"name":"guildScheduledEventUpdate","version":"1.4.0","description":"This event is called when a scheduled event is updated","intents":["GuildScheduledEvents"]},{"name":"guildScheduledEventUserAdd","version":"1.4.0","description":"This event is called when a user is added to a scheduled event","intents":["GuildScheduledEvents"]},{"name":"guildScheduledEventUserRemove","version":"1.4.0","description":"This event is called when a user is removed from a scheduled event","intents":["GuildScheduledEvents"]},{"name":"guildSoundboardSoundCreate","version":"2.4.0","description":"This event is fired when a soundboard sound is created","intents":["GuildExpressions"]},{"name":"guildSoundboardSoundDelete","version":"2.4.0","description":"This event is fired when a soundboard sound is deleted","intents":["GuildExpressions"]},{"name":"guildSoundboardSoundUpdate","version":"2.4.0","description":"This event is fired when a soundboard sound is updated","intents":["GuildExpressions"]},{"name":"guildUnavailable","version":"1.4.0","description":"This event is fired when a guild becomes unavailable","intents":["Guilds"]},{"name":"guildUpdate","version":"1.0.1","description":"This event is fired when a guild updates their settings","intents":["Guilds"]},{"name":"interactionCreate","version":"1.0.1","description":"This event is fired every time a user uses a slash command, context menu, button, etc"},{"name":"inviteCreate","version":"1.0.3","description":"This event is fired when an invite is created","intents":["Guilds","GuildInvites"]},{"name":"inviteDelete","version":"1.0.3","description":"This event is fired when an invite is deleted","intents":["Guilds","GuildInvites"]},{"name":"messageCreate","version":"1.0.1","description":"This event is fired when someone sends a message","intents":["GuildMessages","DirectMessages"]},{"name":"messageDelete","version":"1.0.1","description":"This event is fired when a message is deleted","intents":["GuildMessages","DirectMessages"]},{"name":"messageDeleteBulk","version":"1.4.0","description":"This event is fired when a row of messages is deleted","intents":["Guilds","GuildMessages"]},{"name":"messagePollVoteAdd","version":"1.5.0","description":"This event is fired when a poll vote is added","intents":["Guilds","GuildMessagePolls","DirectMessagePolls"]},{"name":"messagePollVoteRemove","version":"1.5.0","description":"This event is fired when a poll vote is removed","intents":["Guilds","GuildMessagePolls","DirectMessagePolls"]},{"name":"messageReactionAdd","version":"1.0.1","description":"This event is fired when a reaction is added","intents":["GuildMessageReactions","DirectMessageReactions"]},{"name":"messageReactionRemove","version":"1.0.1","description":"This event is fired when a user stops reacting","intents":["GuildMessageReactions","DirectMessageReactions"]},{"name":"messageReactionRemoveAll","version":"1.4.0","description":"This event is fired when all emojis are removed from a message's reactions","intents":["GuildMessageReactions","DirectMessageReactions"]},{"name":"messageReactionRemoveEmoji","version":"1.4.0","description":"This event is fired when an emoji is removed from a message's reactions","intents":["GuildMessageReactions","DirectMessageReactions"]},{"name":"messageUpdate","version":"1.0.1","description":"This event is fired when a message is updated","intents":["GuildMessages"]},{"name":"presenceUpdate","version":"1.1.0","description":"This event is fired when a presence is updated","intents":["Guilds","GuildPresences"]},{"name":"ready","version":"1.0.1","description":"This event is fired when the bot becomes ready"},{"name":"roleCreate","version":"1.0.1","description":"This event is fired when a role is created","intents":["Guilds"]},{"name":"roleDelete","version":"1.0.1","description":"This event is fired when a role is deleted","intents":["Guilds"]},{"name":"roleUpdate","version":"1.0.1","description":"This event is fired when a role is updated","intents":["Guilds"]},{"name":"shardDisconnect","version":"1.0.1","description":"This event is fired when a shard is disconnected"},{"name":"shardError","version":"1.0.1","description":"This event is fired when a shard throws an error"},{"name":"shardReady","version":"1.0.1","description":"Event is executed when a shard of this bot becomes ready"},{"name":"shardReconnecting","version":"1.0.1","description":"This event is fired when a shard starts reconnecting"},{"name":"shardResume","version":"1.0.1","description":"This event is fired when a shard starts resuming"},{"name":"stageInstanceCreate","version":"1.4.0","description":"This event is fired when a stage is created","intents":["Guilds"]},{"name":"stageInstanceDelete","version":"1.4.0","description":"This event is fired when a stage is deleted","intents":["Guilds"]},{"name":"stageInstanceUpdate","version":"1.4.0","description":"This event is fired when a stage is updated","intents":["Guilds"]},{"name":"stickerCreate","version":"1.4.0","description":"This event is fired when an sticker is created","intents":["GuildExpressions"]},{"name":"stickerDelete","version":"1.4.0","description":"This event is fired when an sticker is deleted","intents":["GuildExpressions"]},{"name":"stickerUpdate","version":"1.4.0","description":"This event is fired when an sticker is updated","intents":["GuildExpressions"]},{"name":"threadCreate","version":"1.4.0","description":"This event is fired when a thread is created","intents":["Guilds"]},{"name":"threadDelete","version":"1.4.0","description":"This event is fired when a thread is deleted","intents":["Guilds"]},{"name":"threadMemberUpdate","version":"1.0.1","description":"This event is fired when a thread member is updated in a guild","intents":["GuildMembers"]},{"name":"threadUpdate","version":"1.4.0","intents":["Guilds"],"description":"This event is fired when a thread is updated"},{"name":"typingStart","version":"1.4.0","description":"This event is fired when a user starts typing","intents":["GuildMessageTyping","DirectMessageTyping"]},{"name":"userUpdate","version":"1.0.1","description":"This event is fired when a user updates their profile","intents":["GuildMembers"]},{"name":"voiceChannelEffectSend","version":"2.3.0","description":"This event is fired when a user sends an effect in a voice channel"},{"name":"voiceStateUpdate","version":"1.0.1","description":"This event is fired when a user joins/leaves a voice channel","intents":["GuildVoiceStates"]}] \ No newline at end of file +[{"name":"autoModerationActionExecution","version":"1.2.0","description":"This event is fired when an automod is fired under a message","intents":["Guilds","AutoModerationExecution"]},{"name":"autoModerationRuleCreate","version":"1.5.0","description":"This event is fired when an automod rule is created","intents":["Guilds","AutoModerationConfiguration"]},{"name":"autoModerationRuleDelete","version":"1.5.0","description":"This event is fired when an automod rule is deleted","intents":["Guilds","AutoModerationConfiguration"]},{"name":"autoModerationRuleUpdate","version":"1.5.0","description":"This event is fired when an automod rule is updated","intents":["Guilds","AutoModerationConfiguration"]},{"name":"channelCreate","version":"1.0.1","description":"This event is fired when a channel is created","intents":["Guilds"]},{"name":"channelDelete","version":"1.0.1","description":"This event is fired when a channel is deleted","intents":["Guilds"]},{"name":"channelPinsUpdate","version":"1.4.0","description":"This event is fired when a channel's pins are updated","intents":["Guilds","DirectMessages"]},{"name":"channelUpdate","version":"1.0.1","intents":["Guilds"],"description":"This event is fired when a channel is updated"},{"name":"clientReady","version":"1.0.1","description":"This event is fired when the bot becomes ready"},{"name":"debug","version":"1.0.1","description":"This event is fired when discord.js sends out debug info"},{"name":"emojiCreate","version":"1.0.1","description":"This event is fired when an emoji is created","intents":["GuildExpressions"]},{"name":"emojiDelete","version":"1.0.1","description":"This event is fired when an emoji is deleted","intents":["GuildExpressions"]},{"name":"emojiUpdate","version":"1.0.1","intents":["GuildExpressions"],"description":"This event is fired when an emoji is updated"},{"name":"entitlementCreate","version":"1.5.0","description":"This event is fired when an entitlement is created"},{"name":"entitlementDelete","version":"1.5.0","description":"This event is fired when an entitlement is deleted"},{"name":"entitlementUpdate","version":"1.5.0","description":"This event is fired when an entitlement is updated"},{"name":"error","version":"1.0.1","description":"This event is fired when an error happens on the client"},{"name":"guildAuditLogEntryCreate","version":"1.0.3","description":"This event is fired when a guild audit log entry is created","intents":["Guilds","GuildModeration"]},{"name":"guildAvailable","version":"1.4.0","description":"This event is fired when a guild becomes available","intents":["Guilds"]},{"name":"guildBanAdd","version":"1.4.0","description":"This event is fired when a member is banned from the guild","intents":["GuildMembers","GuildModeration"]},{"name":"guildBanRemove","version":"1.4.0","description":"This event is fired when a member is unbanned from a guild","intents":["GuildMembers","GuildModeration"]},{"name":"guildCreate","version":"1.0.1","description":"This event is fired when the bot is added to a guild","intents":["Guilds"]},{"name":"guildDelete","version":"1.0.1","description":"This event is fired when a guild is deleted","intents":["Guilds"]},{"name":"guildIntegrationsUpdate","version":"2.5.0","description":"This event is fired when an integration is updated on a guild","intents":["GuildIntegrations"]},{"name":"guildMemberAdd","version":"1.0.1","description":"This event is fired when a member joins the guild","intents":["GuildMembers"]},{"name":"guildMemberAvailable","version":"1.4.0","description":"This event is fired when a member of a guild becomes available","intents":["GuildMembers"]},{"name":"guildMemberRemove","version":"1.0.1","description":"This event is fired when a member leaves, is kicked or banned from a guild","intents":["GuildMembers"]},{"name":"guildMemberUpdate","version":"1.0.1","description":"This event is fired when a member is updated in a guild","intents":["GuildMembers"]},{"name":"guildScheduledEventCreate","version":"1.4.0","description":"This event is called when a scheduled event is created","intents":["GuildScheduledEvents"]},{"name":"guildScheduledEventDelete","version":"1.4.0","description":"This event is called when a scheduled event is deleted","intents":["GuildScheduledEvents"]},{"name":"guildScheduledEventUpdate","version":"1.4.0","description":"This event is called when a scheduled event is updated","intents":["GuildScheduledEvents"]},{"name":"guildScheduledEventUserAdd","version":"1.4.0","description":"This event is called when a user is added to a scheduled event","intents":["GuildScheduledEvents"]},{"name":"guildScheduledEventUserRemove","version":"1.4.0","description":"This event is called when a user is removed from a scheduled event","intents":["GuildScheduledEvents"]},{"name":"guildSoundboardSoundCreate","version":"2.4.0","description":"This event is fired when a soundboard sound is created","intents":["GuildExpressions"]},{"name":"guildSoundboardSoundDelete","version":"2.4.0","description":"This event is fired when a soundboard sound is deleted","intents":["GuildExpressions"]},{"name":"guildSoundboardSoundUpdate","version":"2.4.0","description":"This event is fired when a soundboard sound is updated","intents":["GuildExpressions"]},{"name":"guildUnavailable","version":"1.4.0","description":"This event is fired when a guild becomes unavailable","intents":["Guilds"]},{"name":"guildUpdate","version":"1.0.1","description":"This event is fired when a guild updates their settings","intents":["Guilds"]},{"name":"interactionCreate","version":"1.0.1","description":"This event is fired every time a user uses a slash command, context menu, button, etc"},{"name":"inviteCreate","version":"1.0.3","description":"This event is fired when an invite is created","intents":["Guilds","GuildInvites"]},{"name":"inviteDelete","version":"1.0.3","description":"This event is fired when an invite is deleted","intents":["Guilds","GuildInvites"]},{"name":"messageCreate","version":"1.0.1","description":"This event is fired when someone sends a message","intents":["GuildMessages","DirectMessages"]},{"name":"messageDelete","version":"1.0.1","description":"This event is fired when a message is deleted","intents":["GuildMessages","DirectMessages"]},{"name":"messageDeleteBulk","version":"1.4.0","description":"This event is fired when a row of messages is deleted","intents":["GuildMessages"]},{"name":"messagePollVoteAdd","version":"1.5.0","description":"This event is fired when a poll vote is added","intents":["GuildMessagePolls","DirectMessagePolls"]},{"name":"messagePollVoteRemove","version":"1.5.0","description":"This event is fired when a poll vote is removed","intents":["GuildMessagePolls","DirectMessagePolls"]},{"name":"messageReactionAdd","version":"1.0.1","description":"This event is fired when a reaction is added","intents":["GuildMessageReactions","DirectMessageReactions"]},{"name":"messageReactionRemove","version":"1.0.1","description":"This event is fired when a user stops reacting","intents":["GuildMessageReactions","DirectMessageReactions"]},{"name":"messageReactionRemoveAll","version":"1.4.0","description":"This event is fired when all emojis are removed from a message's reactions","intents":["GuildMessageReactions","DirectMessageReactions"]},{"name":"messageReactionRemoveEmoji","version":"1.4.0","description":"This event is fired when an emoji is removed from a message's reactions","intents":["GuildMessageReactions","DirectMessageReactions"]},{"name":"messageUpdate","version":"1.0.1","description":"This event is fired when a message is updated","intents":["GuildMessages","DirectMessages"]},{"name":"presenceUpdate","version":"1.1.0","description":"This event is fired when a presence is updated","intents":["Guilds","GuildPresences"]},{"name":"roleCreate","version":"1.0.1","description":"This event is fired when a role is created","intents":["Guilds"]},{"name":"roleDelete","version":"1.0.1","description":"This event is fired when a role is deleted","intents":["Guilds"]},{"name":"roleUpdate","version":"1.0.1","description":"This event is fired when a role is updated","intents":["Guilds"]},{"name":"shardDisconnect","version":"1.0.1","description":"This event is fired when a shard is disconnected"},{"name":"shardError","version":"1.0.1","description":"This event is fired when a shard throws an error"},{"name":"shardReady","version":"1.0.1","description":"Event is executed when a shard of this bot becomes ready"},{"name":"shardReconnecting","version":"1.0.1","description":"This event is fired when a shard starts reconnecting"},{"name":"shardResume","version":"1.0.1","description":"This event is fired when a shard starts resuming"},{"name":"stageInstanceCreate","version":"1.4.0","description":"This event is fired when a stage is created","intents":["Guilds"]},{"name":"stageInstanceDelete","version":"1.4.0","description":"This event is fired when a stage is deleted","intents":["Guilds"]},{"name":"stageInstanceUpdate","version":"1.4.0","description":"This event is fired when a stage is updated","intents":["Guilds"]},{"name":"stickerCreate","version":"1.4.0","description":"This event is fired when an sticker is created","intents":["GuildExpressions"]},{"name":"stickerDelete","version":"1.4.0","description":"This event is fired when an sticker is deleted","intents":["GuildExpressions"]},{"name":"stickerUpdate","version":"1.4.0","description":"This event is fired when an sticker is updated","intents":["GuildExpressions"]},{"name":"subscriptionCreate","version":"2.5.0","description":"This event is fired when a subscription is created"},{"name":"subscriptionDelete","version":"2.5.0","description":"This event is fired when a subscription is deleted"},{"name":"subscriptionUpdate","version":"2.5.0","description":"This event is fired when a subscription is updated"},{"name":"threadCreate","version":"1.4.0","description":"This event is fired when a thread is created","intents":["Guilds"]},{"name":"threadDelete","version":"1.4.0","description":"This event is fired when a thread is deleted","intents":["Guilds"]},{"name":"threadMemberUpdate","version":"1.0.1","description":"This event is fired when a thread member is updated in a guild","intents":["Guilds","GuildMembers"]},{"name":"threadUpdate","version":"1.4.0","intents":["Guilds"],"description":"This event is fired when a thread is updated"},{"name":"typingStart","version":"1.4.0","description":"This event is fired when a user starts typing","intents":["GuildMessageTyping","DirectMessageTyping"]},{"name":"userUpdate","version":"1.0.1","description":"This event is fired when a user updates their profile","intents":["GuildMembers"]},{"name":"voiceChannelEffectSend","version":"2.3.0","description":"This event is fired when a user sends an effect in a voice channel","intents":["GuildVoiceStates"]},{"name":"voiceStateUpdate","version":"1.0.1","description":"This event is fired when a user joins/leaves a voice channel","intents":["GuildVoiceStates"]},{"name":"webhooksUpdate","version":"2.5.0","description":"This event is fired when a webhook is updated","intents":["GuildWebhooks"]}] \ No newline at end of file diff --git a/metadata/functions.json b/metadata/functions.json index 58a41a2ba2..f75e0b6598 100644 --- a/metadata/functions.json +++ b/metadata/functions.json @@ -1 +1 @@ -[{"name":"$advancedTextSplit","version":"1.4.0","description":"Split and get all at the same time multiple times","brackets":true,"unwrap":true,"args":[{"name":"text","description":"The text to use","rest":false,"required":true,"type":"String"},{"name":"split;index","rest":true,"type":"String","required":true,"description":"The split followed by the index to get"}],"output":["String"],"category":"array"},{"name":"$arrayAdvancedSort","version":"1.4.0","description":"Advanced array sort","unwrap":false,"brackets":true,"args":[{"name":"variable","description":"The variable the array is held on","type":"String","rest":false,"required":true},{"name":"var1","description":"The $env variable 1 to hold x value","rest":false,"type":"String","required":true},{"name":"var2","description":"The $env variable 2 to hold y value","rest":false,"type":"String","required":true},{"name":"code","description":"Optional code to use for sorting, previous 2 vars must have been given","rest":false,"type":"String","required":true},{"name":"other variable","description":"The variable to load result to, leave empty to return output","rest":false,"required":false,"type":"String"}],"output":["Json"],"category":"array"},{"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}],"output":["Unknown"],"category":"array"},{"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,"category":"array"},{"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, leave empty to return output","rest":false,"required":false,"type":"String"},{"name":"variables","description":"The variable names to concat","rest":true,"type":"String","required":true}],"output":["Json"],"brackets":true,"category":"array"},{"name":"$arrayCreate","version":"1.4.0","aliases":["$arrayNew","$arrayInit"],"brackets":true,"description":"Initializes an array and loads it to a variable","args":[{"name":"variable","description":"The variable to load it to, accessed with $env","type":"String","rest":false,"required":true},{"name":"length","description":"The default length of the array, defaults to 0","rest":false,"required":false,"type":"Number"}],"unwrap":true,"category":"array"},{"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"}],"output":["Boolean"],"brackets":true,"category":"array"},{"name":"$arrayFill","version":"1.4.0","brackets":true,"description":"Fills an array with given value","args":[{"name":"variable","description":"The variable to load array from","type":"String","rest":false,"required":true},{"name":"value","description":"The value to fill the array with","rest":false,"required":true,"type":"Json"}],"unwrap":true,"category":"array"},{"name":"$arrayFindIndex","version":"1.0.0","description":"Finds the index of a first found element in the array","unwrap":false,"output":["Number"],"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,"category":"array"},{"name":"$arrayFindLastIndex","version":"1.5.0","description":"Finds the index of a last found element in the array","unwrap":false,"output":["Number"],"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,"category":"array"},{"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,"category":"array"},{"name":"$arrayIncludes","version":"1.0.0","description":"Checks whether a value exists in an array","unwrap":true,"output":["Boolean"],"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,"category":"array"},{"name":"$arrayIndexOf","version":"1.0.0","description":"Gets the index of a first found element in the array","unwrap":true,"output":["Number"],"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,"category":"array"},{"name":"$arrayJoin","version":"1.0.0","description":"Joins all elements from an array with given separator","unwrap":true,"output":["Unknown[]"],"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,"category":"array"},{"name":"$arrayLastIndexOf","version":"1.5.0","description":"Gets the index of a last found element in the array","unwrap":true,"output":["Number"],"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 last index","rest":false,"required":true,"type":"String"}],"brackets":true,"category":"array"},{"name":"$arrayLength","version":"1.0.0","description":"Returns the numbers of elements in an array","unwrap":true,"output":["Number"],"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"}],"brackets":true,"category":"array"},{"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":false},{"name":"values","description":"The elements of the array","rest":true,"type":"String"}],"unwrap":true,"brackets":true,"category":"array"},{"name":"$arrayMap","version":"1.0.0","description":"Maps through every element of the array and loads the results to another array","unwrap":false,"output":["Json"],"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, leave empty to return output","rest":false,"required":false,"type":"String"}],"brackets":true,"category":"array"},{"name":"$arrayPop","version":"1.0.0","description":"Deletes the last element of the array and returns it","unwrap":true,"output":["Unknown"],"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"}],"brackets":true,"category":"array"},{"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,"category":"array"},{"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,"category":"array"},{"name":"$arrayRandomIndex","version":"1.4.0","description":"Returns a random index","unwrap":true,"output":["Number"],"brackets":true,"args":[{"name":"variable","description":"The variable the array is held on","type":"String","rest":false,"required":true}],"category":"array"},{"name":"$arrayRandomValue","version":"1.4.0","description":"Returns a random element","unwrap":true,"output":["Unknown"],"brackets":true,"args":[{"name":"variable","description":"The variable the array is held on","type":"String","rest":false,"required":true}],"category":"array"},{"name":"$arrayReduce","version":"1.0.0","description":"Reduces an array of elements and returns the result","unwrap":false,"output":["Number"],"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,"category":"array"},{"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, leave empty to return output","rest":false,"type":"String","required":false}],"output":["Json"],"category":"array"},{"name":"$arrayShift","version":"1.0.0","description":"Deletes the first element of the array and returns it","unwrap":true,"output":["Unknown"],"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"}],"brackets":true,"category":"array"},{"name":"$arrayShuffle","version":"1.4.0","description":"Shuffles given array","unwrap":true,"brackets":true,"args":[{"name":"variable","description":"The variable the array is held on","type":"String","rest":false,"required":true}],"category":"array"},{"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, leave empty to return output","rest":false,"type":"String","required":false},{"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"}],"output":["Json"],"category":"array"},{"name":"$arraySome","version":"1.0.0","description":"Loops through every element of the array to find a match","unwrap":false,"output":["Boolean"],"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,"category":"array"},{"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":"other variable","description":"The variable to load result to, leave empty to return output","rest":false,"required":false,"type":"String"},{"name":"sort type","description":"The sort type, omit to use default sort order","rest":false,"type":"Enum","enum":["asc","desc"],"enumName":"SortType"}],"output":["Json"],"category":"array"},{"name":"$arraySplice","version":"1.0.0","description":"Removes x elements starting from y index, returns deleted elements","unwrap":true,"output":["Json"],"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","rest":true,"type":"String"}],"brackets":true,"category":"array"},{"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,"category":"array"},{"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,"category":"array"},{"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,"category":"array"},{"name":"$getSplitTextLength","version":"1.4.0","description":"Gets count of elements from $textSplit","aliases":["$getTextSplitLength"],"output":["Number"],"unwrap":false,"category":"array"},{"name":"$segmentTextSplit","version":"1.5.0","description":"Creates an array on given text using segmenter","brackets":true,"unwrap":true,"args":[{"name":"text","description":"The text to split","rest":false,"required":true,"type":"String"}],"category":"array"},{"name":"$splitText","version":"1.2.0","description":"Gets element of textSplit","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"index","description":"The index to get split at","rest":false,"required":true,"type":"Number"}],"category":"array"},{"name":"$splitTextJoin","version":"1.4.0","description":"Joins all elements from array with given separator","unwrap":true,"aliases":["$textSplitJoin"],"output":["Unknown[]"],"args":[{"name":"separator","description":"The separator to use for every element","rest":false,"type":"String","required":true}],"brackets":true,"category":"array"},{"name":"$textSplit","version":"1.2.0","description":"Creates an array on given text with a separator","brackets":true,"unwrap":true,"args":[{"name":"text","description":"The text to split","rest":false,"required":true,"type":"String"},{"name":"separator","description":"The separator to use","rest":false,"required":true,"type":"String"}],"category":"array"},{"name":"$fetchAuditLog","version":"1.4.0","description":"Fetches an audit log using the type of it","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"guild ID","description":"The guild to get audit log from","rest":false,"required":true,"type":"Guild"},{"name":"type","description":"The event type of the log","rest":false,"required":true,"type":"Enum","enum":["GuildUpdate","ChannelCreate","ChannelUpdate","ChannelDelete","ChannelOverwriteCreate","ChannelOverwriteUpdate","ChannelOverwriteDelete","MemberKick","MemberPrune","MemberBanAdd","MemberBanRemove","MemberUpdate","MemberRoleUpdate","MemberMove","MemberDisconnect","BotAdd","RoleCreate","RoleUpdate","RoleDelete","InviteCreate","InviteUpdate","InviteDelete","WebhookCreate","WebhookUpdate","WebhookDelete","EmojiCreate","EmojiUpdate","EmojiDelete","MessageDelete","MessageBulkDelete","MessagePin","MessageUnpin","IntegrationCreate","IntegrationUpdate","IntegrationDelete","StageInstanceCreate","StageInstanceUpdate","StageInstanceDelete","StickerCreate","StickerUpdate","StickerDelete","GuildScheduledEventCreate","GuildScheduledEventUpdate","GuildScheduledEventDelete","ThreadCreate","ThreadUpdate","ThreadDelete","ApplicationCommandPermissionUpdate","SoundboardSoundCreate","SoundboardSoundUpdate","SoundboardSoundDelete","AutoModerationRuleCreate","AutoModerationRuleUpdate","AutoModerationRuleDelete","AutoModerationBlockMessage","AutoModerationFlagToChannel","AutoModerationUserCommunicationDisabled","CreatorMonetizationRequestCreated","CreatorMonetizationTermsAccepted","OnboardingPromptCreate","OnboardingPromptUpdate","OnboardingPromptDelete","OnboardingCreate","OnboardingUpdate","HomeSettingsCreate","HomeSettingsUpdate"],"enumName":"AuditLogEvent"},{"name":"property","description":"The property to pull from the audit log","rest":false,"required":true,"type":"Enum","enum":["id","targetID","timestamp","reason","executorID","actionType","targetType","action","changes","extra"],"enumName":"AuditProperty"},{"name":"index","description":"The index of the entry to use","rest":false,"type":"Number"},{"name":"separator","description":"The separator to use in case of array output","type":"String","rest":false}],"category":"audit"},{"name":"$fetchAuditLogCount","version":"1.4.0","description":"Fetches audit log count using the type of it","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"guild ID","description":"The guild to get audit log from","rest":false,"required":true,"type":"Guild"},{"name":"type","description":"The event type of the log","rest":false,"required":true,"type":"Enum","enum":["GuildUpdate","ChannelCreate","ChannelUpdate","ChannelDelete","ChannelOverwriteCreate","ChannelOverwriteUpdate","ChannelOverwriteDelete","MemberKick","MemberPrune","MemberBanAdd","MemberBanRemove","MemberUpdate","MemberRoleUpdate","MemberMove","MemberDisconnect","BotAdd","RoleCreate","RoleUpdate","RoleDelete","InviteCreate","InviteUpdate","InviteDelete","WebhookCreate","WebhookUpdate","WebhookDelete","EmojiCreate","EmojiUpdate","EmojiDelete","MessageDelete","MessageBulkDelete","MessagePin","MessageUnpin","IntegrationCreate","IntegrationUpdate","IntegrationDelete","StageInstanceCreate","StageInstanceUpdate","StageInstanceDelete","StickerCreate","StickerUpdate","StickerDelete","GuildScheduledEventCreate","GuildScheduledEventUpdate","GuildScheduledEventDelete","ThreadCreate","ThreadUpdate","ThreadDelete","ApplicationCommandPermissionUpdate","SoundboardSoundCreate","SoundboardSoundUpdate","SoundboardSoundDelete","AutoModerationRuleCreate","AutoModerationRuleUpdate","AutoModerationRuleDelete","AutoModerationBlockMessage","AutoModerationFlagToChannel","AutoModerationUserCommunicationDisabled","CreatorMonetizationRequestCreated","CreatorMonetizationTermsAccepted","OnboardingPromptCreate","OnboardingPromptUpdate","OnboardingPromptDelete","OnboardingCreate","OnboardingUpdate","HomeSettingsCreate","HomeSettingsUpdate"],"enumName":"AuditLogEvent"},{"name":"user","rest":false,"description":"The user to filter by","type":"User"}],"category":"audit"},{"name":"$fetchUserAuditLog","version":"1.4.0","description":"Fetches an audit log from a user using the type of it","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"guild ID","description":"The guild to get audit log from","rest":false,"required":true,"type":"Guild"},{"name":"user","rest":false,"description":"The user to filter by","type":"User"},{"name":"type","description":"The event type of the log","rest":false,"required":true,"type":"Enum","enum":["GuildUpdate","ChannelCreate","ChannelUpdate","ChannelDelete","ChannelOverwriteCreate","ChannelOverwriteUpdate","ChannelOverwriteDelete","MemberKick","MemberPrune","MemberBanAdd","MemberBanRemove","MemberUpdate","MemberRoleUpdate","MemberMove","MemberDisconnect","BotAdd","RoleCreate","RoleUpdate","RoleDelete","InviteCreate","InviteUpdate","InviteDelete","WebhookCreate","WebhookUpdate","WebhookDelete","EmojiCreate","EmojiUpdate","EmojiDelete","MessageDelete","MessageBulkDelete","MessagePin","MessageUnpin","IntegrationCreate","IntegrationUpdate","IntegrationDelete","StageInstanceCreate","StageInstanceUpdate","StageInstanceDelete","StickerCreate","StickerUpdate","StickerDelete","GuildScheduledEventCreate","GuildScheduledEventUpdate","GuildScheduledEventDelete","ThreadCreate","ThreadUpdate","ThreadDelete","ApplicationCommandPermissionUpdate","SoundboardSoundCreate","SoundboardSoundUpdate","SoundboardSoundDelete","AutoModerationRuleCreate","AutoModerationRuleUpdate","AutoModerationRuleDelete","AutoModerationBlockMessage","AutoModerationFlagToChannel","AutoModerationUserCommunicationDisabled","CreatorMonetizationRequestCreated","CreatorMonetizationTermsAccepted","OnboardingPromptCreate","OnboardingPromptUpdate","OnboardingPromptDelete","OnboardingCreate","OnboardingUpdate","HomeSettingsCreate","HomeSettingsUpdate"],"enumName":"AuditLogEvent"},{"name":"property","description":"The property to pull from the audit log","rest":false,"required":true,"type":"Enum","enum":["id","targetID","timestamp","reason","executorID","actionType","targetType","action","changes","extra"],"enumName":"AuditProperty"},{"name":"index","description":"The index of the entry to use","rest":false,"type":"Number"},{"name":"separator","description":"The separator to use in case of array output","type":"String","rest":false}],"category":"audit"},{"name":"$automodActionType","version":"1.2.0","description":"Returns the action type automod used","unwrap":false,"output":["AutoModerationActionType"],"category":"automod"},{"name":"$automodAlertSystemMessageID","version":"1.2.0","description":"Returns the message sent by automod","unwrap":false,"output":["Message"],"category":"automod"},{"name":"$automodChannelID","version":"1.2.0","description":"Returns the channel id for automod","unwrap":false,"output":["Channel"],"category":"automod"},{"name":"$automodContent","version":"1.2.0","description":"Returns the content automod acted upon","unwrap":false,"output":["String"],"category":"automod"},{"name":"$automodCustomMessage","version":"1.2.0","description":"Returns the custom message used by automod on this detection","unwrap":false,"output":["String"],"category":"automod"},{"name":"$automodDuration","version":"1.2.0","description":"Returns the duration in ms by this automod action","unwrap":false,"output":["Number"],"category":"automod"},{"name":"$automodMatchedContent","version":"1.2.0","description":"Returns the matched content automod acted upon","unwrap":false,"output":["String"],"category":"automod"},{"name":"$automodMatchedKeyword","version":"1.2.0","description":"Returns the matched keyword the automod caught","unwrap":false,"output":["String"],"category":"automod"},{"name":"$automodRuleID","version":"1.2.0","description":"Returns the rule id used by automod","unwrap":false,"output":["AutomodRule"],"category":"automod"},{"name":"$automodRuleTriggerType","version":"1.2.0","description":"Returns the rule trigger type used by automod","unwrap":false,"output":["AutoModerationRuleTriggerType"],"category":"automod"},{"name":"$createAutomodRule","version":"1.5.0","description":"Creates a new automod rule for a guild, returns rule id","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to create automod rule on","rest":false,"required":true,"type":"Guild"},{"name":"name","description":"The name of the automod rule","rest":false,"required":true,"type":"String"},{"name":"trigger","description":"The trigger type of the automod rule","rest":false,"required":true,"type":"Enum","enum":["Keyword","Spam","KeywordPreset","MentionSpam","MemberProfile"],"enumName":"AutoModerationRuleTriggerType"},{"name":"event","description":"The event type of the automod rule","rest":false,"required":true,"type":"Enum","enum":["MessageSend","MemberUpdate"],"enumName":"AutoModerationRuleEventType"},{"name":"enabled","description":"Whether the automod rule should be enabled","rest":false,"required":false,"type":"Boolean"},{"name":"reason","description":"The reason for creating the automod rule","rest":false,"required":false,"type":"String"}],"output":["AutomodRule"],"category":"automod"},{"name":"$deleteAutomodRule","version":"1.5.0","description":"Deletes an automod rule from a guild, returns bool","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to delete automod rule from","rest":false,"required":true,"type":"Guild"},{"name":"rule ID","description":"The id of the automod rule to delete","rest":false,"required":true,"type":"AutomodRule","pointer":0},{"name":"reason","description":"The reason for deleting the rule","rest":false,"type":"String"}],"output":["Boolean"],"category":"automod"},{"name":"$editAutomodRule","version":"1.5.0","description":"Edits an automod rule on a guild, returns bool","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to edit automod rule on","rest":false,"required":true,"type":"Guild"},{"name":"rule ID","description":"The id of the automod rule to edit","rest":false,"required":true,"type":"AutomodRule","pointer":0},{"name":"name","description":"The new name for the automod rule","rest":false,"type":"String"},{"name":"event","description":"The new event type for the automod rule","rest":false,"type":"Enum","enum":["MessageSend","MemberUpdate"],"enumName":"AutoModerationRuleEventType"},{"name":"enabled","description":"Whether the automod rule should be enabled","rest":false,"required":false,"type":"Boolean"},{"name":"reason","description":"The reason for editing the automod rule","rest":false,"required":false,"type":"String"}],"output":["Boolean"],"category":"automod"},{"name":"$getAutomodRule","version":"1.5.0","description":"Returns an automod rule of a guild","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to get automod rule from","rest":false,"required":true,"type":"Guild"},{"name":"rule ID","description":"The id of the automod rule to get","rest":false,"required":true,"type":"AutomodRule","pointer":0},{"name":"property","description":"The property of the automod rule to return","rest":false,"type":"Enum","enum":["id","name","authorID","enabled","eventType","triggerType","triggerMetadata","exemptRoles","exemptChannels","actions","keywordFilter","regexPatterns","presets","allowList","mentionTotalLimit","mentionRaidProtectionEnabled"],"enumName":"AutomodRuleProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"output":["Json","Unknown"],"category":"automod"},{"name":"$setAutomodAction","version":"1.5.0","description":"Sets a new action for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"type","description":"The type of the automod rule action","rest":false,"required":true,"type":"Enum","enum":["BlockMessage","SendAlertMessage","Timeout","BlockMemberInteraction"],"enumName":"AutoModerationActionType"},{"name":"channel ID","description":"The channel to which content will be logged","rest":false,"type":"Channel"},{"name":"duration","description":"The timeout duration in seconds","rest":false,"type":"Number"},{"name":"message","description":"The custom message that is shown whenever a message is blocked","rest":false,"type":"String"}],"category":"automod"},{"name":"$setAutomodAllowList","version":"1.5.0","description":"Sets allowed words for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"words","description":"The words to allow and whitelist","rest":true,"required":true,"type":"String"}],"category":"automod"},{"name":"$setAutomodExemptChannels","version":"1.5.0","description":"Sets exempt channels for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"channels","description":"The channels that should not be affected by the automod rule","rest":true,"required":true,"type":"String"}],"category":"automod"},{"name":"$setAutomodExemptRoles","version":"1.5.0","description":"Sets exempt roles for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"roles","description":"The roles that should not be affected by the automod rule","rest":true,"required":true,"type":"String"}],"category":"automod"},{"name":"$setAutomodKeywordFilter","version":"1.5.0","description":"Sets disallowed words for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"words","description":"The words to disallow and blacklist","rest":true,"required":true,"type":"String"}],"category":"automod"},{"name":"$setAutomodMentionRaidProtection","version":"1.5.0","description":"Sets mention raid protection for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"enabled","description":"Whether to enable mention raid protection","rest":false,"required":true,"type":"Boolean"}],"category":"automod"},{"name":"$setAutomodMentionTotalLimit","version":"1.5.0","description":"Sets a total mention limit for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"limit","description":"The limit of mentions to set","rest":false,"required":true,"type":"Number"}],"category":"automod"},{"name":"$setAutomodPresets","version":"1.5.0","description":"Sets preset keyword wordsets for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"presets","description":"The preset keyword types to set","rest":true,"required":true,"type":"Enum","enum":["Profanity","SexualContent","Slurs"],"enumName":"AutoModerationRuleKeywordPresetType"}],"category":"automod"},{"name":"$setAutomodRegexFilter","version":"1.5.0","description":"Sets regex filter for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"regexes","description":"The regexes to use for filtering","rest":true,"required":true,"type":"String"}],"category":"automod"},{"name":"$applicationCommandCount","version":"1.4.0","aliases":["$slashCommandCount"],"description":"Returns the amount of application commands registered by this bot","output":["Number"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get application command count from","rest":false,"type":"Guild"},{"name":"count sub","description":"Whether to count sub commands","rest":false,"type":"Boolean"}],"category":"bot"},{"name":"$applicationCommands","version":"1.5.0","description":"Returns all application commands","output":["Json"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get application commands from","rest":false,"required":true,"type":"Guild"}],"category":"bot"},{"name":"$botCount","version":"1.0.0","description":"Returns the bot count of the bot","unwrap":false,"output":["Number"],"category":"bot"},{"name":"$botCustomInvite","version":"1.5.0","description":"Returns the client's custom invite link","unwrap":false,"aliases":["$clientCustomInvite"],"output":["URL"],"category":"bot"},{"name":"$botDescription","version":"1.5.0","aliases":["$clientDescription"],"description":"Returns the description of the bot","unwrap":false,"output":["String"],"category":"bot"},{"name":"$botDestroy","version":"1.0.0","aliases":["$clientDestroy"],"description":"Destroys the discord.js client","unwrap":false,"category":"bot"},{"name":"$botID","version":"1.0.0","description":"Returns the client's id","unwrap":false,"aliases":["$clientID"],"output":["User"],"category":"bot"},{"name":"$botInvite","version":"1.0.0","description":"Returns a bot's invite link","brackets":false,"unwrap":true,"aliases":["$clientInvite","$getBotInvite"],"args":[{"name":"perms","description":"The perms for the invite link","rest":true,"type":"String","required":true}],"output":["URL"],"category":"bot"},{"name":"$botMutualGuilds","version":"1.5.0","aliases":["$clientMutualGuilds"],"description":"Returns the client's mutual guilds with a user","unwrap":true,"args":[{"name":"user ID","description":"The user to get mutual guilds from","rest":false,"required":true,"type":"User"},{"name":"separator","description":"The separator to use for every guild","rest":false,"type":"String"}],"brackets":false,"output":["Guild[]"],"category":"bot"},{"name":"$botOwnerID","version":"1.0.0","description":"Returns the bot's owner id or team members","brackets":false,"aliases":["$clientOwnerID"],"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"}],"output":["User[]"],"unwrap":true,"category":"bot"},{"name":"$botTags","version":"1.5.0","description":"Returns the client tags","unwrap":true,"aliases":["$clientTags"],"args":[{"name":"separator","description":"The separator to use for every tag","rest":false,"type":"String"}],"brackets":false,"output":["String[]"],"category":"bot"},{"name":"$botTeamCreatedAt","version":"2.4.0","description":"Returns the client's team creation timestamp","aliases":["$clientTeamCreatedAt"],"unwrap":false,"output":["Number"],"category":"bot"},{"name":"$botTeamID","version":"2.4.0","description":"Returns the client's team id","aliases":["$clientTeamID"],"unwrap":false,"output":["String"],"category":"bot"},{"name":"$botTeamIcon","version":"2.4.0","description":"Returns the client's team icon","aliases":["$clientTeamIcon"],"unwrap":true,"brackets":false,"args":[{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"output":["URL"],"category":"bot"},{"name":"$botTeamMembers","version":"2.4.0","description":"Returns the client's team members","aliases":["$clientTeamMembers"],"unwrap":true,"brackets":false,"args":[{"name":"property","description":"The property of each team member to return","rest":false,"required":true,"type":"Enum","enum":["id","role","membership"],"enumName":"TeamMemberProperty"},{"name":"separator","description":"The separator to use for every property","rest":false,"type":"String"}],"output":["Unknown[]"],"category":"bot"},{"name":"$botTeamName","version":"2.4.0","description":"Returns the client's team name","aliases":["$clientTeamName"],"unwrap":false,"output":["String"],"category":"bot"},{"name":"$botToken","version":"1.0.0","description":"Returns the client token","unwrap":false,"aliases":["$clientToken"],"output":["String"],"category":"bot"},{"name":"$botUserAuthorizationCount","version":"2.4.0","aliases":["$clientUserAuthorizationCount"],"description":"Returns the user authorization count of the bot","unwrap":false,"output":["Number"],"category":"bot"},{"name":"$botUserInstallCount","version":"1.5.0","aliases":["$clientUserInstallCount"],"description":"Returns the user install count of the bot","unwrap":false,"output":["Number"],"category":"bot"},{"name":"$botWebhookEvents","version":"2.2.0","description":"Returns the client webhook event types","aliases":["$clientWebhookEvents"],"unwrap":true,"brackets":false,"args":[{"name":"separator","description":"The separator to use for every type","rest":false,"type":"String"}],"output":["ApplicationWebhookEventType[]"],"category":"bot"},{"name":"$botWebhookStatus","version":"2.2.0","description":"Returns the client webhook event status","unwrap":false,"aliases":["$clientWebhookStatus"],"output":["ApplicationWebhookEventStatus"],"category":"bot"},{"name":"$botWebhookURL","version":"2.2.0","description":"Returns the client webhook event url","unwrap":false,"aliases":["$clientWebhookURL"],"output":["URL"],"category":"bot"},{"name":"$deleteGlobalApplicationCommands","version":"2.3.0","description":"Deletes all global commands of your bot","unwrap":false,"output":["Boolean"],"category":"bot"},{"name":"$extensionVersion","version":"1.4.0","brackets":true,"unwrap":true,"description":"Returns the version an extension is running on","output":["String"],"args":[{"name":"name","description":"The extension name to retrieve its version","rest":false,"required":true,"type":"String"}],"category":"bot"},{"name":"$hasExtension","version":"1.2.0","description":"Checks whether client has an extension","unwrap":true,"brackets":true,"args":[{"name":"name","description":"The extension name to check for","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"bot"},{"name":"$ping","version":"1.0.0","description":"The current bot ping","unwrap":false,"aliases":["$clientPing","$botPing"],"output":["Number"],"category":"bot"},{"name":"$setBotAvatar","version":"1.0.0","description":"Sets the bot profile icon","brackets":true,"unwrap":true,"aliases":["$setClientAvatar"],"args":[{"name":"url","description":"The icon url","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"bot"},{"name":"$setBotBanner","version":"1.5.0","description":"Sets the bot banner","brackets":true,"unwrap":true,"aliases":["$setClientBanner"],"args":[{"name":"url","description":"The banner url","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"bot"},{"name":"$setBotDescription","version":"1.5.0","description":"Sets the bot description","aliases":["$setClientDescription"],"brackets":true,"unwrap":true,"args":[{"name":"description","description":"The new description","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"bot"},{"name":"$setBotName","version":"1.0.0","description":"Sets the bot name","brackets":true,"unwrap":true,"aliases":["$setClientName"],"args":[{"name":"name","description":"The new name","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"bot"},{"name":"$setBotTags","version":"1.5.0","description":"Sets the bot tags","aliases":["$setClientTags"],"brackets":true,"unwrap":true,"args":[{"name":"tags","description":"The new tags","rest":true,"required":true,"type":"String"}],"output":["Boolean"],"category":"bot"},{"name":"$setStatus","version":"1.0.0","description":"Sets the client's status","unwrap":true,"aliases":["$setBotStatus","$setClientStatus"],"args":[{"name":"presence","description":"The presence status","type":"String","rest":false,"required":true},{"name":"type","description":"The activity type","rest":false,"type":"Enum","enum":["Playing","Streaming","Listening","Watching","Custom","Competing"],"required":true,"enumName":"ActivityType"},{"name":"name","description":"The status name","rest":false,"type":"String","required":true},{"name":"state","description":"The status state","rest":false,"type":"String"},{"name":"url","description":"The url to use for the stream","rest":false,"type":"String"}],"brackets":true,"category":"bot"},{"name":"$shardCount","version":"2.1.0","aliases":["$botShardCount","$clientShardCount"],"description":"Returns the shard count of the client","unwrap":false,"output":["Number"],"category":"bot"},{"name":"$shardID","version":"1.0.0","aliases":["$botShardIDs","$clientShardIDs"],"description":"Returns the shard id of the client","unwrap":true,"brackets":false,"args":[{"name":"separator","description":"The separator to use for every id","rest":false,"type":"String"}],"output":["Number"],"category":"bot"},{"name":"$shardStatus","version":"2.1.0","aliases":["$botShardStatus","$clientShardStatus"],"description":"Returns the shard status of the client","unwrap":true,"brackets":false,"args":[{"name":"separator","description":"The separator to use for every status","rest":false,"type":"String"}],"output":["Status[]"],"category":"bot"},{"name":"$updateApplicationCommands","version":"1.2.0","description":"Updates application commands, also registers new ones","unwrap":false,"category":"bot"},{"name":"$updateCommands","version":"1.0.2","description":"Updates bot commands, also registers new ones","unwrap":false,"category":"bot"},{"name":"$uptime","version":"1.0.0","aliases":["$botUptime","$clientUptime"],"output":["Number"],"description":"Returns the bots uptime","unwrap":false,"category":"bot"},{"name":"$version","version":"1.0.0","description":"Returns the package version the client is using","unwrap":false,"output":["String"],"aliases":["$packageVersion"],"category":"bot"},{"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[]","rest":false,"required":true,"type":"String"},{"name":"bytes","description":"The number of bytes to alloc","type":"Number","rest":false,"required":true}],"category":"buffer"},{"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[]","rest":false,"required":true,"type":"String"},{"name":"bytes","description":"The number of bytes to alloc","type":"Number","rest":false,"required":true}],"category":"buffer"},{"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}],"output":["Number"],"category":"buffer"},{"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}],"output":["Number"],"category":"buffer"},{"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}],"output":["String"],"category":"buffer"},{"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}],"category":"buffer"},{"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}],"output":["String"],"category":"buffer"},{"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}],"category":"buffer"},{"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}],"category":"buffer"},{"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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps"],"enumName":"PermissionFlagsBits"}],"output":["Boolean"],"category":"channel"},{"name":"$addForumTags","version":"1.5.0","aliases":["$addPostTags"],"description":"Adds tags to a forum post, returns bool","unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","rest":false,"required":true,"type":"Channel","description":"The post to edit tags on"},{"name":"reason","description":"The reason for adding post tags","rest":false,"type":"String"},{"name":"tags","description":"The tags for the post","rest":true,"required":true,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$addThreadMember","version":"1.0.0","description":"Adds a member to a thread, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"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"}],"category":"channel"},{"name":"$archiveThread","version":"1.0.0","aliases":["$archivePost"],"description":"Archives a thread, returns bool","brackets":false,"unwrap":true,"output":["Boolean"],"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"}],"category":"channel"},{"name":"$channelBitrate","version":"1.4.0","description":"Returns the bitrate of the voice channel","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelCategoryID","version":"1.0.0","description":"Returns the channel category id","aliases":["$channelParentID"],"unwrap":true,"brackets":false,"output":["Channel"],"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelChildrenCount","version":"1.0.3","description":"Returns the amount of children this category has","brackets":false,"output":["Number"],"unwrap":true,"args":[{"name":"channel ID","description":"The category to get its child count","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelChildrenIDs","version":"1.0.3","description":"Returns the children ids this category has","brackets":false,"output":["Channel[]"],"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"}],"category":"channel"},{"name":"$channelCount","version":"1.0.0","description":"Returns the channel count of all servers","brackets":false,"unwrap":true,"output":["Number"],"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","enumName":"ChannelType"}],"category":"channel"},{"name":"$channelCreatedAt","version":"1.0.0","description":"Returns the channel timestamp","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelDeletable","version":"2.4.0","description":"Returns whether the channel is deletable","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"output":["Boolean"],"category":"channel"},{"name":"$channelExists","version":"1.0.0","description":"Returns whether a channel id exists","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to check","rest":false,"required":true,"type":"String"}],"category":"channel"},{"name":"$channelFlags","version":"1.5.0","description":"Returns the flags of a channel","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true},{"name":"separator","description":"The separator to use for every flag","type":"String","required":false,"rest":false}],"output":["ChannelFlags[]"],"category":"channel"},{"name":"$channelFull","version":"1.4.0","description":"Returns whether the voice channel is full","unwrap":true,"brackets":false,"output":["Boolean"],"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelGuildID","version":"1.0.0","description":"Returns the channel guild id","unwrap":true,"output":["Guild"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelHasAnyPerms","version":"1.4.0","aliases":["$channelHasAnyPerm"],"description":"Returns whether role or member has any of the perms in a channel","output":["Boolean"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or user to get perms of","rest":false,"required":true,"type":"String"},{"name":"permissions","description":"The perms to check for","rest":true,"required":true,"type":"Enum","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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps"],"enumName":"PermissionFlagsBits"}],"brackets":true,"category":"channel"},{"name":"$channelHasPerms","version":"1.4.0","description":"Returns whether role or member has perms in a channel","output":["Boolean"],"aliases":["$hasChannelPerm","$hasChannelPerms"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or user to get perms of","rest":false,"required":true,"type":"String"},{"name":"permissions","description":"The perms to check for","rest":true,"required":true,"type":"Enum","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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps"],"enumName":"PermissionFlagsBits"}],"brackets":true,"category":"channel"},{"name":"$channelID","version":"1.0.0","description":"Gets the channel id of a channel name","unwrap":true,"output":["Channel"],"brackets":false,"args":[{"name":"name","description":"The channel name to get its id","required":true,"rest":true,"type":"String"}],"category":"channel"},{"name":"$channelIDs","version":"1.3.0","unwrap":true,"brackets":false,"output":["Channel[]"],"description":"Returns every channel id","args":[{"name":"separator","description":"The separator to use for every channel","rest":false,"type":"String"}],"category":"channel"},{"name":"$channelIsChildrenOf","version":"1.5.0","aliases":["$isChildrenOf"],"description":"Checks whether given channel is a children of a category","output":["Boolean"],"brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to know if is children of category","rest":false,"type":"Channel","required":true},{"name":"category ID","description":"The category to check against","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelJoinable","version":"1.4.0","description":"Returns whether the voice channel is joinable by the bot","unwrap":true,"output":["Boolean"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelManageable","version":"2.4.0","description":"Returns whether the channel is manageable","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"output":["Boolean"],"category":"channel"},{"name":"$channelMembers","version":"1.5.0","description":"Returns the members of a channel","unwrap":true,"output":["Member[]"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel to get its members","rest":false,"required":true,"type":"Channel"},{"name":"separator","description":"The separator to use for each member","rest":false,"type":"String"}],"category":"channel"},{"name":"$channelNSFW","version":"1.0.0","description":"Returns whether the channel is nsfw","unwrap":true,"brackets":false,"output":["Boolean"],"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelName","version":"1.0.0","description":"Returns the channel name","unwrap":true,"output":["String"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelNames","version":"1.0.0","description":"Returns the channel names of a guild","brackets":false,"output":["String[]"],"args":[{"name":"guild ID","description":"The guild to return the channels of","rest":false,"type":"Guild","required":true},{"name":"separator","description":"The separator to use for each channel","rest":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$channelPermissions","version":"1.5.0","description":"Returns all permission overwrites of a channel","aliases":["$channelPerms","$channelOverwrites"],"unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to get perms from","rest":false,"required":true,"type":"Channel"},{"name":"property","description":"The property of the overwrites to return","rest":false,"required":true,"type":"Enum","enum":["id","type","allow","deny"],"enumName":"PermissionOverwritesProperty"},{"name":"separator","description":"The separator to use for every overwrite","rest":false,"type":"String"}],"output":["Unknown[]"],"category":"channel"},{"name":"$channelPermissionsFor","version":"1.4.0","description":"Returns permissions for a role or member in a channel","aliases":["$channelPermsFor","$memberChannelPerms","$roleChannelPerms"],"output":["PermissionFlagsBits[]"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or user to get perms for","rest":false,"required":true,"type":"String"},{"name":"separator","description":"The separator to use for every perm","rest":false,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$channelPermissionsOf","version":"1.5.0","description":"Returns specific permissions of a role or member in a channel","aliases":["$channelPermsOf"],"output":["PermissionFlagsBits[]"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or user to get perms of","rest":false,"required":true,"type":"String"},{"name":"state","description":"The state of the perms to return","rest":false,"required":true,"type":"Enum","enum":["allow","deny"],"enumName":"PermissionsStateType"},{"name":"separator","description":"The separator to use for every perm","rest":false,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$channelPinnedMessages","version":"1.5.0","description":"Returns the pinned messages of a channel","brackets":false,"aliases":["$pinnedMessages"],"unwrap":true,"output":["Message[]"],"args":[{"name":"channel ID","description":"The channel to pull pinned messages from","rest":false,"required":true,"type":"Channel"},{"name":"separator","description":"The separator to use for every message id","rest":false,"type":"String"}],"category":"channel"},{"name":"$channelPosition","version":"1.0.3","description":"Returns the channel position","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"channel ID","description":"The id of the channel to get its position","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelRawData","version":"1.5.0","description":"Returns the raw data of a channel","unwrap":true,"brackets":false,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get raw data from","type":"Channel"}],"output":["Json"],"category":"channel"},{"name":"$channelSlowmode","version":"1.5.0","description":"Returns the channel slowmode in seconds","unwrap":true,"output":["Number"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel to get its slowmode","rest":false,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$channelTags","version":"1.0.3","description":"Retrieves tags from a forum thread","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to get tags of","rest":false,"required":true,"type":"Channel"},{"name":"separator","description":"The separator to use for every tag","rest":false,"type":"String"}],"output":["ForumTag[]"],"category":"channel"},{"name":"$channelTopic","version":"1.0.0","description":"Returns the channel topic","unwrap":true,"output":["String"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelType","version":"1.0.0","description":"Returns the channel type","unwrap":true,"output":["ChannelType"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelURL","version":"2.4.0","description":"Returns the url of a channel","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"output":["URL"],"category":"channel"},{"name":"$channelUserLimit","version":"1.4.0","description":"Returns the user limit of the voice channel","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelVoiceMemberCount","version":"1.4.0","description":"Returns the member count that are connected to this voice channel","unwrap":true,"aliases":["$channelMemberCount"],"output":["Number"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelVoiceMemberIDs","version":"1.4.0","description":"Returns the members that are connected to this voice channel","unwrap":true,"aliases":["$channelMemberIDs"],"output":["Member[]"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true},{"name":"separator","rest":false,"description":"Separator to use for every id","required":false,"type":"String"}],"category":"channel"},{"name":"$channelVoiceRegion","version":"1.5.0","description":"Returns the region of a voice channel","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to get its region","rest":false,"required":true,"type":"Channel"}],"output":["VoiceRegionType"],"category":"channel"},{"name":"$channelWebhooks","version":"2.3.0","description":"Returns all webhooks of a channel","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get its webhooks","rest":false,"type":"Channel","required":true},{"name":"property","description":"The property to return","rest":false,"type":"Enum","enum":["id","name","type","avatar","ownerID","channelID","guildID","sourceChannelID","sourceGuildID","timestamp","token","url"],"enumName":"WebhookProperty"},{"name":"separator","description":"The separator to use for every property","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"channel"},{"name":"$clearChannelPerms","version":"1.0.3","description":"Deletes all permission overwrites from the channel or given id, returns bool","brackets":true,"output":["Boolean"],"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":false,"type":"String"}],"category":"channel"},{"name":"$clearMessages","version":"1.0.0","description":"Clears x amount of messages from a channel, returns the number of messages deleted","unwrap":true,"output":["Number"],"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":"delete pinned","description":"Whether to delete pinned messages","rest":false,"type":"Boolean"},{"name":"delete bots","description":"Whether to delete messages of bots","rest":false,"type":"Boolean"}],"category":"channel"},{"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,"output":["Number"],"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":"delete pinned","description":"Whether to delete pinned messages","rest":false,"type":"Boolean"}],"category":"channel"},{"name":"$cloneChannel","version":"1.4.0","description":"Clones the given channel","brackets":true,"output":["Channel"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to clone","type":"Channel","rest":false,"required":true},{"name":"name","description":"The name for the cloned channel","type":"String","rest":false}],"category":"channel"},{"name":"$cloneChannelPerms","version":"1.5.0","description":"Clones the given channel's perms to another channel, returns bool","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to clone its perms","type":"Channel","rest":false,"required":true},{"name":"channel ID","description":"The other channel to set new perms for","type":"Channel","rest":false,"required":true}],"output":["Boolean"],"category":"channel"},{"name":"$createChannel","version":"1.0.0","description":"Creates a channel in a guild, returns the channel id","unwrap":true,"brackets":true,"output":["Channel"],"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,"enumName":"ChannelType"},{"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"}],"category":"channel"},{"name":"$createForumPost","version":"1.0.0","description":"Creates a forum post, returns the post channel id","unwrap":true,"output":["Channel"],"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,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$createInvite","version":"1.1.0","brackets":true,"description":"Creates an invite, returns the code","unwrap":true,"output":["Invite"],"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":"max age","description":"The max age for this invite","rest":false,"type":"Number"},{"name":"reason","description":"The reason for creating this invite","rest":false,"type":"String"}],"category":"channel"},{"name":"$createStageInstance","version":"2.3.0","description":"Creates a new stage instance, returns instance id","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to create stage instance on","rest":false,"required":true,"type":"Channel"},{"name":"topic","description":"The topic of the stage instance","rest":false,"required":true,"type":"String"},{"name":"privacy level","description":"The privacy level of the stage instance","rest":false,"type":"Enum","enum":["Public","GuildOnly"],"enumName":"StageInstancePrivacyLevel"},{"name":"notify","description":"Whether to notify @everyone that the stage instance has started","rest":false,"type":"Boolean"},{"name":"event ID","description":"The scheduled event associated with the stage instance","rest":false,"type":"ScheduledEvent","pointer":0,"pointerProperty":"guild"}],"output":["StageInstance"],"category":"channel"},{"name":"$createThread","version":"1.0.3","description":"Creates a thread, returns thread channel id on success","unwrap":true,"output":["Channel"],"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":"message ID","description":"The message to start thread for","rest":false,"pointer":0,"type":"Message"},{"name":"private","description":"Whether this thread is private","rest":false,"type":"Boolean"},{"name":"reason","description":"Reason for creating thread","rest":false,"type":"String"}],"category":"channel"},{"name":"$deleteChannelPerms","version":"1.0.3","description":"Deletes some permission overwrites from a channel, returns bool","brackets":true,"output":["Boolean"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to clear perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or member id to clear these perms for","rest":false,"required":true,"type":"String"},{"name":"perms","description":"The perms to clear from 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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps"],"enumName":"PermissionFlagsBits"}],"category":"channel"},{"name":"$deleteChannels","version":"1.0.5","description":"Deletes given channels, returns the count of channels deleted","aliases":["$deleteChannel"],"brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"channels","description":"The channels to delete","rest":true,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$deleteStageInstance","version":"2.3.0","description":"Deletes a stage instance, returns bool","unwrap":true,"brackets":true,"args":[{"name":"stage ID","description":"The stage instance to delete","rest":false,"required":true,"type":"StageInstance"}],"output":["Boolean"],"category":"channel"},{"name":"$deleteThread","version":"1.5.0","description":"Deletes a thread, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The thread to delete","rest":false,"required":true,"type":"Channel"},{"name":"reason","description":"The reason to delete this thread","rest":false,"type":"String"}],"category":"channel"},{"name":"$dmChannelID","version":"1.0.0","description":"Returns the dm channel id of a user","brackets":false,"output":["Channel"],"unwrap":true,"args":[{"name":"user ID","description":"User to get the dm channel","rest":false,"required":true,"type":"User"}],"category":"channel"},{"name":"$editStageInstance","version":"2.3.0","description":"Edits a stage instance, returns bool","unwrap":true,"brackets":true,"args":[{"name":"stage ID","description":"The stage instance to edit","rest":false,"required":true,"type":"StageInstance"},{"name":"topic","description":"The new topic of the stage instance","rest":false,"type":"String"},{"name":"privacy level","description":"The new privacy level of the stage instance","rest":false,"type":"Enum","enum":["Public","GuildOnly"],"enumName":"StageInstancePrivacyLevel"}],"output":["Boolean"],"category":"channel"},{"name":"$fetchChannels","version":"2.2.0","description":"Caches all channels of a guild","aliases":["$fetchChannel"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to cache channels of","rest":false,"required":true,"type":"Guild"},{"name":"channel ID","description":"The channel to fetch","rest":false,"type":"Channel","pointer":0}],"category":"channel"},{"name":"$firstMessageID","version":"1.5.0","description":"Returns the first message sent in a channel","brackets":false,"aliases":["$channelFirstMessageID"],"unwrap":true,"output":["Message"],"args":[{"name":"channel ID","description":"The channel to pull first message from","rest":false,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$followChannel","version":"2.3.0","description":"Follows given announcement channel, returns webhook id","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to follow","type":"Channel","rest":false,"required":true},{"name":"channel ID","description":"The channel to crosspost messages in","type":"Channel","rest":false,"required":true},{"name":"reason","description":"The reason for following the channel","type":"String","rest":false}],"output":["Webhook"],"category":"channel"},{"name":"$forumDefaultLayout","version":"2.2.0","description":"Returns the default layout of a forum","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to get default layout from","rest":false,"type":"Channel","required":true}],"output":["ForumLayoutType"],"category":"channel"},{"name":"$forumDefaultReactionEmoji","version":"2.2.0","description":"Returns the default reaction emoji of a forum","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to get default reaction emoji from","rest":false,"type":"Channel","required":true}],"output":["String"],"category":"channel"},{"name":"$forumDefaultSortOrder","version":"2.2.0","description":"Returns the default sort order of a forum","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to get default sort order from","rest":false,"type":"Channel","required":true}],"output":["SortOrderType"],"category":"channel"},{"name":"$forumDefaultThreadArchiveDuration","version":"2.2.0","description":"Returns the default auto archive duration for threads of a forum","aliases":["$forumDefaultThreadAutoArchiveDuration"],"unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to get default sort order from","rest":false,"type":"Channel","required":true}],"output":["ThreadAutoArchiveDuration"],"category":"channel"},{"name":"$forumDefaultThreadSlowmode","version":"2.2.0","description":"Returns the default slowmode for threads of a forum","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to get default slowmode from","rest":false,"type":"Channel","required":true}],"output":["Number"],"category":"channel"},{"name":"$forumTags","version":"1.5.0","description":"Returns all available tags of a forum","unwrap":true,"output":["Json","Unknown[]"],"args":[{"name":"channel ID","description":"The channel to get tags of","rest":false,"type":"Channel","required":true},{"name":"property","description":"The property to return for every tag","rest":false,"type":"Enum","enum":["emoji","id","moderated","name"],"enumName":"ForumTagProperty"},{"name":"separator","description":"The separator to use for every tag property","rest":false,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$getStageInstance","version":"2.3.0","description":"Returns a stage instance of a guild","unwrap":true,"brackets":true,"args":[{"name":"stage ID","description":"The stage instance to get","rest":false,"required":true,"type":"StageInstance"},{"name":"property","description":"The property of the stage instance to return","rest":false,"type":"Enum","enum":["channelID","id","topic","timestamp","guildID","privacyLevel","eventId"],"enumName":"StageProperty"}],"output":["Json","Unknown"],"category":"channel"},{"name":"$getThreadMembers","version":"1.0.0","description":"Gets thread members","brackets":true,"output":["Member[]"],"unwrap":true,"args":[{"name":"channel ID","description":"The thread to pull members from","rest":false,"required":true,"type":"Channel"},{"name":"separator","description":"The separator for every id","rest":false,"type":"String"}],"category":"channel"},{"name":"$guildChannelID","version":"1.4.0","description":"Gets the guild channel id of a channel name","unwrap":true,"output":["Channel"],"brackets":false,"args":[{"name":"guild ID","description":"The guild to use","rest":false,"required":true,"type":"Guild"},{"name":"name","description":"The channel name to get its id","required":true,"rest":false,"type":"String"}],"category":"channel"},{"name":"$lastMessageID","version":"1.2.0","brackets":false,"aliases":["$channelLastMessageID"],"unwrap":true,"output":["Message"],"description":"Returns the latest message sent in a channel","args":[{"name":"channel ID","description":"The channel to pull last message from","rest":false,"required":true,"type":"Channel"},{"name":"user ID","description":"The user id to get its last message sent","rest":false,"required":false,"type":"User"}],"category":"channel"},{"name":"$lastPinTimestamp","version":"1.5.0","aliases":["$channelLastPinTimestamp"],"unwrap":true,"brackets":false,"output":["Number"],"description":"Returns the latest pin timestamp of a channel","args":[{"name":"channel ID","description":"The channel to pull last pin from","rest":false,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$lockThread","version":"1.5.0","aliases":["$lockPost"],"description":"Locks a thread, returns bool","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The thread to lock","rest":false,"required":true,"type":"Channel"},{"name":"reason","description":"The reason to lock this thread","rest":false,"type":"String"}],"category":"channel"},{"name":"$modifyChannelPerms","version":"1.4.0","description":"Modifies given channel perms for a role or user","aliases":["$editChannelPerms"],"unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","rest":false,"required":true,"type":"Channel","description":"The channel to modify perms for"},{"name":"roleOrUser","description":"The role or user to modify perms for","rest":false,"required":true,"pointer":0,"pointerProperty":"guild","type":"RoleOrUser"},{"name":"perms","rest":true,"required":true,"type":"OverwritePermission","description":"The permissions to allow, nullify or disallow, (+,/,-)Perm","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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps"],"enumName":"PermissionFlagsBits"}],"category":"channel"},{"name":"$modifyForumTags","version":"1.5.0","aliases":["$modifyPostTags"],"description":"Modifies tags of a forum post, returns bool","unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","rest":false,"required":true,"type":"Channel","description":"The post to edit tags on"},{"name":"reason","description":"The reason for modifying post tags","rest":false,"type":"String"},{"name":"tags","description":"The tags for the post","rest":true,"required":true,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$randomChannelID","version":"1.0.3","description":"Returns a random channel ID","unwrap":false,"output":["Channel"],"category":"channel"},{"name":"$randomGuildChannelID","version":"1.0.3","description":"Returns a random channel ID of a guild","unwrap":true,"brackets":false,"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to get channel from","rest":false,"required":true,"type":"Guild"},{"name":"types","description":"The channel types to get an id from","type":"Enum","rest":true,"required":false,"enum":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"enumName":"ChannelType"}],"category":"channel"},{"name":"$removeChannelPerms","version":"1.0.3","description":"Removes permission overwrites from a channel, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to remove perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or member id to remove these perms from","rest":false,"required":true,"type":"String"},{"name":"perms","description":"The perms to remove from 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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps"],"enumName":"PermissionFlagsBits"}],"category":"channel"},{"name":"$removeThreadMember","version":"1.0.0","description":"Removes a member from a thread, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"channel ID","description":"The thread to remove member from","rest":false,"required":true,"type":"Channel"},{"name":"user ID","pointer":0,"description":"The member to remove","rest":false,"required":true,"type":"Member"}],"category":"channel"},{"name":"$sendMessage","aliases":["$channelSendMessage"],"version":"1.0.0","description":"Sends a message to a channel","unwrap":true,"output":["Message"],"args":[{"name":"channel ID","description":"The channel to send this message to","required":true,"type":"Channel","rest":false},{"name":"content","description":"The content for the message","type":"String","rest":false},{"name":"return message ID","description":"Whether to return the message id of the newly sent message","rest":false,"type":"Boolean"}],"brackets":true,"category":"channel"},{"name":"$setChannelArchiveDuration","version":"1.5.0","description":"Modifies a channel's archive duration","unwrap":true,"output":["Boolean"],"brackets":true,"args":[{"name":"channel ID","type":"Channel","description":"The channel to modify","rest":false,"required":true},{"name":"duration","description":"The new duration of archive","type":"Enum","enum":["OneHour","OneDay","ThreeDays","OneWeek"],"rest":false,"required":true,"enumName":"ThreadAutoArchiveDuration"},{"name":"reason","description":"Reason for modifying archive duration","rest":false,"type":"String"}],"category":"channel"},{"name":"$setChannelCategory","version":"1.5.0","aliases":["$setChannelParent"],"description":"Sets a channel's category, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel id to set its category","rest":false,"type":"Channel","required":true},{"name":"category ID","description":"The category to set","rest":false,"type":"Channel"}],"category":"channel"},{"name":"$setChannelNSFW","version":"1.0.0","description":"Sets a channel nsfw state, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel id to set its nsfw state","rest":false,"type":"Channel","required":true},{"name":"state","description":"The state to set","rest":false,"type":"Boolean"}],"category":"channel"},{"name":"$setChannelName","version":"1.0.0","description":"Sets a channel name, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel id to set its name","rest":false,"type":"Channel","required":true},{"name":"name","description":"The name to set","rest":false,"required":true,"type":"String"}],"category":"channel"},{"name":"$setChannelSlowmode","version":"1.0.0","description":"Sets a channel slowmode, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel id to set its nsfw state","rest":false,"type":"Channel","required":true},{"name":"seconds","description":"The number of seconds per message","rest":false,"type":"Number"}],"category":"channel"},{"name":"$setChannelTopic","version":"1.0.0","description":"Sets a channel topic, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel id to set its topic","rest":false,"type":"Channel","required":true},{"name":"topic","description":"The topic to set","rest":false,"type":"String"}],"category":"channel"},{"name":"$setDefaultForumLayout","version":"2.2.0","description":"Sets a forum's default layout of posts","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The forum to modify","rest":false,"required":true,"type":"Channel"},{"name":"layout","description":"The new default layout","rest":false,"required":true,"type":"Enum","enum":["NotSet","ListView","GalleryView"],"enumName":"ForumLayoutType"},{"name":"reason","description":"Reason for modifying default layout","rest":false,"type":"String"}],"output":["Boolean"],"category":"channel"},{"name":"$setDefaultReactionEmoji","version":"2.2.0","description":"Sets a forum's default reaction emoji for posts","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The forum to modify","rest":false,"required":true,"type":"Channel"},{"name":"emoji","description":"The new default reaction emoji","rest":false,"type":"String"},{"name":"reason","description":"Reason for modifying default emoji","rest":false,"type":"String"}],"output":["Boolean"],"category":"channel"},{"name":"$setDefaultSortOrder","version":"2.2.0","description":"Sets a forum's default sort order of posts","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The forum to modify","rest":false,"required":true,"type":"Channel"},{"name":"layout","description":"The new default sort order, leave empty to reset","rest":false,"type":"Enum","enum":["LatestActivity","CreationDate"],"enumName":"SortOrderType"},{"name":"reason","description":"Reason for modifying default sort order","rest":false,"type":"String"}],"output":["Boolean"],"category":"channel"},{"name":"$setDefaultThreadArchiveDuration","version":"1.5.0","description":"Sets a forum's default auto archive duration of posts","unwrap":true,"output":["Boolean"],"aliases":["$setDefaultThreadAutoArchiveDuration"],"brackets":true,"args":[{"name":"channel ID","description":"The forum to modify","type":"Channel","rest":false,"required":true},{"name":"duration","description":"The new duration of auto archive","type":"Enum","enum":["OneHour","OneDay","ThreeDays","OneWeek"],"rest":false,"required":true,"enumName":"ThreadAutoArchiveDuration"},{"name":"reason","description":"Reason for modifying archive duration","rest":false,"type":"String"}],"category":"channel"},{"name":"$setDefaultThreadSlowmode","version":"2.2.0","description":"Sets a forum's default slowmode for posts","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The forum to modify","rest":false,"required":true,"type":"Channel"},{"name":"seconds","description":"The new default slowmode","rest":false,"required":true,"type":"Number"},{"name":"reason","description":"Reason for modifying default slowmode","rest":false,"type":"String"}],"output":["Boolean"],"category":"channel"},{"name":"$setThreadArchiveDuration","version":"1.5.0","description":"Sets a thread's auto archive duration","unwrap":true,"output":["Boolean"],"aliases":["$setThreadAutoArchiveDuration"],"brackets":true,"args":[{"name":"channel ID","description":"The thread to modify","type":"Channel","rest":false,"required":true},{"name":"duration","description":"The new duration of auto archive","type":"Enum","enum":["OneHour","OneDay","ThreeDays","OneWeek"],"rest":false,"required":true,"enumName":"ThreadAutoArchiveDuration"},{"name":"reason","description":"Reason for modifying archive duration","rest":false,"type":"String"}],"category":"channel"},{"name":"$setVoiceBitrate","version":"1.4.0","description":"Sets the bitrate quality of a voice channel, returns bool","brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to edit bitrate","rest":false,"required":true,"type":"Channel"},{"name":"bitrate","rest":false,"type":"Number","required":true,"description":"The new bitrate"},{"name":"reason","description":"Reason to change the bitrate","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$setVoiceDeaf","version":"1.4.0","description":"Deafens a member from voice channel","brackets":true,"aliases":["$voiceDeaf"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","rest":false,"required":true,"type":"Member","pointer":0,"description":"The user to deafen"},{"name":"reason","description":"Reason to deafen this user","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$setVoiceMute","version":"1.4.0","description":"Mutes a member from voice channel","brackets":true,"aliases":["$voiceMute"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","rest":false,"required":true,"type":"Member","pointer":0,"description":"The user to mute"},{"name":"reason","description":"Reason to mute this user","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$setVoiceRegion","version":"1.5.0","description":"Sets the region of a voice channel, returns bool","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to set region","rest":false,"required":true,"type":"Channel"},{"name":"region","description":"The region to set, leave empty to remove a fixed region","rest":false,"required":false,"type":"Enum","enum":["brazil","hongkong","india","japan","rotterdam","russia","singapore","south-korea","southafrica","sydney","us-central","us-east","us-south","us-west"],"enumName":"VoiceRegionType"},{"name":"reason","description":"Reason to set the voice region","rest":false,"required":false,"type":"String"}],"output":["Boolean"],"category":"channel"},{"name":"$setVoiceUndeaf","version":"1.4.0","description":"Undeafens a member from voice channel","brackets":true,"aliases":["$voiceUndeaf"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","rest":false,"required":true,"type":"Member","pointer":0,"description":"The user to undeafen"},{"name":"reason","description":"Reason to undeafen this user","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$setVoiceUnmute","version":"1.4.0","description":"Unmutes a member from voice channel","brackets":true,"aliases":["$voiceUnmute"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","rest":false,"required":true,"type":"Member","pointer":0,"description":"The user to unmute"},{"name":"reason","description":"Reason to unmute this user","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$setVoiceUserLimit","version":"1.4.0","description":"Sets the limit of users that can connect to this voice channel","brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to edit user limit","rest":false,"required":true,"type":"Channel"},{"name":"limit","rest":false,"type":"Number","required":true,"description":"The new user limit"},{"name":"reason","description":"Reason to change the user limit","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$setVoiceVideoQuality","version":"1.5.0","description":"Sets the video quality of a voice channel, returns bool","brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to edit video quality","rest":false,"required":true,"type":"Channel"},{"name":"quality","rest":false,"required":true,"type":"Enum","enum":["Auto","Full"],"description":"The new video quality","enumName":"VideoQualityMode"},{"name":"reason","description":"Reason to change the video quality","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$startTyping","version":"1.0.0","description":"Starts typing in a channel","unwrap":true,"aliases":["$channelStartTyping"],"brackets":false,"args":[{"name":"channel ID","description":"The channel to start typing at","required":true,"rest":false,"type":"Channel"}],"category":"channel"},{"name":"$threadIsArchived","version":"1.5.0","aliases":["$isArchived","$threadArchived"],"description":"Returns whether a thread is archived","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The thread to check if its archived","rest":false,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$threadOwnerID","version":"2.2.0","description":"Returns the owner of the thread","brackets":false,"unwrap":true,"output":["Member"],"args":[{"name":"channel ID","description":"The thread to retrieve owner of","rest":false,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$threadStarterMessageID","version":"1.5.0","description":"Returns the id of the message that started this thread","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The thread to get its starter message id","rest":false,"required":true,"type":"Channel"}],"output":["Message"],"category":"channel"},{"name":"$threadTotalMessagesSent","version":"1.5.0","description":"Returns the total count of sent messages in a thread","aliases":["$threadTotalMessagesCount"],"brackets":false,"unwrap":true,"output":["Number"],"args":[{"name":"channel ID","description":"The thread to pull data from","rest":false,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$transcript","version":"1.4.0","aliases":["$channelTranscript","$createTranscript"],"description":"Creates a channel transcript","brackets":true,"output":["String[]"],"unwrap":false,"args":[{"name":"channel ID","description":"The channel to create transcript of","rest":false,"required":true,"type":"TextChannel"},{"name":"variable","description":"The $env variable name to load the message id to","rest":false,"required":true,"type":"String"},{"name":"code","description":"The code to use for every message, make sure to use $return","rest":false,"required":true,"type":"String"},{"name":"separator","description":"The separator to use for every result","rest":false,"type":"String"},{"name":"full","description":"Whether to load entire message object to the variable","rest":false,"required":false,"type":"Boolean"}],"category":"channel"},{"name":"$unarchiveThread","version":"1.0.0","aliases":["$unarchivePost"],"description":"Unarchives a thread, returns bool","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The thread to unarchive","rest":false,"required":true,"type":"Channel"},{"name":"reason","description":"The reason to unarchive this thread","rest":false,"type":"String"}],"category":"channel"},{"name":"$unlockThread","version":"1.5.0","aliases":["$unlockPost"],"description":"Unlocks a thread, returns bool","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The thread to unlock","rest":false,"required":true,"type":"Channel"},{"name":"reason","description":"The reason to unlock this thread","rest":false,"type":"String"}],"category":"channel"},{"name":"$commandCount","version":"1.0.0","description":"Returns the command count","brackets":false,"output":["Number"],"args":[{"name":"categories","rest":true,"required":true,"description":"The event types to filter by","type":"String"}],"unwrap":true,"category":"command"},{"name":"$commandInfo","version":"1.0.3","description":"Retrieves command info","unwrap":true,"brackets":true,"output":["Unknown"],"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":true,"type":"String"}],"category":"command"},{"name":"$commandName","version":"1.0.3","description":"Returns the current command name","unwrap":false,"output":["String"],"category":"command"},{"name":"$commandNames","version":"1.0.6","description":"Return commands with given type","brackets":true,"output":["String[]"],"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,"category":"command"},{"name":"$deleteCommand","version":"1.2.0","description":"Deletes the author's message","unwrap":false,"category":"command"},{"name":"$addActionRow","version":"1.0.0","description":"Adds an action row","unwrap":false,"category":"component"},{"name":"$addActionRowTo","version":"1.5.0","brackets":true,"description":"Adds an action row (or rows) to a message","unwrap":false,"aliases":["$addActionRowsTo"],"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add row to","rest":false,"required":true,"type":"Message","pointer":0},{"name":"components","description":"Components for this row","rest":false,"required":true,"type":"String"},{"name":"keep existing rows","description":"Whether to keep or remove existing rows of given message","rest":false,"required":false,"type":"Boolean"}],"output":["Boolean"],"category":"component"},{"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","Premium"],"type":"Enum","required":true,"rest":false,"enumName":"ButtonStyle"},{"name":"emoji","rest":false,"type":"String","description":"The emoji for this button"},{"name":"disabled","rest":false,"type":"Boolean","description":"Whether to disable the button"}],"category":"component"},{"name":"$addButtonTo","version":"1.5.0","description":"Adds a button component to the newest row in a message","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add button to","rest":false,"required":true,"type":"Message","pointer":0},{"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","Premium"],"type":"Enum","required":true,"rest":false,"enumName":"ButtonStyle"},{"name":"emoji","rest":false,"type":"String","description":"The emoji for this button"},{"name":"disabled","rest":false,"type":"Boolean","description":"Whether to disable the button"}],"output":["Boolean"],"category":"component"},{"name":"$addChannelSelectMenu","version":"1.4.0","description":"Creates a channel 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,"type":"Boolean"},{"name":"default channels","rest":true,"type":"String","description":"The default selected channels to use"}],"category":"component"},{"name":"$addChannelSelectMenuTo","version":"2.4.0","description":"Creates a channel select menu on a message","output":["Boolean"],"brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add select menu to","rest":false,"required":true,"type":"Message","pointer":0},{"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 channels","rest":true,"type":"String","description":"The default selected channels to use"}],"category":"component"},{"name":"$addChannelType","version":"1.4.0","aliases":["$addChannelTypes"],"description":"Adds channel types to the last select menu","unwrap":true,"brackets":true,"args":[{"name":"types","description":"The channel types to add","rest":true,"enum":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"required":true,"type":"Enum","enumName":"ChannelType"}],"category":"component"},{"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"}],"category":"component"},{"name":"$addContainer","version":"2.4.0","description":"Adds a new container component","unwrap":false,"brackets":true,"args":[{"name":"components","description":"The components to add","rest":false,"required":true,"type":"String"},{"name":"color","description":"The color to set","rest":false,"type":"Color"},{"name":"spoiler","description":"Whether to set a spoiler","rest":false,"type":"Boolean"}],"category":"component"},{"name":"$addDefaultChannelOption","version":"1.4.0","aliases":["$addDefaultChannels","$addDefaultChannelOptions"],"description":"Adds default channel options to the last select menu","unwrap":true,"brackets":true,"args":[{"name":"channel IDs","description":"The channel ids","rest":true,"required":true,"type":"String"}],"category":"component"},{"name":"$addDefaultRoleOption","version":"1.4.0","aliases":["$addDefaultRoles","$addDefaultRoleOptions"],"description":"Adds default role options to the last select menu","unwrap":true,"brackets":true,"args":[{"name":"role IDs","description":"The role ids","rest":true,"required":true,"type":"String"}],"category":"component"},{"name":"$addDefaultUserOption","version":"1.4.0","aliases":["$addDefaultUsers","$addDefaultUserOptions"],"description":"Adds default user options to the last select menu","unwrap":true,"brackets":true,"args":[{"name":"user IDs","description":"The user ids","rest":true,"required":true,"type":"String"}],"category":"component"},{"name":"$addFile","version":"2.4.0","description":"Adds a new file component","unwrap":true,"brackets":true,"args":[{"name":"url","description":"The url of the file (must use attachment://)","rest":false,"required":true,"type":"String"},{"name":"spoiler","description":"Whether to set a spoiler","rest":false,"type":"Boolean"}],"category":"component"},{"name":"$addMediaGallery","version":"2.4.0","description":"Adds a new media gallery component","unwrap":false,"brackets":true,"args":[{"name":"items","description":"The media items to add","rest":false,"required":true,"type":"String"}],"category":"component"},{"name":"$addMediaItem","version":"2.4.0","description":"Adds a new media gallery item","aliases":["$addItem"],"unwrap":true,"brackets":true,"args":[{"name":"url","description":"The url for the media item","rest":false,"required":true,"type":"String"},{"name":"description","description":"The description of the media item","rest":false,"type":"String"},{"name":"spoiler","description":"Whether to set a spoiler","rest":false,"type":"Boolean"}],"category":"component"},{"name":"$addMentionableSelectMenu","version":"1.4.0","description":"Creates a mentionable 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/users","rest":true,"type":"RoleOrUser","description":"The default selected roles or users to use"}],"category":"component"},{"name":"$addMentionableSelectMenuTo","version":"1.5.0","description":"Creates a mentionable select menu on a message","brackets":true,"output":["Boolean"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add row to","rest":false,"required":true,"type":"Message","pointer":0},{"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/users","rest":true,"type":"RoleOrUser","description":"The default selected roles or users to use","pointer":0,"pointerProperty":"guild"}],"category":"component"},{"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"}],"category":"component"},{"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"}],"category":"component"},{"name":"$addRoleSelectMenuTo","version":"1.5.0","description":"Creates a role select menu on a message","output":["Boolean"],"brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add select menu to","rest":false,"required":true,"type":"Message","pointer":0},{"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"}],"category":"component"},{"name":"$addSection","version":"2.4.0","description":"Adds a new section component","unwrap":false,"brackets":true,"args":[{"name":"components","description":"The components and accessory to add","rest":false,"required":true,"type":"String"}],"category":"component"},{"name":"$addSeparator","version":"2.4.0","description":"Adds a new separator component","unwrap":true,"brackets":false,"args":[{"name":"spacing","description":"The spacing of this separator","rest":false,"required":true,"type":"Enum","enum":["Small","Large"],"enumName":"SeparatorSpacingSize"},{"name":"divider","description":"Whether to show a divider line","rest":false,"type":"Boolean"}],"category":"component"},{"name":"$addStringSelectMenu","version":"1.0.0","description":"Creates 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"}],"category":"component"},{"name":"$addStringSelectMenuTo","version":"1.5.0","description":"Creates a string select menu on a message","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add select menu to","rest":false,"required":true,"type":"Message","pointer":0},{"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"}],"output":["Boolean"],"category":"component"},{"name":"$addTextDisplay","version":"2.4.0","description":"Adds a new text display component","unwrap":true,"brackets":true,"args":[{"name":"content","description":"The content of this text display","rest":false,"required":true,"type":"String"}],"category":"component"},{"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"],"enumName":"TextInputStyle"},{"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"}],"category":"component"},{"name":"$addThumbnail","version":"2.4.0","description":"Adds a new thumbnail accessory","unwrap":true,"brackets":true,"args":[{"name":"url","description":"The url for the thumbnail","rest":false,"required":true,"type":"String"},{"name":"description","description":"The description of the thumbnail","rest":false,"type":"String"},{"name":"spoiler","description":"Whether to set a spoiler","rest":false,"type":"Boolean"}],"category":"component"},{"name":"$addUserSelectMenu","version":"1.4.0","description":"Creates a user 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 users","rest":true,"type":"String","description":"The default selected users to use"}],"category":"component"},{"name":"$addUserSelectMenuTo","version":"1.5.0","output":["Boolean"],"description":"Creates a user select menu on a message","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add select menu to","rest":false,"required":true,"type":"Message","pointer":0},{"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 users","rest":true,"type":"String","description":"The default selected users to use"}],"category":"component"},{"name":"$deleteActionRow","version":"1.0.0","description":"Deletes an action row or top level component at given index","brackets":true,"args":[{"name":"index","description":"The row index to delete","rest":false,"required":true,"type":"Number"}],"unwrap":true,"category":"component"},{"name":"$deleteActionRowFrom","version":"1.5.0","description":"Deletes an action row or top level component at given index","brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to remove row from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"index","description":"The row index to delete","rest":false,"required":true,"type":"Number"}],"output":["Boolean"],"unwrap":true,"category":"component"},{"name":"$deleteComponent","version":"1.0.0","description":"Deletes a message component with given custom id","brackets":true,"args":[{"name":"custom ID","description":"The component's custom id to delete","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"component"},{"name":"$deleteComponentFrom","version":"1.5.0","description":"Deletes a message component with given custom id from a message","brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to remove component from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"custom ID","description":"The component's custom id to delete","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"unwrap":true,"category":"component"},{"name":"$disableButtons","version":"2.2.0","description":"Disables all buttons on the current message","aliases":["$disableAllButtons"],"unwrap":true,"args":[{"name":"index","description":"The index of the row to disable","rest":false,"required":true,"type":"Number"}],"brackets":false,"category":"component"},{"name":"$disableButtonsOf","version":"2.2.0","description":"Disables all buttons of a message, returns bool","aliases":["$disableAllButtonsOf"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to disable buttons on","rest":false,"required":true,"type":"Message","pointer":0},{"name":"index","description":"The index of the row to disable","rest":false,"type":"Number"}],"brackets":true,"output":["Boolean"],"category":"component"},{"name":"$disableComponents","version":"2.2.0","description":"Disables all components on the current message","aliases":["$disableAllComponents"],"unwrap":false,"category":"component"},{"name":"$disableComponentsOf","version":"2.2.0","description":"Disables all components of a message, returns bool","aliases":["$disableAllComponentsOf"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to disable components on","rest":false,"required":true,"type":"Message","pointer":0}],"brackets":true,"output":["Boolean"],"category":"component"},{"name":"$editButton","version":"1.0.7","description":"Edits a button component","unwrap":true,"brackets":true,"args":[{"name":"custom ID","description":"The custom id to find the component","rest":false,"type":"String","required":true},{"name":"new custom ID","description":"The new 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","Premium"],"type":"Enum","required":true,"rest":false,"enumName":"ButtonStyle"},{"name":"emoji","rest":false,"type":"String","description":"The emoji for this button"},{"name":"disabled","rest":false,"type":"Boolean","description":"Whether to disable the button"}],"category":"component"},{"name":"$editButtonOf","version":"1.5.0","description":"Edits a button component of a message","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to edit button for","rest":false,"required":true,"type":"Message","pointer":0},{"name":"custom ID","description":"The custom id to find the component","rest":false,"type":"String","required":true},{"name":"new custom ID","description":"The new 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","Premium"],"type":"Enum","required":true,"rest":false,"enumName":"ButtonStyle"},{"name":"emoji","rest":false,"type":"String","description":"The emoji for this button"},{"name":"disabled","rest":false,"type":"Boolean","description":"Whether to disable the button"}],"output":["Boolean"],"category":"component"},{"name":"$editChannelSelectMenu","version":"2.2.0","description":"Edits a channel select menu","unwrap":true,"brackets":true,"args":[{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default channels","rest":true,"type":"String","description":"The default selected channels of the menu"}],"category":"component"},{"name":"$editChannelSelectMenuOf","version":"2.2.0","description":"Edits a channel select menu of a message, returns bool","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to edit select menu for","rest":false,"required":true,"type":"Message","pointer":0},{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default channels","rest":true,"type":"String","description":"The default selected channels of the menu"}],"output":["Boolean"],"category":"component"},{"name":"$editMentionableSelectMenu","version":"2.2.0","description":"Edits a mentionable select menu","brackets":true,"unwrap":true,"args":[{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default roles/users","rest":true,"type":"RoleOrUser","description":"The default selected roles or users to use"}],"category":"component"},{"name":"$editMentionableSelectMenuOf","version":"2.2.0","description":"Edits a mentionable select menu of a message, returns bool","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to edit select menu for","rest":false,"required":true,"type":"Message","pointer":0},{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default roles/users","rest":true,"type":"RoleOrUser","description":"The default selected roles or users to use","pointer":0,"pointerProperty":"guild"}],"output":["Boolean"],"category":"component"},{"name":"$editOption","version":"1.4.0","description":"Edits a select menu option","unwrap":true,"brackets":true,"args":[{"name":"name","description":"The option name","rest":false,"required":true,"type":"String"},{"name":"new name","description":"The new 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"}],"category":"component"},{"name":"$editRoleSelectMenu","version":"2.2.0","description":"Edits a role select menu","unwrap":true,"brackets":true,"args":[{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default roles","rest":true,"type":"String","description":"The default selected roles of the menu"}],"category":"component"},{"name":"$editRoleSelectMenuOf","version":"2.2.0","description":"Edits a role select menu of a message, returns bool","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to edit select menu for","rest":false,"required":true,"type":"Message","pointer":0},{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default roles","rest":true,"type":"String","description":"The default selected roles of the menu"}],"output":["Boolean"],"category":"component"},{"name":"$editStringSelectMenu","version":"1.4.0","description":"Edits a string select menu","unwrap":true,"brackets":true,"args":[{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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"}],"category":"component"},{"name":"$editStringSelectMenuOf","version":"1.5.0","description":"Edits a string select menu of a message","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to edit select menu for","rest":false,"required":true,"type":"Message","pointer":0},{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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"}],"output":["Boolean"],"category":"component"},{"name":"$editUserSelectMenu","version":"2.2.0","description":"Edits a user select menu","unwrap":true,"brackets":true,"args":[{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default users","rest":true,"type":"String","description":"The default selected users of the menu"}],"category":"component"},{"name":"$editUserSelectMenuOf","version":"2.2.0","description":"Edits a user select menu of a message, returns bool","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to edit select menu for","rest":false,"required":true,"type":"Message","pointer":0},{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default users","rest":true,"type":"String","description":"The default selected users of the menu"}],"output":["Boolean"],"category":"component"},{"name":"$enableButtons","version":"2.2.0","description":"Enables all buttons on the current message","aliases":["$enableAllButtons"],"unwrap":true,"args":[{"name":"index","description":"The index of the row to enable","rest":false,"required":true,"type":"Number"}],"brackets":false,"category":"component"},{"name":"$enableButtonsOf","version":"2.2.0","description":"Enables all buttons of a message, returns bool","aliases":["$enableAllButtonsOf"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to enable buttons on","rest":false,"required":true,"type":"Message","pointer":0},{"name":"index","description":"The index of the row to enable","rest":false,"type":"Number"}],"brackets":true,"output":["Boolean"],"category":"component"},{"name":"$enableComponents","version":"2.2.0","description":"Enables all components on the current message","aliases":["$enableAllComponents"],"unwrap":false,"category":"component"},{"name":"$enableComponentsOf","version":"2.2.0","description":"Enables all components of a message, returns bool","aliases":["$enableAllComponentsOf"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to enable components on","rest":false,"required":true,"type":"Message","pointer":0}],"brackets":true,"output":["Boolean"],"category":"component"},{"name":"$setChannelType","version":"1.5.0","aliases":["$setChannelTypes"],"description":"Sets channel types for the last select menu","unwrap":true,"brackets":true,"args":[{"name":"types","description":"The channel types to set","rest":true,"enum":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"required":true,"type":"Enum","enumName":"ChannelType"}],"category":"component"},{"name":"$and","version":"1.0.0","description":"Validates multiple conditions","unwrap":false,"brackets":true,"output":["Boolean"],"args":[{"name":"conditions","rest":true,"required":true,"type":"String","condition":true,"description":"The conditions that must match"}],"category":"condition"},{"name":"$checkCondition","version":"1.0.0","description":"Checks whether a condition is valid","brackets":true,"unwrap":false,"output":["Boolean"],"args":[{"name":"condition","description":"The condition to use","rest":false,"condition":true,"type":"String","required":true}],"category":"condition"},{"name":"$isBoolean","version":"1.0.6","description":"Checks whether given value is bool like","aliases":["$isBool"],"brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"value","description":"Value to check if its a valid bool","rest":false,"required":true,"type":"String"}],"category":"condition"},{"name":"$isValidHex","version":"1.3.0","description":"Checks whether given hex is a valid integer number between 0x00000 and 0xffffff","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"hex","rest":false,"required":true,"type":"String","description":"The hex to check for"}],"category":"condition"},{"name":"$isValidLink","version":"1.0.0","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"link","description":"The link to check","rest":false,"required":true,"type":"String"}],"description":"Checks whether a link is valid, this will not make sure that a site actually exists or returns success HTTP responses","category":"condition"},{"name":"$or","version":"1.0.0","description":"Validates one condition","unwrap":false,"brackets":true,"output":["Boolean"],"args":[{"name":"conditions","rest":true,"required":true,"type":"String","condition":true,"description":"The conditions that must match one"}],"category":"condition"},{"name":"$channelCooldown","version":"1.5.0","description":"Adds a cooldown binded to a channel and command","brackets":true,"unwrap":false,"args":[{"name":"channel ID","rest":false,"description":"The channel id to assign the cooldown to","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"}],"experimental":true,"category":"cooldown"},{"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,"category":"cooldown"},{"name":"$deleteChannelCooldown","version":"1.5.0","description":"Deletes cooldown for given channel id, binded to current command","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The id to delete its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$deleteCooldown","version":"1.0.3","description":"Deletes cooldown of given id","brackets":true,"unwrap":true,"args":[{"name":"id","description":"The id to delete its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$deleteGuildCooldown","version":"1.5.0","description":"Deletes cooldown for given guild id, binded to current command","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The id to delete its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$deleteMemberCooldown","version":"1.5.0","description":"Deletes cooldown for given guild and user id, binded to current command","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The id to delete its cooldown","rest":false,"type":"String","required":true},{"name":"user ID","description":"The id to delete its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$deleteUserCooldown","version":"1.5.0","description":"Deletes cooldown for given user id, binded to current command","brackets":true,"unwrap":true,"args":[{"name":"user ID","description":"The id to delete its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$getCooldownTime","version":"1.0.3","description":"Retrieves current cooldown time in ms for given id","brackets":true,"output":["Number"],"unwrap":true,"args":[{"name":"id","description":"The id to get its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$getGuildCooldownTime","version":"1.5.0","description":"Retrieves current cooldown time in ms for given guild id, binded to current command","brackets":true,"aliases":["$getServerCooldownTime"],"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild id to get its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$getMemberCooldownTime","version":"1.5.0","description":"Retrieves current cooldown time in ms for given guild and user id, binded to current command","brackets":true,"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild id to get its cooldown","rest":false,"type":"String","required":true},{"name":"user ID","description":"The user id to get its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$getUserCooldownTime","version":"1.5.0","description":"Retrieves current cooldown time in ms for given user id, binded to current command","brackets":true,"output":["Number"],"unwrap":true,"args":[{"name":"user ID","description":"The user id to get its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$guildCooldown","version":"1.5.0","description":"Adds a cooldown binded to a guild and command","brackets":true,"unwrap":false,"aliases":["$serverCooldown"],"args":[{"name":"guild ID","rest":false,"description":"The guild id to assign the cooldown to","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"}],"experimental":true,"category":"cooldown"},{"name":"$memberCooldown","version":"1.5.0","description":"Adds a cooldown binded to a guild member and command","brackets":true,"unwrap":false,"args":[{"name":"guild ID","rest":false,"description":"The guild id to assign the cooldown to","type":"String","required":true},{"name":"user ID","rest":false,"description":"The user id to assign the cooldown to","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"}],"experimental":true,"category":"cooldown"},{"name":"$userCooldown","version":"1.5.0","description":"Adds a cooldown binded to a user and command","brackets":true,"unwrap":false,"args":[{"name":"user ID","rest":false,"description":"The user id to assign the cooldown to","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"}],"experimental":true,"category":"cooldown"},{"name":"$createQueryParams","version":"1.0.7","description":"Creates query params with given fields","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"param name;param value","description":"The param name followed by the value, (param1;value1)","rest":true,"required":true,"type":"String"}],"category":"crypto"},{"name":"$decodeURI","version":"1.0.0","description":"Decodes text from a url","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to decode","rest":false,"required":true,"type":"String"}],"category":"crypto"},{"name":"$decodeURIComponent","version":"1.0.0","description":"Decodes text from a url","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to decode","rest":false,"required":true,"type":"String"}],"category":"crypto"},{"name":"$decrypt","version":"1.5.0","description":"Decrypts given text with a key","brackets":true,"output":["String"],"args":[{"name":"text","description":"The text to decrypt","rest":false,"required":true,"type":"String"},{"name":"key","description":"The key to use to decrypt the text","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"crypto"},{"name":"$deflate","version":"1.2.0","description":"Compresses given input","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"input","description":"The text to compress","type":"String","rest":false,"required":true},{"name":"encoding","rest":false,"required":false,"description":"The output encoding to use","type":"String"}],"category":"crypto"},{"name":"$encodeURI","version":"1.0.0","description":"Encodes text for a url","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to encode","rest":false,"required":true,"type":"String"}],"category":"crypto"},{"name":"$encodeURIComponent","version":"1.0.0","description":"Encodes text for a url","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to encode","rest":false,"required":true,"type":"String"}],"category":"crypto"},{"name":"$encrypt","version":"1.5.0","description":"Encrypts given text with a key","brackets":true,"output":["String"],"args":[{"name":"text","description":"The text to encrypt","rest":false,"required":true,"type":"String"},{"name":"key","description":"The key to use to encrypt text","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"crypto"},{"name":"$inflate","version":"1.2.0","description":"Decompresses given input","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"input","description":"The text to decompress","type":"String","rest":false,"required":true},{"name":"encoding","rest":false,"required":false,"description":"The input encoding to use","type":"String"}],"category":"crypto"},{"name":"$md5","version":"1.2.0","description":"Creates a md5 key from given input","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"input","description":"Input to use for feeding","rest":false,"required":true,"type":"String"},{"name":"encoding","type":"String","description":"The output encoding","rest":false,"required":false}],"category":"crypto"},{"name":"$randomBytes","version":"1.5.0","description":"Generates a string of random bytes, in hex","brackets":true,"output":["String"],"args":[{"name":"length","description":"The length of the hex string","rest":false,"required":true,"type":"Number"}],"unwrap":true,"category":"crypto"},{"name":"$sha256","version":"1.2.0","description":"Creates a sha256 key from given input","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"input","description":"Input to use for feeding","rest":false,"required":true,"type":"String"},{"name":"encoding","type":"String","description":"The output encoding","rest":false,"required":false}],"category":"crypto"},{"name":"$sha512","version":"1.2.0","description":"Creates a sha512 key from given input","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"input","description":"Input to use for feeding","rest":false,"required":true,"type":"String"},{"name":"encoding","type":"String","description":"The output encoding","rest":false,"required":false}],"category":"crypto"},{"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,"category":"embed"},{"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,"category":"embed"},{"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,"enumName":"Colors"},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$deleteField","version":"2.1.0","description":"Deletes an embed field","unwrap":true,"args":[{"name":"field index","description":"The index field to delete","rest":false,"required":true,"type":"Number"},{"name":"index","description":"The index to delete this field on","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$description","version":"1.0.0","description":"Adds an embed description","unwrap":true,"args":[{"name":"description","description":"The description for the embed","required":true,"type":"String","rest":false},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$editField","version":"1.4.0","description":"Edits an embed field","unwrap":true,"args":[{"name":"field index","description":"The index field to edit","rest":false,"required":true,"type":"Number"},{"name":"name","description":"The name for the field","type":"String","rest":false},{"name":"value","description":"The value for the field","type":"String","rest":false},{"name":"inline","description":"Whether this field will be inline","type":"Boolean","rest":false},{"name":"index","description":"The index to edit this data on","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$footer","version":"1.0.0","description":"Adds an embed footer","unwrap":true,"args":[{"name":"text","description":"The text for the embed footer","required":true,"type":"String","rest":false},{"name":"url","description":"The url for the embed footer","type":"String","rest":false},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$image","version":"1.0.0","description":"Adds an embed image","unwrap":true,"args":[{"name":"url","description":"The url for the embed image","required":true,"type":"String","rest":false},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$thumbnail","version":"1.0.0","description":"Adds an embed thumbnail","unwrap":true,"args":[{"name":"url","description":"The url for the embed thumbnail","required":true,"type":"String","rest":false},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$timestamp","version":"1.0.0","description":"Adds an embed timestamp","unwrap":true,"args":[{"name":"ms","description":"The timestamp time to add","type":"Number","rest":false},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":false,"category":"embed"},{"name":"$title","version":"1.0.0","description":"Adds an embed title","unwrap":true,"args":[{"name":"title","description":"Adds a title to the embed","required":true,"type":"String","rest":false},{"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,"category":"embed"},{"name":"$addApplicationEmoji","version":"1.5.0","description":"Adds an application emoji, returns the emoji id","brackets":true,"unwrap":true,"args":[{"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"}],"output":["ApplicationEmoji"],"category":"emoji"},{"name":"$addEmoji","version":"1.0.7","description":"Adds an emoji to a guild, returns the emoji id","brackets":true,"unwrap":true,"output":["GuildEmoji"],"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,"type":"Role","pointer":0}],"category":"emoji"},{"name":"$deleteApplicationEmojis","version":"1.5.0","description":"Deletes application emojis, returns the count of emojis deleted","brackets":true,"unwrap":true,"args":[{"name":"emojis","description":"The emojis to delete","rest":true,"required":true,"type":"ApplicationEmoji"}],"output":["Number"],"category":"emoji"},{"name":"$deleteEmojiMessageReactions","version":"1.0.0","description":"Deletes all emoji reactions from a message, returns amount of reaction emojis successfully deleted","unwrap":true,"brackets":true,"output":["Number"],"args":[{"name":"channel ID","description":"The channel the message is located","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to remove emoji reactions from","rest":false,"type":"Message","pointer":0,"required":true},{"name":"emojis","description":"The emojis to delete from this message","required":true,"pointer":1,"rest":true,"type":"Reaction"}],"category":"emoji"},{"name":"$deleteEmojis","version":"1.0.0","brackets":true,"unwrap":true,"output":["Number"],"description":"Deletes given emojis from a guild, returns the count of emotes deleted","args":[{"name":"guild ID","description":"The guild to delete emotes from","rest":false,"required":true,"type":"Guild"},{"name":"emojis","description":"The emojis to delete","rest":true,"pointer":0,"required":true,"type":"GuildEmoji"}],"category":"emoji"},{"name":"$editApplicationEmoji","version":"1.5.0","description":"Edits an application emoji, returns bool","brackets":true,"unwrap":true,"args":[{"name":"emoji ID","description":"The emoji to edit","rest":false,"required":true,"type":"ApplicationEmoji"},{"name":"name","description":"The new name for the emoji","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"emoji"},{"name":"$editEmoji","version":"1.5.0","description":"Edits an emoji of a guild, returns bool","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to edit this emoji on","rest":false,"required":true,"type":"Guild"},{"name":"emoji ID","description":"The emoji to edit","rest":false,"required":true,"type":"GuildEmoji","pointer":0},{"name":"name","description":"The new name for the emoji","rest":false,"type":"String"},{"name":"reason","description":"The reason for editing the emoji","rest":false,"type":"String"},{"name":"roles","description":"The new roles to limit usage of this emoji to","rest":true,"type":"Role","pointer":0}],"output":["Boolean"],"category":"emoji"},{"name":"$emoji","version":"1.0.0","description":"Formats given emoji","brackets":false,"unwrap":true,"output":["String"],"args":[{"name":"emoji ID","description":"The emoji id to format","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$emojiAnimated","version":"1.0.0","description":"Returns whether the emoji is animated","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"emoji ID","description":"The emoji id to return its animation state","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$emojiCount","version":"1.0.0","description":"Returns the emoji count of all servers","unwrap":true,"brackets":false,"args":[{"name":"type","description":"The type of the emotes to count","rest":false,"required":true,"type":"Enum","enum":["normal","animated"],"enumName":"EmojiType"}],"output":["Number"],"category":"emoji"},{"name":"$emojiCreatedAt","version":"1.0.0","description":"Returns the emoji creation timestamp","brackets":false,"unwrap":true,"output":["Number"],"args":[{"name":"emoji ID","description":"The emoji id to return its creation timestamp","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$emojiExists","version":"1.0.0","description":"Returns whether an emoji id exists","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"emoji ID","description":"The emoji to check","rest":false,"required":true,"type":"String"}],"category":"emoji"},{"name":"$emojiGuildID","version":"1.0.0","description":"Returns the emoji guild id","brackets":false,"unwrap":true,"output":["Guild"],"args":[{"name":"emoji ID","description":"The emoji id to return its guild id","rest":false,"type":"GuildEmoji","required":true}],"category":"emoji"},{"name":"$emojiID","version":"1.2.0","description":"Returns the emoji id","brackets":false,"unwrap":true,"output":["Emoji"],"args":[{"name":"emoji name","description":"The emoji name to return its id","rest":false,"type":"String","required":true}],"category":"emoji"},{"name":"$emojiIDs","description":"Returns every guild emoji id","version":"1.3.0","unwrap":true,"brackets":false,"output":["GuildEmoji[]"],"args":[{"name":"separator","description":"The separator to use for every emoji","rest":false,"type":"String"}],"category":"emoji"},{"name":"$emojiIdentifier","version":"1.0.0","description":"Returns the emoji identifier","brackets":false,"unwrap":true,"output":["String"],"args":[{"name":"emoji ID","description":"The emoji id to return its identifier","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$emojiName","version":"1.2.0","description":"Returns the emoji name","brackets":false,"unwrap":true,"output":["String"],"args":[{"name":"emoji ID","description":"The emoji id to return its name","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$emojiNames","version":"1.0.0","description":"Returns the emote names of a guild","brackets":false,"output":["String[]"],"args":[{"name":"guild ID","description":"The guild to return the emotes of","rest":false,"type":"Guild","required":true},{"name":"separator","description":"The separator to use for each emoji","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"emoji"},{"name":"$emojiRawData","version":"1.5.0","description":"Returns the raw data of an emoji","unwrap":true,"brackets":true,"args":[{"name":"emoji ID","rest":false,"required":true,"description":"The emoji to get raw data from","type":"Emoji"}],"output":["Json"],"category":"emoji"},{"name":"$emojiRequiresColons","version":"1.0.0","description":"Returns whether the emoji requires colons","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"emoji ID","description":"The emoji id to return its colons state","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$emojiRoles","version":"1.0.0","description":"Returns the role ids that can use this emote","brackets":false,"unwrap":true,"output":["Role[]"],"args":[{"name":"emoji ID","description":"The emoji id to return its roles","rest":false,"type":"GuildEmoji","required":true},{"name":"separator","description":"The separator to use for every role","rest":false,"type":"String"}],"category":"emoji"},{"name":"$emojiURL","version":"1.0.0","description":"Returns the emoji url","brackets":false,"unwrap":true,"output":["URL"],"args":[{"name":"emoji ID","description":"The emoji id to return its url","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$getApplicationEmojis","version":"1.5.0","description":"Gets all application emojis","brackets":false,"unwrap":true,"args":[{"name":"property","description":"The property to return for every emoji","rest":false,"type":"Enum","enum":["authorID","name","id","identifier","requiresColons","managed","timestamp","animated","url","format"],"enumName":"ApplicationEmojiProperty"},{"name":"separator","description":"The separator to use for every emoji property","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"emoji"},{"name":"$randomApplicationEmojiID","version":"1.5.0","description":"Returns a random emoji ID of the application","unwrap":false,"output":["ApplicationEmoji"],"category":"emoji"},{"name":"$randomEmojiID","version":"1.0.3","description":"Returns a random emoji ID","unwrap":false,"output":["GuildEmoji"],"category":"emoji"},{"name":"$randomGuildEmojiID","version":"1.0.3","description":"Returns a random emoji ID of a guild","unwrap":true,"brackets":false,"output":["GuildEmoji"],"args":[{"name":"guild ID","description":"The guild to get emoji from","rest":false,"required":true,"type":"Guild"}],"category":"emoji"},{"name":"$entitlementConsume","version":"1.5.0","description":"Consumes an entitlement from an interaction","unwrap":true,"args":[{"name":"entitlement name","description":"The name of the entitlement to consume","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"entitlement"},{"name":"$entitlementEndTimestamp","version":"1.5.0","description":"Returns the time at which this entitlement ends","output":["Number"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementGuildID","version":"1.5.0","description":"Returns this entitlement's guild id","output":["Guild"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementID","version":"1.5.0","description":"Returns this entitlement's id","output":["String"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementIsActive","version":"1.5.0","description":"Returns whether this entitlement is active","output":["Boolean"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementIsConsumed","version":"1.5.0","description":"Returns whether this entitlement is consumed","output":["Boolean"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementIsDeleted","version":"1.5.0","description":"Returns whether this entitlement is deleted","output":["Boolean"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementIsGuildSubscription","version":"1.5.0","description":"Returns whether this entitlement is for a guild","output":["Boolean"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementIsUserSubscription","version":"1.5.0","description":"Returns whether this entitlement is for a user","output":["Boolean"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementSkuID","version":"1.5.0","description":"Returns this entitlement's sku id","output":["String"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementStartTimestamp","version":"1.5.0","description":"Returns the time at which this entitlement starts","output":["Number"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementType","version":"1.5.0","description":"Returns this entitlement's type","output":["EntitlementType"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementUserID","version":"1.5.0","description":"Returns this entitlement's user id","output":["User"],"unwrap":false,"category":"entitlement"},{"name":"$hasAllEntitlements","version":"1.5.0","aliases":["$interactionHasAllEntitlements"],"description":"Checks whether this interaction user has all of the given entitlements","unwrap":true,"brackets":true,"args":[{"name":"entitlement name","description":"The name of the entitlements to validate","rest":true,"required":true,"type":"String"}],"output":["Boolean"],"category":"entitlement"},{"name":"$hasAnyEntitlement","version":"1.5.0","aliases":["$interactionHasAnyEntitlement"],"description":"Checks whether this interaction user has any of the given entitlements","unwrap":true,"brackets":true,"args":[{"name":"entitlement name","description":"The name of the entitlements to validate","rest":true,"required":true,"type":"String"}],"output":["Boolean"],"category":"entitlement"},{"name":"$hasEntitlement","version":"1.5.0","aliases":["$interactionHasEntitlement"],"description":"Checks whether this interaction user has given entitlement","unwrap":true,"brackets":true,"args":[{"name":"entitlement name","description":"The name of the entitlement to validate","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"entitlement"},{"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"}],"category":"file"},{"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"}],"category":"file"},{"name":"$deleteFile","version":"1.0.0","description":"Deletes a file","unwrap":true,"brackets":true,"args":[{"name":"path","description":"The path to the file","rest":false,"required":true,"type":"String"}],"category":"file"},{"name":"$fileAccessedAt","version":"1.4.0","description":"Gets last time a file was accessed","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileBlockCount","version":"1.4.0","description":"Gets block count of a file or directory","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileBlockSize","version":"1.4.0","description":"Gets block size of a file or directory","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileChangedAt","version":"1.4.0","description":"Gets last time a file was changed","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileCreatedAt","version":"1.4.0","description":"Gets timestamp of a file or directory","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileExists","version":"1.0.0","description":"Checks whether a path exists","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileModifiedAt","version":"1.4.0","description":"Gets timestamp of a file or directory when it was last modified","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileSize","version":"1.2.0","description":"Gets size of a file or directory in bytes","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$isDirectory","version":"1.4.0","description":"Checks whether a path is a directory","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$isFile","version":"1.4.0","description":"Checks whether a path is a file","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$isSymbolicLink","version":"1.4.0","description":"Checks whether a path is a symbolic link","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$mkdir","version":"1.0.0","description":"Creates a directory","unwrap":true,"brackets":true,"args":[{"name":"path","description":"The path for the dir","rest":false,"required":true,"type":"String"}],"category":"file"},{"name":"$mktdir","version":"1.4.0","description":"Creates a temporary directory","unwrap":true,"brackets":true,"aliases":["$makeTempDir","$createTempDir"],"output":["String"],"args":[{"name":"prefix","description":"The prefix for the temp dir","rest":false,"required":true,"type":"String"}],"category":"file"},{"name":"$moveFile","version":"1.4.0","description":"Moves a path to another","brackets":true,"unwrap":true,"args":[{"name":"path","description":"The path to make to move","rest":false,"required":true,"type":"String"},{"name":"destination","description":"The output path","rest":false,"required":true,"type":"String"}],"category":"file"},{"name":"$pathJoin","version":"2.2.0","description":"Joins paths together","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"paths","description":"The paths to join with","rest":true,"required":true,"type":"String"}],"category":"file"},{"name":"$pathResolve","version":"2.2.0","description":"Resolves paths into an absolute path","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"paths","description":"The paths to resolve","rest":true,"required":true,"type":"String"}],"category":"file"},{"name":"$readDir","version":"1.5.0","description":"Reads the contents of a directory","unwrap":true,"brackets":true,"output":["Json","String[]"],"args":[{"name":"path","description":"The path to the directory","rest":false,"required":true,"type":"String"},{"name":"separator","description":"The separator to use for each result","rest":false,"type":"String"},{"name":"encoding","description":"The encoding to use for the result","rest":false,"type":"String"}],"category":"file"},{"name":"$readFile","version":"1.0.0","description":"Reads text from a file","unwrap":true,"brackets":true,"output":["Unknown"],"args":[{"name":"path","description":"The path to the file","rest":false,"required":true,"type":"String"},{"name":"encoding","description":"The encoding to use for the text","rest":false,"type":"String"}],"category":"file"},{"name":"$renameFile","version":"1.5.0","description":"Renames a file","unwrap":true,"brackets":true,"args":[{"name":"old path","description":"The old path to the file","rest":false,"required":true,"type":"String"},{"name":"new path","description":"The new path to the file","rest":false,"required":true,"type":"String"}],"category":"file"},{"name":"$symlink","version":"1.4.0","description":"Creates a symbolic link to another path","brackets":true,"unwrap":true,"args":[{"name":"path","description":"The path to make to use as reference","rest":false,"required":true,"type":"String"},{"name":"other path","description":"The other path to link","rest":false,"required":true,"type":"String"}],"category":"file"},{"name":"$truncateFile","version":"1.0.0","description":"Truncates text in a file to given length","unwrap":true,"brackets":true,"args":[{"name":"path","description":"The path to the file","rest":false,"required":true,"type":"String"},{"name":"length","description":"The new length for the file","rest":false,"type":"Number","required":true}],"category":"file"},{"name":"$writeFile","version":"1.0.0","description":"Writes 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 write","rest":false,"type":"String","required":true},{"name":"encoding","description":"The encoding to use for text","rest":false,"type":"String"}],"category":"file"},{"name":"$bold","version":"1.3.0","brackets":true,"description":"Makes given text bold","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to make bold, this will attempt to escape all *","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$codeBlock","version":"1.3.0","brackets":true,"description":"Creates a code block with given text","unwrap":true,"output":["String"],"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"}],"category":"formatting"},{"name":"$hyperlink","version":"1.3.0","brackets":true,"description":"Creates a hyperlink text","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to make hyperlink","rest":false,"required":true,"type":"String"},{"name":"url","description":"The url to use for hyperlink","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$inlineCode","aliases":["$inline","$markdown"],"version":"1.3.0","brackets":true,"description":"Adds backticks to text","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to mark down, this will attempt to escape all `","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$italic","version":"1.5.0","brackets":true,"description":"Makes given text italic","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to make italic, this will attempt to escape all _ and *","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$spoiler","version":"1.3.0","brackets":true,"description":"Makes given text a spoiler","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to make spoiler, this will attempt to escape all |","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$strikethrough","version":"1.3.0","brackets":true,"description":"Makes given text strikethrough","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to make strikethrough, this will attempt to escape all ~","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$subtext","version":"2.2.0","description":"Makes given text a subtext","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"text","description":"The text to make subtext","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$underline","version":"1.3.0","brackets":true,"description":"Adds an underline to text","aliases":["$underscore"],"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to add underline to, this will attempt to escape all _","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$createGuild","version":"1.5.0","description":"Creates a new guild, returns guild id","aliases":["$createServer"],"unwrap":true,"brackets":true,"deprecated":true,"args":[{"name":"name","description":"The name for the guild","rest":false,"required":true,"type":"String"},{"name":"icon","description":"The icon for the guild","rest":false,"type":"URL"},{"name":"template","description":"The template to use for the guild","rest":false,"type":"Template"}],"output":["Guild"],"category":"guild"},{"name":"$createGuildTemplate","version":"1.5.0","description":"Creates template for a guild, returns template code","aliases":["$createServerTemplate"],"unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to create template on","rest":false,"required":true,"type":"Guild"},{"name":"name","description":"The name for the template","rest":false,"required":true,"type":"String"},{"name":"description","description":"The description for the template","rest":false,"type":"String"}],"output":["Template"],"category":"guild"},{"name":"$deleteGuild","version":"1.5.0","description":"Deletes a guild, returns bool","aliases":["$deleteServer"],"unwrap":true,"brackets":true,"deprecated":true,"args":[{"name":"guild ID","description":"The guild to delete","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"category":"guild"},{"name":"$deleteGuildApplicationCommands","version":"1.4.0","description":"Deletes all guild commands of your bot from a guild","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to delete commands from","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"category":"guild"},{"name":"$deleteGuildTemplate","version":"1.5.0","description":"Deletes template from a guild, returns bool","aliases":["$deleteServerTemplate"],"unwrap":true,"brackets":true,"args":[{"name":"template code","description":"The code of the template to delete","rest":false,"required":true,"type":"Template"}],"output":["Boolean"],"category":"guild"},{"name":"$editGuildTemplate","version":"1.5.0","description":"Edits template on a guild, returns bool","aliases":["$editServerTemplate"],"unwrap":true,"brackets":true,"args":[{"name":"template code","description":"The code of the template to edit","rest":false,"required":true,"type":"Template"},{"name":"name","description":"The new name for the template","rest":false,"type":"String"},{"name":"description","description":"The new description for the template","rest":false,"type":"String"}],"output":["Boolean"],"category":"guild"},{"name":"$getGuildInvite","version":"2.2.0","description":"Returns information about a guild invite","brackets":true,"unwrap":true,"output":["Json","Unknown"],"args":[{"name":"guild ID","description":"The guild to fetch invite from","rest":false,"required":true,"type":"Guild"},{"name":"code","description":"The invite code","rest":false,"required":true,"type":"String"},{"name":"property","description":"The property of the invite to return","rest":false,"type":"Enum","enum":["authorID","channelID","guildID","uses","maxUses","maxAge","timestamp","code","url","type","expiresTimestamp","temporary","deletable","memberCount","presenceCount","targetType","targetUser"],"enumName":"InviteProperty"}],"category":"guild"},{"name":"$getGuildTemplate","version":"1.5.0","description":"Gets the data of a guild template","aliases":["$getServerTemplate"],"unwrap":true,"brackets":true,"args":[{"name":"template code","description":"The code of the template to get","rest":false,"required":true,"type":"Template"},{"name":"property","description":"The property of the template to return","rest":false,"type":"Enum","enum":["code","name","description","guildID","authorID","timestamp","updatedTimestamp","url","usageCount","unSynced"],"enumName":"TemplateProperty"}],"output":["Json","Unknown"],"category":"guild"},{"name":"$guildAfkChannelID","version":"1.3.0","aliases":["$serverGuildAfkChannelID"],"description":"Returns the server's afk channel ID","brackets":false,"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildAfkTimeout","version":"1.3.0","description":"Returns the server's afk timeout","brackets":false,"aliases":["$serverAfkTimeout"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildApproximateMemberCount","version":"1.3.0","description":"Returns the approximated member count","brackets":false,"aliases":["$serverApproximateMemberCount"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildApproximatePresenceCount","version":"1.3.0","description":"Returns the approximated presence count","brackets":false,"aliases":["$serverApproximatePresenceCount"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildAutomodRules","version":"1.5.0","description":"Returns all automod rules of a guild","aliases":["$getAutomodRules"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get automod rules from","rest":false,"required":true,"type":"Guild"},{"name":"property","description":"The property of each automod rule to return","rest":false,"type":"Enum","enum":["id","name","authorID","enabled","eventType","triggerType","triggerMetadata","exemptRoles","exemptChannels","actions","keywordFilter","regexPatterns","presets","allowList","mentionTotalLimit","mentionRaidProtectionEnabled"],"enumName":"AutomodRuleProperty"},{"name":"separator","description":"The separator to use for each property","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"guild"},{"name":"$guildAvailable","version":"1.3.0","description":"Returns whether the server is available","brackets":false,"aliases":["$serverAvailable"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"unwrap":true,"category":"guild"},{"name":"$guildBanReason","version":"1.4.0","unwrap":true,"brackets":false,"aliases":["$banReason","$serverBanReason","$getBanReason","$getGuildBanReason","$getServerBanReason"],"output":["String"],"description":"Fetches a ban reason of a user","args":[{"name":"guild ID","description":"The guild to pull ban from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to pull ban reason","rest":false,"required":true,"type":"User"}],"category":"guild"},{"name":"$guildBannedMembers","version":"1.4.0","description":"Returns banned member ids of a guild","aliases":["$serverBannedMembers"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to pull banned members from"},{"name":"separator","rest":false,"type":"String","description":"The separator for each id"}],"output":["User[]"],"category":"guild"},{"name":"$guildBanner","version":"1.0.0","description":"Returns the guild banner","brackets":false,"aliases":["$serverBanner"],"args":[{"name":"guild ID","description":"The guild to retrieve the banner","rest":false,"required":true,"type":"Guild"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"output":["URL"],"unwrap":true,"category":"guild"},{"name":"$guildBoostCount","version":"1.0.0","description":"Returns the server boost count","brackets":false,"aliases":["$serverBoostCount"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildBoostLevel","version":"1.0.0","description":"Returns the server boost tier","brackets":false,"aliases":["$serverBoostLevel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildBoostProgressBarEnabled","version":"1.5.0","description":"Returns whether a guild has the boost progress bar enabled","aliases":["$serverBoostProgressBarEnabled"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"category":"guild"},{"name":"$guildBoostRoleID","version":"1.0.0","description":"Returns the server boost role id","brackets":false,"aliases":["$serverBoostRoleID"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Role"],"unwrap":true,"category":"guild"},{"name":"$guildBoosterIDs","version":"1.5.0","description":"Returns all current boosters of a guild","brackets":false,"aliases":["$serverBoosterIDs"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"},{"name":"separator","description":"The separator to use for every member","rest":false,"type":"String"}],"output":["Member[]"],"unwrap":true,"category":"guild"},{"name":"$guildBotCount","version":"1.0.0","description":"Returns the bot count of a guild","brackets":false,"aliases":["$serverBotCount"],"args":[{"name":"guild ID","description":"The guild to retrieve bot count from","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildChannelCount","version":"1.0.0","description":"Returns the server channel count","brackets":false,"aliases":["$serverChannelCount"],"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get channels from","rest":false,"type":"Guild","required":true},{"name":"categories","description":"The categories to filter by","rest":true,"enum":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"type":"Enum","enumName":"ChannelType"}],"category":"guild"},{"name":"$guildChannelExists","version":"1.0.0","description":"Returns whether a guild channel id exists","unwrap":true,"aliases":["$serverChannelExists"],"output":["Boolean"],"brackets":true,"args":[{"name":"guild ID","description":"The guild to check for the guild channel","type":"Guild","rest":false,"required":true},{"name":"channel ID","description":"The role to guild channel","rest":false,"required":true,"type":"String"}],"category":"guild"},{"name":"$guildChannelIDs","version":"1.3.0","unwrap":true,"brackets":false,"aliases":["$serverChannelIDs"],"output":["Channel[]"],"description":"Returns every channel id of the guild","args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to get channel ids from"},{"name":"separator","description":"The separator to use for every channel","rest":false,"type":"String"}],"category":"guild"},{"name":"$guildCount","version":"1.0.0","description":"Returns the guild count","unwrap":false,"aliases":["$serverCount","$serversCount"],"output":["Number"],"category":"guild"},{"name":"$guildCreatedAt","version":"1.0.0","description":"Returns the server creation timestamp","brackets":false,"aliases":["$serverCreatedAt"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildDefaultMessageNotifications","version":"1.3.0","description":"Returns the default message notifications for this guild","brackets":false,"aliases":["$serverDefaultMessageNotifications"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["GuildDefaultMessageNotifications"],"unwrap":true,"category":"guild"},{"name":"$guildDescription","version":"1.0.0","description":"Returns the server description","brackets":false,"aliases":["$serverDescription"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["String"],"unwrap":true,"category":"guild"},{"name":"$guildDiscoverySplash","version":"1.3.0","description":"Returns the guild discovery splash","brackets":false,"aliases":["$serverDiscoverySplash"],"output":["URL"],"args":[{"name":"guild ID","description":"The guild to retrieve the discovery splash","rest":false,"required":true,"type":"Guild"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"guild"},{"name":"$guildDmSpamDetectedAt","version":"2.2.0","description":"Returns when a direct message spam was detected on a guild","aliases":["$serverDmSpamDetectedAt"],"brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"category":"guild"},{"name":"$guildDmsDisabledUntil","version":"2.2.0","description":"Returns the direct messages disabled timestamp of a guild","aliases":["$serverDmsDisabledUntil"],"brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"category":"guild"},{"name":"$guildEmojiCount","version":"1.0.0","description":"Returns the emoji count of a guild","brackets":false,"aliases":["$serverEmojiCount"],"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get emotes from","rest":false,"type":"Guild","required":true},{"name":"type","description":"The type of the emotes to count","rest":false,"type":"Enum","enum":["normal","animated"],"enumName":"EmojiType"}],"category":"guild"},{"name":"$guildEmojiIDs","version":"1.3.0","unwrap":true,"aliases":["$serverEmojiIDs"],"output":["GuildEmoji[]"],"brackets":false,"description":"Returns every emoji id of the guild","args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to get emoji ids from"},{"name":"separator","description":"The separator to use for every emoji","rest":false,"type":"String"}],"category":"guild"},{"name":"$guildEmojiLimit","version":"1.5.0","description":"Returns the emoji limit of a guild","brackets":false,"aliases":["$serverEmojiLimit"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildEmojis","version":"1.3.0","unwrap":true,"aliases":["$serverEmojis"],"output":["String[]"],"brackets":false,"description":"Returns every emoji of the guild","args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to get emoji from"},{"name":"separator","description":"The separator to use for every emoji","rest":false,"type":"String"}],"category":"guild"},{"name":"$guildExists","version":"1.0.0","description":"Returns whether a guild id exists","unwrap":true,"aliases":["$serverExists"],"output":["Boolean"],"brackets":true,"args":[{"name":"guild ID","description":"The guild to check","rest":false,"required":true,"type":"String"}],"category":"guild"},{"name":"$guildExplicitContentFilter","version":"1.3.0","description":"Returns the explicit content filter level for this guild","brackets":false,"aliases":["$serverExplicitContentFilter"],"output":["GuildExplicitContentFilter"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildFeatures","version":"1.0.0","description":"Returns the guild features","brackets":false,"aliases":["$serverFeatures"],"output":["GuildFeature[]"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"},{"name":"separator","description":"The separator to use","rest":false,"type":"String"}],"unwrap":true,"category":"guild"},{"name":"$guildHasAnyFeatures","version":"1.4.0","description":"Returns whether this guild has any of the given features","unwrap":true,"brackets":true,"aliases":["$guildHasAnyFeature","$hasAnyGuildFeatures","$hasAnyGuildFeature"],"args":[{"name":"guild ID","description":"The guild to check for features","rest":false,"required":true,"type":"Guild"},{"name":"features","rest":true,"required":true,"type":"Enum","enum":["AnimatedBanner","AnimatedIcon","ApplicationCommandPermissionsV2","AutoModeration","Banner","Community","CreatorMonetizableProvisional","CreatorStorePage","DeveloperSupportServer","Discoverable","Featurable","HasDirectoryEntry","Hub","InvitesDisabled","InviteSplash","LinkedToHub","MemberVerificationGateEnabled","MoreSoundboard","MonetizationEnabled","MoreStickers","News","Partnered","PreviewEnabled","PrivateThreads","RaidAlertsDisabled","RelayEnabled","RoleIcons","RoleSubscriptionsAvailableForPurchase","RoleSubscriptionsEnabled","Soundboard","TicketedEventsEnabled","VanityURL","Verified","VIPRegions","WelcomeScreenEnabled"],"description":"The features to check for","enumName":"GuildFeature"}],"output":["Boolean"],"category":"guild"},{"name":"$guildHasFeatures","version":"1.4.0","description":"Returns whether this guild has all the given features","unwrap":true,"brackets":true,"aliases":["$hasGuildFeatures"],"args":[{"name":"guild ID","description":"The guild to check for features","rest":false,"required":true,"type":"Guild"},{"name":"features","rest":true,"required":true,"type":"Enum","enum":["AnimatedBanner","AnimatedIcon","ApplicationCommandPermissionsV2","AutoModeration","Banner","Community","CreatorMonetizableProvisional","CreatorStorePage","DeveloperSupportServer","Discoverable","Featurable","HasDirectoryEntry","Hub","InvitesDisabled","InviteSplash","LinkedToHub","MemberVerificationGateEnabled","MoreSoundboard","MonetizationEnabled","MoreStickers","News","Partnered","PreviewEnabled","PrivateThreads","RaidAlertsDisabled","RelayEnabled","RoleIcons","RoleSubscriptionsAvailableForPurchase","RoleSubscriptionsEnabled","Soundboard","TicketedEventsEnabled","VanityURL","Verified","VIPRegions","WelcomeScreenEnabled"],"description":"The features to check for","enumName":"GuildFeature"}],"output":["Boolean"],"category":"guild"},{"name":"$guildHasTemplate","version":"1.5.0","description":"Returns whether this guild has a template","unwrap":true,"brackets":false,"aliases":["$hasGuildTemplate"],"args":[{"name":"guild ID","description":"The guild to check for template","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"category":"guild"},{"name":"$guildHighestRoleID","version":"1.5.0","description":"Returns the highest role id of a guild","aliases":["$serverHighestRoleID"],"brackets":false,"output":["Role"],"args":[{"name":"guild ID","description":"The guild to retrieve its highest role","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildID","version":"1.0.0","description":"Returns the guild id with given name","unwrap":true,"aliases":["$serverID"],"output":["Guild"],"brackets":false,"args":[{"name":"name","description":"The guild name to return the id","rest":true,"type":"String","required":true}],"category":"guild"},{"name":"$guildIDs","version":"1.0.0","description":"Returns all the guilds this bot is in","unwrap":true,"aliases":["$serverIDs"],"output":["Guild[]"],"brackets":false,"args":[{"name":"separator","description":"The separator for each guild","type":"String","required":true,"rest":false}],"category":"guild"},{"name":"$guildIcon","version":"1.0.0","description":"Returns the server icon","brackets":false,"aliases":["$serverIcon"],"output":["URL"],"args":[{"name":"guild ID","description":"The guild to retrieve the guild icon","rest":false,"required":true,"type":"Guild"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"guild"},{"name":"$guildInviteExists","version":"2.4.0","description":"Returns whether a guild invite code exists","aliases":["$serverInviteExists"],"unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to pull invites from","rest":false,"required":true,"type":"Guild"},{"name":"code","description":"The invite to check","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"guild"},{"name":"$guildInvitesDisabledUntil","version":"2.2.0","description":"Returns the invites disabled timestamp of a guild","aliases":["$serverInvitesDisabledUntil"],"brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"category":"guild"},{"name":"$guildLarge","version":"2.4.0","description":"Returns whether a guild is considered as large","unwrap":true,"brackets":false,"aliases":["$serverLarge"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"category":"guild"},{"name":"$guildLeave","version":"1.0.0","description":"Leaves a guild","brackets":false,"aliases":["$serverLeave"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to leave","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildLowestRoleID","version":"1.5.0","description":"Returns the lowest role id of a guild","aliases":["$serverLowestRoleID"],"brackets":false,"output":["Role"],"args":[{"name":"guild ID","description":"The guild to retrieve its lowest role","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMFALevel","version":"1.3.0","description":"Returns the mfa level for this guild","brackets":false,"aliases":["$serverMFALevel"],"output":["GuildMFALevel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMaxStageVideoChannelUsers","version":"1.3.0","description":"Returns the maximum video channel users for stage channels of this guild","brackets":false,"aliases":["$serverMaxStageVideoChannelUsers"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMaxVideoChannelUsers","version":"1.3.0","description":"Returns the maximum video channel users for this guild","brackets":false,"aliases":["$serverMaxVideoChannelUsers"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMaximumBitrate","version":"1.3.0","aliases":["$serverMaximumBitrate"],"output":["Number"],"description":"Returns the maximum bitrate for voice channels of this guild","brackets":false,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMaximumMembers","version":"1.3.0","description":"Returns the maximum members for this guild","brackets":false,"aliases":["$serverMaximumMembers"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMaximumPresences","version":"1.3.0","description":"Returns the maximum presences for this guild","brackets":false,"aliases":["$serverMaximumPresences"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMemberCount","version":"1.0.0","description":"Returns the user count of a guild","brackets":false,"aliases":["$serverMemberCount","$serverMembersCount"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve member count from","rest":false,"required":true,"type":"Guild"},{"name":"presence","description":"The presence of the users to count","rest":false,"type":"Enum","enum":["online","idle","dnd","offline"],"enumName":"PresenceStatus"},{"name":"count bots","description":"Whether to count bots","rest":false,"type":"Boolean"}],"unwrap":true,"category":"guild"},{"name":"$guildMemberIDs","version":"1.4.0","aliases":["$memberIDs","$serverMemberIDs"],"output":["Member[]"],"description":"Returns all cached member ids of a guild","brackets":false,"unwrap":true,"args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to pull members from"},{"name":"separator","description":"The separator to use for each member","rest":false,"type":"String"}],"category":"guild"},{"name":"$guildNSFWLevel","version":"1.3.0","description":"Returns the nsfw level for this guild","brackets":false,"aliases":["$serverNSFWLevel"],"output":["GuildNSFWLevel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildName","version":"1.0.0","description":"Returns the server name","brackets":false,"aliases":["$serverName"],"output":["String"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildNameAcronym","version":"1.3.0","description":"Returns the server name acronym","brackets":false,"aliases":["$serverNameAcronym"],"output":["String"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildNames","version":"1.0.0","description":"Returns the server names of the bot","brackets":false,"aliases":["$serverNames"],"output":["String[]"],"args":[{"name":"separator","description":"The separator to use for each guild","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"guild"},{"name":"$guildOwnerID","version":"1.0.0","description":"Returns the server owner id","brackets":false,"aliases":["$serverOwnerID"],"output":["User"],"args":[{"name":"guild ID","description":"The guild to retrieve the owner from","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildPartnered","version":"1.3.0","description":"Returns whether the server is partnered","brackets":false,"aliases":["$serverPartnered"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildPreferredLocale","version":"1.3.0","description":"Returns the server's preferred locale","brackets":false,"aliases":["$serverPreferredLocale"],"output":["Locale"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildPublicUpdatesChannelID","version":"1.3.0","description":"Returns the server's public updates channel ID","brackets":false,"aliases":["$serverPublicUpdatesChannelID"],"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildRaidDetectedAt","version":"2.2.0","description":"Returns when a raid was detected on a guild","aliases":["$serverRaidDetectedAt"],"brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"category":"guild"},{"name":"$guildRawData","version":"1.5.0","description":"Returns the raw data of a guild","aliases":["$serverRawData"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get raw data from","rest":false,"type":"Guild","required":true}],"output":["Json"],"category":"guild"},{"name":"$guildRoleCount","version":"1.0.0","description":"Returns the role count of a guild","brackets":false,"aliases":["$serverRoleCount"],"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get roles from","rest":false,"type":"Guild","required":true}],"category":"guild"},{"name":"$guildRoleIDs","version":"1.3.0","unwrap":true,"aliases":["$serverRoleIDs"],"output":["Role[]"],"brackets":false,"description":"Returns every role id of the guild","args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to get role ids from"},{"name":"separator","description":"The separator to use for every role","rest":false,"type":"String"}],"category":"guild"},{"name":"$guildRulesChannelID","version":"1.3.0","description":"Returns the server's rules channel ID","brackets":false,"aliases":["$serverRulesChannelID"],"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildSafetyAlertsChannelID","version":"1.3.0","description":"Returns the server's safety alerts channel ID","brackets":false,"aliases":["$serverSafetyAlertsChannelID"],"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildShardID","version":"1.0.0","description":"Returns the server shard ID","brackets":false,"aliases":["$serverShardID"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildSoundboardSounds","version":"2.4.0","description":"Returns all soundboard sounds of a guild","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get soundboard sounds from","rest":false,"required":true,"type":"Guild"},{"name":"property","description":"The property of each sound to return","rest":false,"type":"Enum","enum":["name","id","guildID","userID","emoji","volume","timestamp","available","url"],"enumName":"SoundboardSoundProperty"},{"name":"separator","description":"The separator to use for each property","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"guild"},{"name":"$guildSplashURL","version":"1.0.0","aliases":["$serverSplashURL"],"output":["URL"],"description":"Returns the guild splash url","brackets":false,"args":[{"name":"guild ID","description":"The guild to retrieve the splash","rest":false,"required":true,"type":"Guild"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"guild"},{"name":"$guildStageInstances","version":"2.3.0","description":"Returns all active stage instances of a guild","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get stage instances from","rest":false,"required":true,"type":"Guild"},{"name":"property","description":"The property of each stage instance to return","rest":false,"type":"Enum","enum":["channelID","id","topic","timestamp","guildID","privacyLevel","eventId"],"enumName":"StageProperty"},{"name":"separator","description":"The separator to use for each property","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"guild"},{"name":"$guildStickerIDs","version":"1.3.0","unwrap":true,"aliases":["$serverStickerIDs"],"output":["Sticker[]"],"brackets":false,"description":"Returns every sticker id of the guild","args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to get sticker ids from"},{"name":"separator","description":"The separator to use for every sticker","rest":false,"type":"String"}],"category":"guild"},{"name":"$guildStickerLimit","version":"1.5.0","description":"Returns the sticker limit of a guild","brackets":false,"aliases":["$serverStickerLimit"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildSystemChannelID","version":"1.0.0","description":"Returns the server's system channel ID","brackets":false,"aliases":["$serverSystemChannelID"],"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildTemplateCode","version":"2.4.0","description":"Returns the template code of a guild","unwrap":true,"brackets":false,"aliases":["$serverTemplateCode"],"args":[{"name":"guild ID","description":"The guild to get template from","rest":false,"required":true,"type":"Guild"}],"output":["Template"],"category":"guild"},{"name":"$guildTimedOutMembers","version":"1.5.0","description":"Returns all current timed out members of a guild","unwrap":true,"brackets":false,"aliases":["$serverTimedOutMembers"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"},{"name":"separator","description":"The separator to use for every member","rest":false,"type":"String"}],"output":["Member[]"],"category":"guild"},{"name":"$guildVanityCode","version":"1.0.0","description":"Returns the guilds vanity code","unwrap":true,"aliases":["$serverVanityCode"],"output":["Invite"],"args":[{"name":"guild ID","description":"The guild to return its vanity code","rest":false,"type":"Guild","required":true}],"brackets":false,"category":"guild"},{"name":"$guildVanityUses","version":"1.0.0","description":"Returns the guilds vanity uses","unwrap":true,"aliases":["$serverVanityUses"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to return its vanity uses","rest":false,"type":"Guild","required":true}],"brackets":false,"category":"guild"},{"name":"$guildVerificationLevel","version":"1.3.0","description":"Returns the server verification level","brackets":false,"aliases":["$serverVerificationLevel"],"output":["GuildVerificationLevel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildVerified","version":"1.3.0","description":"Returns whether the server is verified","brackets":false,"aliases":["$serverVerified"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildWebhooks","version":"2.3.0","description":"Returns all webhooks of a guild","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"type":"Guild","required":true},{"name":"property","description":"The property to return","rest":false,"type":"Enum","enum":["id","name","type","avatar","ownerID","channelID","guildID","sourceChannelID","sourceGuildID","timestamp","token","url"],"enumName":"WebhookProperty"},{"name":"separator","description":"The separator to use for every property","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"guild"},{"name":"$guildWidgetChannelEnabled","version":"1.3.0","description":"Returns whether widget channel is enabled for this guild","brackets":false,"aliases":["$serverWidgetChannelEnabled"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildWidgetChannelID","version":"1.3.0","description":"Returns the widget channel for this guild","brackets":false,"aliases":["$serverWidgetChannelID"],"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$randomGuildID","version":"1.0.3","description":"Returns a random guild ID","unwrap":false,"aliases":["$randomServerID"],"output":["Guild"],"category":"guild"},{"name":"$registerGuildApplicationCommands","version":"1.4.0","description":"Registers all application commands with type: 1 to a guild","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to register commands to","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"category":"guild"},{"name":"$setGuildAFKChannel","version":"2.1.0","description":"Sets the AFK channel for a guild, returns bool","unwrap":true,"aliases":["$setServerAFKChannel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set AFK channel for","rest":false,"type":"Guild","required":true},{"name":"channel ID","description":"The new AFK channel","rest":false,"type":"Channel","pointer":0},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildAFKTimeout","version":"2.1.0","description":"Sets the AFK timeout for a guild, returns bool","unwrap":true,"aliases":["$setServerAFKTimeout"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set AFK timeout for","rest":false,"type":"Guild","required":true},{"name":"seconds","description":"The new AFK timeout in seconds (60, 300, 900, 1800, 3600)","rest":false,"required":true,"type":"Number"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildBanner","version":"1.0.0","description":"Sets a guild banner, returns boolean","unwrap":true,"aliases":["$setServerBanner"],"output":["Boolean"],"args":[{"name":"guild ID","rest":false,"type":"Guild","required":true,"description":"The guild to set banner on"},{"name":"url","description":"The new banner","rest":false,"type":"String"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildBoostProgressBar","version":"1.5.0","description":"Sets a guild boost progress bar, returns bool","aliases":["$setServerBoostProgressBar"],"unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to set boost progress bar for","rest":false,"required":true,"type":"Guild"},{"name":"enabled","description":"Whether to enable the boost progress bar","rest":false,"required":true,"type":"Boolean"},{"name":"reason","description":"The reason for enabling/disabling boost progress bar","rest":false,"type":"String"}],"output":["Boolean"],"category":"guild"},{"name":"$setGuildDefaultMessageNotifications","version":"2.1.0","description":"Sets the default message notifications setting for a guild, returns bool","unwrap":true,"aliases":["$setServerDefaultMessageNotifications"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set default message notifications for","rest":false,"type":"Guild","required":true},{"name":"setting","description":"The new default message notifications setting","rest":false,"type":"Enum","enum":["AllMessages","OnlyMentions"],"enumName":"GuildDefaultMessageNotifications"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildDiscoverySplash","version":"2.1.0","description":"Sets the discovery splash for a guild, returns bool","unwrap":true,"aliases":["$setServerDiscoverySplash"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set discovery splash for","rest":false,"type":"Guild","required":true},{"name":"url","description":"The new discovery splash","rest":false,"type":"String"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildExplicitContentFilter","version":"2.1.0","description":"Sets the explicit content filter for a guild, returns bool","unwrap":true,"aliases":["$setServerExplicitContentFilter"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set explicit content filter for","rest":false,"type":"Guild","required":true},{"name":"filter","description":"The new explicit content filter","rest":false,"type":"Enum","enum":["Disabled","MembersWithoutRoles","AllMembers"],"enumName":"GuildExplicitContentFilter"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildIcon","version":"1.0.0","description":"Sets a guild icon, returns boolean","unwrap":true,"aliases":["$setServerIcon"],"output":["Boolean"],"args":[{"name":"guild ID","rest":false,"type":"Guild","required":true,"description":"The guild to set icon on"},{"name":"url","description":"The new icon","rest":false,"type":"String"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildMFALevel","version":"2.1.0","description":"Sets the MFA level for a guild, returns bool","unwrap":true,"deprecated":true,"aliases":["$setServerMFALevel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set MFA level for","rest":false,"type":"Guild","required":true},{"name":"level","description":"The new MFA level","rest":false,"required":true,"type":"Enum","enum":["None","Elevated"],"enumName":"GuildMFALevel"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildName","version":"1.0.0","description":"Sets a guild name, returns boolean","unwrap":true,"aliases":["$setServerName"],"output":["Boolean"],"args":[{"name":"guild ID","rest":false,"type":"Guild","required":true,"description":"The guild to set name"},{"name":"name","description":"The new name","rest":false,"required":true,"type":"String"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildOwner","version":"2.1.0","description":"Sets the owner of a guild, returns bool","unwrap":true,"deprecated":true,"aliases":["$setServerOwner"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set owner on","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The new owner","rest":false,"required":true,"type":"Member","pointer":0},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildPausedInvites","version":"1.5.0","description":"Sets a guild paused invite status, returns bool","aliases":["$setServerPausedInvites"],"unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to set paused invites for","rest":false,"required":true,"type":"Guild"},{"name":"disabled","description":"Whether to disable the invites","rest":false,"required":true,"type":"Boolean"}],"output":["Boolean"],"category":"guild"},{"name":"$setGuildPreferredLocale","version":"2.1.0","description":"Sets the preferred locale of a guild, returns bool","unwrap":true,"aliases":["$setServerPreferredLocale"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set preferred locale on","rest":false,"type":"Guild","required":true},{"name":"locale","description":"The new preferred locale","rest":false,"type":"Enum","enum":["Indonesian","EnglishUS","EnglishGB","Bulgarian","ChineseCN","ChineseTW","Croatian","Czech","Danish","Dutch","Finnish","French","German","Greek","Hindi","Hungarian","Italian","Japanese","Korean","Lithuanian","Norwegian","Polish","PortugueseBR","Romanian","Russian","SpanishES","SpanishLATAM","Swedish","Thai","Turkish","Ukrainian","Vietnamese"],"enumName":"Locale"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildPublicUpdatesChannel","version":"2.1.0","description":"Sets the public updates channel for a guild, returns bool","unwrap":true,"aliases":["$setServerPublicUpdatesChannel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set public updates channel for","rest":false,"type":"Guild","required":true},{"name":"channel ID","description":"The new public updates channel","rest":false,"type":"Channel","pointer":0},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildRulesChannel","version":"2.1.0","description":"Sets the rules channel for a guild, returns bool","unwrap":true,"aliases":["$setServerRulesChannel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set rules channel for","rest":false,"type":"Guild","required":true},{"name":"channel ID","description":"The new rules channel","rest":false,"type":"Channel","pointer":0},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildSafetyAlertsChannel","version":"2.1.0","description":"Sets the safety alerts channel for a guild, returns bool","unwrap":true,"aliases":["$setServerSafetyAlertsChannel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set safety alerts channel for","rest":false,"type":"Guild","required":true},{"name":"channel ID","description":"The new safety alerts channel","rest":false,"type":"Channel","pointer":0},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildSplash","version":"1.0.0","description":"Sets a guild splash, returns boolean","unwrap":true,"aliases":["$setServerSplash"],"output":["Boolean"],"args":[{"name":"guild ID","rest":false,"type":"Guild","required":true,"description":"The guild to set splash on"},{"name":"url","description":"The new splash","rest":false,"type":"String"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildSystemChannel","version":"2.1.0","description":"Sets the system channel for a guild, returns bool","unwrap":true,"aliases":["$setServerSystemChannel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set system channel for","rest":false,"type":"Guild","required":true},{"name":"channel ID","description":"The new system channel","rest":false,"type":"Channel","pointer":0},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildVerificationLevel","version":"2.1.0","description":"Sets the verification level of a guild, returns bool","unwrap":true,"aliases":["$setServerVerificationLevel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set verification level on","rest":false,"type":"Guild","required":true},{"name":"level","description":"The new verification level","rest":false,"type":"Enum","enum":["None","Low","Medium","High","VeryHigh"],"enumName":"GuildVerificationLevel"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildWidgetSettings","version":"2.1.0","description":"Sets the widget settings of a guild, returns bool","unwrap":true,"aliases":["$setServerWidgetSettings"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set widget settings on","rest":false,"type":"Guild","required":true},{"name":"channel ID","description":"The invite channel for the widget","rest":false,"type":"Channel"},{"name":"enabled","description":"Whether to enable the widget","rest":false,"type":"Boolean"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$syncGuildTemplate","version":"2.4.0","description":"Syncs this template to the current state of the guild, returns bool","aliases":["$syncServerTemplate"],"unwrap":true,"brackets":true,"args":[{"name":"template code","description":"The code of the template to sync","rest":false,"required":true,"type":"Template"}],"output":["Boolean"],"category":"guild"},{"name":"$httpAddForm","version":"1.4.0","description":"Adds form data to request","unwrap":false,"category":"http"},{"name":"$httpAddHeader","version":"1.0.0","description":"Adds an HTTP header","unwrap":true,"args":[{"name":"name","description":"The header name","rest":false,"type":"String","required":true},{"name":"value","description":"The header value","rest":true,"type":"String","required":true}],"brackets":true,"category":"http"},{"name":"$httpAppendFile","version":"1.4.0","description":"Appends a file to form data","brackets":true,"unwrap":true,"args":[{"name":"key","description":"The key name to add this value to","rest":false,"required":true,"type":"String"},{"name":"url / path","type":"Attachment","rest":false,"required":true,"description":"The path or url to use"}],"category":"http"},{"name":"$httpAppendValue","version":"1.4.0","description":"Appends a key-value to form data","brackets":true,"unwrap":true,"args":[{"name":"key","description":"The key name to add this value to","rest":false,"required":true,"type":"String"},{"name":"value","type":"String","rest":false,"required":true,"description":"The value to set"}],"category":"http"},{"name":"$httpGetHeader","version":"1.5.0","description":"Gets an HTTP header","unwrap":true,"brackets":true,"args":[{"name":"name","description":"The header name","rest":false,"type":"String","required":true}],"output":["String"],"category":"http"},{"name":"$httpPing","version":"1.5.0","description":"Returns the response time of the HTTP request","aliases":["$httpResponseTime"],"unwrap":false,"experimental":true,"output":["Number"],"category":"http"},{"name":"$httpRemoveHeader","version":"1.0.0","description":"Removes an HTTP header","unwrap":true,"args":[{"name":"name","description":"The header name","rest":false,"type":"String","required":true}],"brackets":true,"category":"http"},{"name":"$httpRequest","version":"1.0.0","description":"Performs an http request, returns the status code","output":["Number"],"args":[{"name":"url","description":"The url to perform this request to","type":"String","rest":false,"required":true},{"name":"method","description":"The method to use","rest":false,"required":true,"type":"String"},{"name":"variable","description":"Environment variable name to load the response to","rest":false,"required":false,"type":"String"}],"brackets":true,"unwrap":true,"category":"http"},{"name":"$httpResult","version":"1.2.0","description":"Retrieve an http result value","brackets":false,"unwrap":true,"args":[{"name":"key","description":"The key to return its value","required":true,"type":"String","rest":true}],"output":["Json","Unknown"],"category":"http"},{"name":"$httpSetBody","version":"1.0.0","description":"Sets a JSON body for the request","args":[{"name":"body","description":"The JSON body","rest":false,"required":true,"type":"String"}],"unwrap":true,"brackets":true,"category":"http"},{"name":"$httpSetContentType","version":"1.4.0","description":"Forces the http request to be decoded using given content type","args":[{"name":"type","description":"The content type of the result","required":true,"type":"Enum","enum":["Json","Text"],"rest":false,"enumName":"HTTPContentType"}],"brackets":true,"unwrap":true,"category":"http"},{"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"}],"output":["String"],"unwrap":true,"category":"interaction"},{"name":"$applicationCommandDisplay","version":"1.4.0","description":"Gets the full command interaction with all options","unwrap":true,"brackets":false,"args":[{"name":"hide option name","description":"Whether to suppress option names from being displayed","rest":false,"required":true,"type":"Boolean"}],"output":["String"],"category":"interaction"},{"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"}],"output":["String"],"unwrap":true,"category":"interaction"},{"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"}],"output":["String"],"unwrap":true,"category":"interaction"},{"name":"$applicationCommandOptions","version":"1.5.0","description":"Returns an application command options in JSON format","brackets":false,"args":[{"name":"id","description":"The id of the command to pull its options","rest":false,"required":true,"type":"String"}],"output":["Json"],"unwrap":true,"category":"interaction"},{"name":"$applicationSubCommandGroupName","version":"1.5.0","description":"Returns the application sub command group name of this interaction","unwrap":false,"output":["String"],"category":"interaction"},{"name":"$applicationSubCommandName","version":"1.5.0","description":"Returns the application sub command name of this interaction","unwrap":false,"output":["String"],"category":"interaction"},{"name":"$authorizingIntegrationOwners","version":"1.5.0","description":"Returns the authorizing integration owners of this interaction","unwrap":true,"brackets":false,"args":[{"name":"type","description":"The type of authorizing integration owners to return","rest":false,"required":true,"type":"Enum","enum":["Guild","User"],"enumName":"AuthorizingIntegrationOwnersType"}],"output":["Json","User","Guild"],"category":"interaction"},{"name":"$autocomplete","version":"1.0.6","description":"Forces autocomplete response","unwrap":false,"category":"interaction"},{"name":"$context","version":"1.5.0","description":"Returns the context of this interaction","aliases":["$interactionContext"],"unwrap":false,"output":["InteractionContextType"],"category":"interaction"},{"name":"$customID","version":"1.0.0","description":"Retrieves the custom id of the interaction","unwrap":false,"output":["String"],"category":"interaction"},{"name":"$defer","version":"1.0.0","description":"Defers this interaction","unwrap":false,"category":"interaction"},{"name":"$deferUpdate","version":"1.3.0","description":"Defers this interaction as an update","unwrap":false,"category":"interaction"},{"name":"$ephemeral","version":"1.0.0","description":"Marks this reply as ephemeral","unwrap":false,"category":"interaction"},{"name":"$focusedOptionName","version":"1.0.6","description":"Returns the focused option of the command","unwrap":false,"output":["String"],"category":"interaction"},{"name":"$focusedOptionValue","version":"1.0.6","description":"Returns the focused option value of the command","unwrap":false,"output":["Unknown"],"category":"interaction"},{"name":"$input","version":"1.0.0","description":"Returns a value from a text field","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"custom ID","description":"The custom id to get the input field value","rest":false,"type":"String","required":true}],"category":"interaction"},{"name":"$interactionDelete","version":"1.4.0","description":"Deletes this interaction's reply","unwrap":false,"category":"interaction"},{"name":"$interactionFollowUp","version":"1.2.0","description":"Forces an interaction follow up","unwrap":true,"brackets":false,"output":["Message"],"args":[{"name":"content","description":"The content to use for this follow up","required":true,"type":"String","rest":false},{"name":"return message ID","description":"Whether to fetch and return the message id of the follow up","rest":false,"type":"Boolean","required":false}],"category":"interaction"},{"name":"$interactionRawData","version":"1.5.0","description":"Returns the raw data of this interaction","unwrap":false,"output":["Json"],"category":"interaction"},{"name":"$interactionReply","version":"1.0.0","description":"Forces an interaction reply","unwrap":true,"brackets":false,"output":["Message"],"args":[{"name":"content","description":"The content to use for this response","required":true,"type":"String","rest":false},{"name":"return message ID","description":"Whether to fetch and return the message id of the reply","rest":false,"type":"Boolean","required":false}],"category":"interaction"},{"name":"$interactionRequirePremium","version":"1.5.0","description":"Requires premium to use this interaction","unwrap":false,"deprecated":true,"category":"interaction"},{"name":"$interactionUpdate","version":"1.0.3","description":"Forces an interaction update","unwrap":true,"brackets":false,"args":[{"name":"content","description":"The content to use for this response","required":true,"type":"String","rest":false}],"category":"interaction"},{"name":"$isActivityCommand","version":"2.4.0","description":"Returns whether the interaction is an activity command","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isAnySelectMenu","version":"1.0.0","output":["Boolean"],"description":"Returns whether the context is a select menu","unwrap":false,"category":"interaction"},{"name":"$isAutocomplete","version":"1.0.6","description":"Returns whether the interaction is autocomplete","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isButton","version":"1.0.0","description":"Returns whether the interaction is a button","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isChannelSelectMenu","version":"1.0.0","description":"Returns whether the context is a channel select menu","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isCommand","version":"1.0.6","description":"Returns whether the interaction is a command","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isContextMenu","version":"1.0.6","description":"Returns whether the interaction is a context menu","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isMentionableSelectMenu","version":"1.0.0","description":"Returns whether the context is a mentionable select menu","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isModal","version":"1.0.0","description":"Returns whether the context is a modal","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isRepliable","version":"1.5.0","description":"Returns whether this interaction can be replied to","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isRoleSelectMenu","version":"1.0.0","description":"Returns whether the context is a role select menu","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isSlashCommand","version":"1.4.0","description":"Returns whether the interaction is a slash command","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isStringSelectMenu","version":"1.0.0","description":"Returns whether the context is a string select menu","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isUserSelectMenu","version":"1.0.0","description":"Returns whether the context is a user select menu","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$launchActivity","version":"2.4.0","description":"Launches the activity of the client, if enabled","unwrap":false,"category":"interaction"},{"name":"$locale","aliases":["$interactionLocale"],"version":"1.4.0","description":"Retrieves the user locale of the interaction","unwrap":false,"output":["Locale"],"category":"interaction"},{"name":"$modal","version":"1.0.0","description":"Creates a modal","unwrap":true,"brackets":true,"args":[{"name":"custom ID","description":"The custom id for this modal","rest":false,"type":"String","required":true},{"name":"title","description":"The title for the modal","rest":false,"required":true,"type":"String"}],"category":"interaction"},{"name":"$option","version":"1.0.6","description":"Returns an option value with given name (interaction command)","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"option name","description":"The option name to retrieve its value","rest":false,"required":true,"type":"String"}],"category":"interaction"},{"name":"$selectMenuValues","version":"1.0.0","description":"Returns select menu values","brackets":false,"args":[{"name":"index","description":"The index of the value","type":"Number","rest":false},{"name":"separator","description":"The separator to use for each value","type":"String","rest":false}],"output":["String[]"],"unwrap":true,"category":"interaction"},{"name":"$showModal","version":"1.4.0","description":"Submits the modal","unwrap":false,"category":"interaction"},{"name":"$targetMember","version":"2.3.0","description":"Retrieves data of the target member","unwrap":true,"brackets":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["nickname","displayName","displayColor","roles","flags","mention","avatar","banner","bannable","kickable","guildID","id","manageable","timeout","timedOutUntil","status","addedRoles","roleCount","removedRoles","platform","timestamp","boosting","boostingSince","permissions"],"required":true,"enumName":"MemberProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"output":["Unknown"],"category":"interaction"},{"name":"$targetMessage","version":"1.5.0","description":"Retrieves data of the target message","unwrap":true,"brackets":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","content","flags","username","type","channelID","guildID","authorID","timestamp","editTimestamp","hasPoll","system","pinned","url","attachments","stickers"],"required":true,"enumName":"MessageProperty"},{"name":"separator","description":"Separator to use in case of array","rest":false,"type":"String"}],"output":["Unknown"],"category":"interaction"},{"name":"$targetMessageEmbeds","version":"1.5.0","description":"Retrieves data of embeds from the target message","aliases":["$targetMessageEmbed"],"unwrap":true,"brackets":false,"args":[{"name":"embed index","description":"The embed index to get data from","rest":false,"required":false,"type":"Number"},{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["title","titleURL","authorName","authorIcon","footerText","image","thumbnail","footerIcon","description","timestamp","authorURL","color","fieldName","fieldInline","fieldValue"],"required":false,"enumName":"EmbedProperty"},{"name":"field index","description":"The index of the field to get","rest":false,"type":"Number"}],"output":["Json","Unknown"],"category":"interaction"},{"name":"$deleteInvite","version":"1.0.0","brackets":true,"description":"Deletes an invite, returns bool","unwrap":true,"output":["Boolean"],"args":[{"name":"code","description":"The invite code","rest":false,"required":true,"type":"String"},{"name":"reason","description":"The reason for deleting the invite","rest":false,"type":"String"}],"category":"invite"},{"name":"$getInvite","version":"2.2.0","description":"Returns information about an invite","brackets":true,"unwrap":true,"output":["Json","Unknown"],"args":[{"name":"code","description":"The invite code","rest":false,"required":true,"type":"String"},{"name":"property","description":"The property of the invite to return","rest":false,"type":"Enum","enum":["authorID","channelID","guildID","uses","maxUses","maxAge","timestamp","code","url","type","expiresTimestamp","temporary","deletable","memberCount","presenceCount","targetType","targetUser"],"enumName":"InviteProperty"}],"category":"invite"},{"name":"$inviteExists","version":"1.0.0","description":"Returns whether an invite code exists","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"code","description":"The invite to check","rest":false,"required":true,"type":"String"}],"category":"invite"},{"name":"$inviterCode","version":"1.0.3","description":"Returns the invite code that was used by this person","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to get its invite code","rest":false,"required":true,"type":"Member","pointer":0}],"output":["Invite"],"category":"invite"},{"name":"$inviterID","version":"1.0.3","description":"Returns the user who invited this person","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to get its inviter","rest":false,"required":true,"type":"Member","pointer":0}],"output":["User"],"category":"invite"},{"name":"$isJSON","version":"1.4.0","aliases":["$isValidJSON"],"description":"Checks whether given json is valid","unwrap":true,"brackets":true,"args":[{"name":"json","description":"The json to check for","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"json"},{"name":"$jsonDelete","version":"1.4.0","description":"Delete a key from a traversed json","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"keys","description":"The keys to use to traverse the object","rest":true,"required":true,"type":"String"}],"category":"json"},{"name":"$jsonEntries","version":"1.4.0","description":"Gets entries from a json var","brackets":true,"args":[{"name":"variable","description":"The variable to get entries from","rest":false,"type":"String","required":true}],"output":["Json"],"unwrap":true,"category":"json"},{"name":"$jsonHas","version":"2.2.0","description":"Returns whether a key exists in a JSON object","brackets":true,"unwrap":true,"args":[{"name":"variable","description":"The variable that holds json","required":true,"type":"String","rest":false},{"name":"key","description":"The key to check for","type":"String","required":true,"rest":false}],"output":["Boolean"],"category":"json"},{"name":"$jsonKeys","version":"1.4.0","description":"Gets keys from a json var","brackets":true,"args":[{"name":"variable","description":"The variable to get keys from","rest":false,"type":"String","required":true}],"output":["Json"],"unwrap":true,"category":"json"},{"name":"$jsonLoad","version":"1.0.0","description":"Loads JSON to an env variable","brackets":true,"args":[{"name":"variable","description":"The variable to load it to","rest":false,"type":"String","required":true},{"name":"json","description":"The json data","type":"Json","required":true,"rest":false}],"unwrap":true,"category":"json"},{"name":"$jsonSet","version":"1.2.0","description":"Adds a json key with a value","unwrap":true,"brackets":true,"args":[{"name":"keys;value","description":"The keys to traverse, with the value to use at the end","type":"String","rest":true,"required":true}],"output":["Boolean"],"category":"json"},{"name":"$jsonStringify","version":"1.5.0","output":["Json"],"description":"Returns the JSON in stringified format","args":[{"name":"variable","description":"The variable to stringify","required":true,"type":"String","rest":false},{"name":"space","description":"The space to use","type":"Number","rest":false}],"brackets":true,"unwrap":true,"category":"json"},{"name":"$jsonValues","version":"1.4.0","description":"Gets values from a json var","brackets":true,"args":[{"name":"variable","description":"The variable to get values from","rest":false,"type":"String","required":true},{"name":"separator","description":"The separator to use for each value","type":"String","rest":false}],"output":["Json","Unknown[]"],"unwrap":true,"category":"json"},{"name":"$onlyForCategories","version":"1.5.0","description":"Only executes code if given ids match the current category","brackets":true,"unwrap":false,"args":[{"name":"code","description":"The code to execute if category is not whitelisted","rest":false,"required":true,"type":"String"},{"name":"channels","pointer":0,"description":"The categories to check for","rest":true,"required":true,"type":"Channel"}],"category":"limiter"},{"name":"$onlyForChannels","version":"1.5.0","description":"Only executes code if given ids match the current channel","brackets":true,"unwrap":false,"args":[{"name":"code","description":"The code to execute if channel is not whitelisted","rest":false,"required":true,"type":"String"},{"name":"channels","pointer":0,"description":"The channels to check for","rest":true,"required":true,"type":"Channel"}],"category":"limiter"},{"name":"$onlyForGuilds","version":"1.1.0","description":"Only executes code if given ids match the guild","brackets":true,"unwrap":false,"args":[{"name":"code","description":"The code to execute if guild is not whitelisted","rest":false,"required":true,"type":"String"},{"name":"guilds","description":"The guilds to check for","rest":true,"required":true,"type":"Guild"}],"category":"limiter"},{"name":"$onlyForRoles","version":"1.1.0","description":"Only executes code if user has given roles","brackets":true,"unwrap":false,"args":[{"name":"code","description":"The code to execute if user does not meet the roles","rest":false,"required":true,"type":"String"},{"name":"roles","pointer":0,"description":"The roles to check for","rest":true,"required":true,"type":"Role"}],"category":"limiter"},{"name":"$onlyForUsers","version":"1.1.0","description":"Only executes code if given ids match the author","brackets":true,"unwrap":false,"args":[{"name":"code","description":"The code to execute if user is not whitelisted","rest":false,"required":true,"type":"String"},{"name":"users","description":"The users to check for","rest":true,"required":true,"type":"User"}],"category":"limiter"},{"name":"$onlyIf","version":"1.0.0","description":"Stop execution if condition is not matched","unwrap":false,"brackets":true,"args":[{"name":"condition","condition":true,"description":"The condition to use","rest":false,"type":"String","required":true},{"name":"code","description":"The code to execute if error","rest":false,"type":"String"}],"category":"limiter"},{"name":"$stop","version":"1.0.0","description":"Stops code execution","unwrap":false,"category":"limiter"},{"name":"$chalkLog","version":"2.3.0","description":"Logs styled text to the console using Chalk","unwrap":true,"brackets":true,"args":[{"name":"text","description":"The text to log","type":"String","required":true,"rest":false},{"name":"styles","description":"The styles to apply to the text","type":"String","required":true,"rest":true}],"category":"logging"},{"name":"$log","version":"1.0.0","description":"Log something to console","unwrap":true,"args":[{"name":"message","description":"The message to log to console","rest":true,"type":"String","required":true}],"brackets":true,"category":"logging"},{"name":"$logger","version":"1.3.0","description":"Implements Logger API of ForgeScript","unwrap":true,"brackets":true,"args":[{"name":"log type","description":"The log type","enum":["Warn","Deprecated","Debug","Info","Error"],"type":"Enum","required":true,"rest":false,"enumName":"LogType"},{"name":"text","description":"The text to log","rest":false,"required":true,"type":"String"}],"category":"logging"},{"name":"$findApplicationEmoji","version":"2.2.0","description":"Finds an application emoji of the client","brackets":true,"output":["ApplicationEmoji"],"args":[{"name":"query","description":"The id, format or emoji name to find","rest":false,"type":"String","required":true}],"unwrap":true,"category":"lookup"},{"name":"$findChannel","version":"1.0.0","description":"Finds a channel","brackets":true,"output":["Channel"],"args":[{"name":"query","description":"The id, mention or channel name to find","rest":false,"type":"String","required":true},{"name":"return channel","description":"Returns the current channel id if none found","rest":false,"type":"Boolean"}],"unwrap":true,"category":"lookup"},{"name":"$findChannels","version":"1.5.0","description":"Finds channels of a guild using a query","brackets":true,"output":["Unknown[]"],"args":[{"name":"guild ID","description":"The guild to find the channels on","type":"Guild","rest":false,"required":true},{"name":"query","description":"The id, mention or channel name to find","rest":false,"type":"String","required":true},{"name":"limit","description":"The limit of results","rest":false,"type":"Number"},{"name":"property","description":"The property to return","rest":false,"type":"Enum","enum":["id","type","topic","bitrate","members","name","timestamp"],"enumName":"ChannelProperty"},{"name":"separator","description":"The separator to use for every result","rest":false,"type":"String"},{"name":"method","description":"The method to use for searching","rest":false,"type":"Enum","enum":["startsWith","endsWith","includes"],"enumName":"SearchMethodType"}],"unwrap":true,"category":"lookup"},{"name":"$findEmoji","version":"1.0.0","description":"Finds an emoji","brackets":true,"output":["Emoji"],"args":[{"name":"query","description":"The id, format or emoji name to find","rest":false,"type":"String","required":true}],"unwrap":true,"category":"lookup"},{"name":"$findGuild","version":"2.2.0","description":"Finds a guild","brackets":true,"output":["Guild"],"args":[{"name":"query","description":"The id or guild name to find","rest":false,"type":"String","required":true},{"name":"return guild","description":"Returns the current guild id if none found","rest":false,"type":"Boolean"}],"unwrap":true,"category":"lookup"},{"name":"$findGuildChannel","version":"1.0.0","description":"Finds a channel of a guild","brackets":true,"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to find the channel on","type":"Guild","rest":false,"required":true},{"name":"query","description":"The id, mention or channel name to find","rest":false,"type":"String","required":true},{"name":"return channel","description":"Returns the current channel id if none found","rest":false,"type":"Boolean"}],"unwrap":true,"category":"lookup"},{"name":"$findGuildEmoji","version":"1.0.0","description":"Finds an emoji of a guild","brackets":true,"output":["GuildEmoji"],"args":[{"name":"guild ID","description":"The guild to find the emoji on","type":"Guild","rest":false,"required":true},{"name":"query","description":"The id, format or emoji name to find","rest":false,"type":"String","required":true}],"unwrap":true,"category":"lookup"},{"name":"$findMember","version":"1.0.0","description":"Finds a member of a guild","brackets":true,"output":["Member"],"args":[{"name":"guild ID","description":"The guild to find the member on","type":"Guild","rest":false,"required":true},{"name":"query","description":"The id, mention or name to find","rest":false,"type":"String","required":true},{"name":"return author","description":"Returns the current author id if none found","rest":false,"type":"Boolean"}],"unwrap":true,"category":"lookup"},{"name":"$findMembers","version":"1.4.0","description":"Finds member of a guild using a query","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to use","rest":false,"required":true,"type":"Guild"},{"name":"query","description":"The query to use","rest":false,"required":true,"type":"String"},{"name":"limit","description":"The limit of results","rest":false,"type":"Number"},{"name":"enum value","description":"The enum value to use","rest":false,"type":"Enum","enum":["nickname","displayName","displayColor","roles","flags","mention","avatar","banner","bannable","kickable","guildID","id","manageable","timeout","timedOutUntil","status","addedRoles","roleCount","removedRoles","platform","timestamp","boosting","boostingSince","permissions"],"enumName":"MemberProperty"},{"name":"separator","description":"The separator to use for every result","rest":false,"type":"String"}],"output":["Unknown[]"],"category":"lookup"},{"name":"$findRole","version":"1.0.0","description":"Finds a role of a guild","brackets":true,"output":["Role"],"args":[{"name":"guild ID","description":"The guild to find the role on","type":"Guild","rest":false,"required":true},{"name":"query","description":"The id, mention or role name to find","rest":false,"type":"String","required":true}],"unwrap":true,"category":"lookup"},{"name":"$findRoles","version":"1.5.0","description":"Finds roles of a guild using a query","brackets":true,"output":["Unknown[]"],"args":[{"name":"guild ID","description":"The guild to find the roles on","type":"Guild","rest":false,"required":true},{"name":"query","description":"The id, mention or role name to find","rest":false,"type":"String","required":true},{"name":"limit","description":"The limit of results","rest":false,"type":"Number"},{"name":"property","description":"The property to return","rest":false,"type":"Enum","enum":["timestamp","id","name","icon","color","hoisted","managed","mentionable","rawPosition","position","permissions","tags","members"],"enumName":"RoleProperty"},{"name":"separator","description":"The separator to use for every result","rest":false,"type":"String"},{"name":"method","description":"The method to use for searching","rest":false,"type":"Enum","enum":["startsWith","endsWith","includes"],"enumName":"SearchMethodType"}],"unwrap":true,"category":"lookup"},{"name":"$findUser","version":"1.0.0","description":"Finds a user","brackets":true,"output":["User"],"args":[{"name":"query","description":"The id, mention or user name to find","rest":false,"type":"String","required":true},{"name":"return author","description":"Returns the current author id if none found","rest":false,"type":"Boolean"}],"unwrap":true,"category":"lookup"},{"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,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$base","version":"1.1.0","description":"Convert number from one base to another","brackets":true,"unwrap":true,"output":["Number"],"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}],"category":"math"},{"name":"$bigintDivide","version":"1.3.0","description":"Divides multiple numbers","brackets":true,"unwrap":true,"output":["BigInt"],"args":[{"name":"numbers","description":"Numbers to divide","rest":true,"type":"BigInt","required":true}],"category":"math"},{"name":"$bigintMulti","version":"1.3.0","description":"Multiplies multiple numbers","brackets":true,"unwrap":true,"output":["BigInt"],"args":[{"name":"numbers","description":"Numbers to multiply","rest":true,"type":"BigInt","required":true}],"category":"math"},{"name":"$bigintSub","version":"1.3.0","description":"Subtracts multiple numbers","brackets":true,"unwrap":true,"output":["BigInt"],"args":[{"name":"numbers","description":"Numbers to sub","rest":true,"type":"BigInt","required":true}],"category":"math"},{"name":"$bigintSum","version":"1.3.0","description":"Adds multiple numbers","brackets":true,"unwrap":true,"output":["BigInt"],"args":[{"name":"numbers","description":"Numbers to add","rest":true,"type":"BigInt","required":true}],"category":"math"},{"name":"$ceil","version":"1.5.0","description":"Returns the smallest integer greater than or equal to its numeric argument","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$divide","version":"1.0.0","description":"Divides multiple numbers","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers to divide","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$floor","version":"1.0.0","description":"Returns the greatest integer less than or equal to its numeric argument","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$logn","version":"1.0.0","description":"Returns the natural logarithm (base e) of a number","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"Number to get its logarithm","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$math","version":"1.0.0","description":"Runs math expression, returns nothing if incorrect expression","brackets":true,"output":["Number"],"unwrap":true,"args":[{"name":"expr","description":"The math expression to run","rest":false,"type":"String","required":true}],"category":"math"},{"name":"$max","version":"1.0.7","description":"Returns the largest number of the ones given","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers among which to find the largest","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$min","version":"1.0.7","description":"Returns the smallest number of the ones given","brackets":true,"output":["Number"],"unwrap":true,"args":[{"name":"numbers","description":"Numbers among which to find the smallest","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$modulo","version":"1.0.0","description":"Returns the remainder of multiple numbers","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers to get their remainders","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$multi","version":"1.0.0","description":"Multiplies multiple numbers","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers to multiply","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$pi","version":"2.2.0","description":"Returns the constant pi","unwrap":false,"output":["Number"],"category":"math"},{"name":"$pow","version":"1.0.0","aliases":["$power"],"description":"Exponentially multiply multiple numbers","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers to power by","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$round","version":"1.0.0","description":"Rounds provided number to a certain number of decimal places","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true},{"name":"decimal places","description":"The number of decimal places to round to","rest":false,"type":"Number"}],"category":"math"},{"name":"$sign","version":"2.2.0","description":"Returns the sign of the x, indicating whether x is positive, negative or zero","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$sqrt","version":"1.0.0","description":"Returns the square root of a number","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$sub","version":"1.0.0","description":"Subtracts multiple numbers","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers to sub","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$sum","version":"1.0.0","description":"Adds multiple numbers","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers to add","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$trunc","version":"1.0.0","description":"Returns the integer part of the a numeric expression, x, removing any fractional digits. If x is already an integer, the result is x","aliases":["$truncate"],"brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$ban","version":"1.0.0","aliases":["$memberBan"],"description":"Bans a member from the guild, returns true or false depending on whether the action was successfully performed","unwrap":true,"brackets":true,"output":["Boolean"],"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"}],"category":"member"},{"name":"$fetchMembers","version":"1.0.0","description":"Caches all members of a guild","aliases":["$fetchMember"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to cache members of","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to fetch","rest":false,"type":"Member","pointer":0}],"category":"member"},{"name":"$hasAnyPerms","version":"1.4.0","description":"Returns whether given member has any of the provided perms","unwrap":true,"aliases":["$memberHasAnyPerms"],"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check for perms","rest":false,"type":"Member","required":true,"pointer":0},{"name":"perms","description":"The perms to check for","rest":true,"type":"Enum","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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps"],"required":true,"enumName":"PermissionFlagsBits"}],"category":"member"},{"name":"$hasAnyRole","version":"1.1.0","description":"Returns whether given member has any role","unwrap":true,"aliases":["$memberHasAnyRole"],"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check for roles","rest":false,"type":"Member","required":true,"pointer":0},{"name":"roles","description":"The roles to check for","rest":true,"type":"Role","required":true,"pointer":0}],"category":"member"},{"name":"$hasPerms","version":"1.0.0","description":"Returns whether given member has X perms","unwrap":true,"aliases":["$memberHasPerms"],"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check for perms","rest":false,"type":"Member","required":true,"pointer":0},{"name":"perms","description":"The perms to check for","rest":true,"type":"Enum","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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps"],"required":true,"enumName":"PermissionFlagsBits"}],"category":"member"},{"name":"$hasRoles","version":"1.1.0","description":"Returns whether given member has all roles","unwrap":true,"aliases":["$memberHasRoles"],"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check for roles","rest":false,"type":"Member","required":true,"pointer":0},{"name":"roles","description":"The roles to check for","rest":true,"type":"Role","required":true,"pointer":0}],"category":"member"},{"name":"$isBanned","version":"1.0.0","brackets":true,"unwrap":true,"aliases":["$memberIsBanned"],"output":["Boolean"],"description":"Returns whether this user is banned","args":[{"name":"guild ID","description":"The guild to check bans on","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check ban","rest":false,"type":"User","required":true}],"category":"member"},{"name":"$isBoosting","description":"Returns whether this member is boosting","version":"1.5.0","aliases":["$isBooster","$memberIsBooster","$memberIsBoosting"],"brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check boost status for","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isDeaf","version":"1.0.0","description":"Whether a member is deafened","brackets":false,"unwrap":true,"aliases":["$memberIsDeaf"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isGuildDeaf","version":"1.0.0","description":"Whether a member is server deafened","brackets":false,"aliases":["$memberIsGuildDeaf"],"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isGuildMuted","version":"1.0.0","description":"Whether a member is server muted","brackets":false,"aliases":["$memberIsGuildMuted"],"output":["Boolean"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isMuted","version":"1.0.0","description":"Whether a member is muted","brackets":false,"unwrap":true,"aliases":["$memberIsMuted"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isSelfDeaf","version":"1.0.0","description":"Whether a member is self deafened","brackets":false,"unwrap":true,"aliases":["$memberIsSelfDeaf"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isSelfMuted","version":"1.0.0","description":"Whether a member is self muted","brackets":false,"unwrap":true,"aliases":["$memberIsSelfMuted"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isTimedOut","version":"1.0.0","description":"Whether an member is timed out","unwrap":true,"brackets":false,"aliases":["$memberIsTimedOut"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to check for timeout","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isVerified","version":"1.0.0","aliases":["$memberIsVerified"],"description":"Whether a member is verified","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$kickMember","version":"1.0.0","description":"Kicks a member from the guild, returns true or false depending on whether the action was successfully performed","unwrap":true,"brackets":true,"aliases":["$memberKick"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to kick a member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to kick","rest":false,"type":"Member","pointer":0,"required":true},{"name":"reason","description":"The reason to kick for","rest":false,"type":"String"}],"category":"member"},{"name":"$memberActivity","version":"1.5.0","description":"Returns the activity of a member","aliases":["$activity","$userActivity","$memberActivities"],"unwrap":true,"output":["Unknown[]"],"args":[{"name":"guild ID","description":"The guild to pull the member from","required":true,"rest":false,"type":"Guild"},{"name":"user ID","description":"The member to return its activity","required":true,"rest":false,"type":"Member","pointer":0},{"name":"property","description":"The property of the activity to return","rest":false,"type":"Enum","enum":["name","type","details","buttons","flags","timestamp","endTimestamp","startTimestamp","partyID","partySize","syncID","url","largeText","largeImage","smallText","smallImage"],"enumName":"ActivityProperty"},{"name":"separator","description":"The separator to use for every property","rest":false,"type":"String"}],"brackets":false,"category":"member"},{"name":"$memberAddRoles","version":"1.0.0","description":"Adds roles to a member and returns bool","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to add roles to","rest":false,"type":"Member","required":true,"pointer":0},{"name":"roles","description":"The roles to add","rest":true,"type":"Role","pointer":0}],"category":"member"},{"name":"$memberAvatar","version":"1.0.0","description":"Returns the member avatar","brackets":false,"output":["URL"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to retrieve the avatar","rest":false,"required":true,"pointer":0,"type":"Member"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"member"},{"name":"$memberAvatarDecoration","version":"2.4.0","description":"Returns the member's avatar decoration","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to get its avatar decoration","pointer":0,"rest":false,"type":"Member","required":true}],"output":["URL"],"category":"member"},{"name":"$memberBanner","version":"2.1.0","description":"Returns the member banner","brackets":false,"output":["URL"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to retrieve the banner","rest":false,"required":true,"pointer":0,"type":"Member"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"member"},{"name":"$memberBoostingSince","version":"1.5.0","aliases":["$boostingSince","$boosterSince","$memberBoosterSince"],"brackets":false,"unwrap":true,"output":["Number"],"description":"Returns when the member started boosting the guild","args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check boost status for","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$memberCustomStatus","version":"1.5.0","aliases":["$customStatus","$userCustomStatus"],"description":"Returns the custom status of a member","unwrap":true,"output":["String"],"args":[{"name":"guild ID","description":"The guild to pull the user from","required":true,"rest":false,"type":"Guild"},{"name":"user ID","description":"The user to return its custom status","required":true,"rest":false,"type":"Member"},{"name":"type","description":"The type of the custom status to fetch","rest":false,"type":"Enum","enum":["state","emoji"],"enumName":"CustomStatusType"}],"brackets":false,"category":"member"},{"name":"$memberDisplayColor","version":"1.0.0","description":"Returns the display color of a member","unwrap":true,"brackets":false,"output":["Color"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","pointer":0,"description":"The user to get its color","rest":false,"type":"Member","required":true}],"category":"member"},{"name":"$memberDisplayName","version":"2.3.0","description":"Returns the display name of a member","unwrap":true,"brackets":false,"output":["String"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","pointer":0,"description":"The user to get its display name","rest":false,"type":"Member","required":true}],"category":"member"},{"name":"$memberExists","version":"1.0.0","description":"Returns whether an member id exists","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to check for the member","type":"Guild","rest":false,"required":true},{"name":"member ID","description":"The member to check for","rest":false,"required":true,"type":"String"}],"category":"member"},{"name":"$memberFlags","version":"1.5.0","description":"Returns the flags of a member","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","pointer":0,"description":"The user to get its flags","rest":false,"type":"Member","required":true},{"name":"separator","description":"The separator to use for every flag","type":"String","required":false,"rest":false}],"output":["GuildMemberFlags[]"],"category":"member"},{"name":"$memberHighestRoleID","version":"1.0.0","description":"Returns the highest role id of a member","unwrap":true,"output":["Role"],"brackets":false,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","pointer":0,"description":"The user to get its highest role id","rest":false,"type":"Member","required":true}],"category":"member"},{"name":"$memberJoinPosition","version":"1.5.0","description":"Returns the position at which the member joined the guild","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to get its join position","rest":false,"pointer":0,"type":"Member","required":true}],"category":"member"},{"name":"$memberJoinedAt","version":"1.0.0","description":"Returns the timestamp the member joined at","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to get its join date","rest":false,"pointer":0,"type":"Member","required":true}],"category":"member"},{"name":"$memberLowestRoleID","version":"1.5.0","description":"Returns the lowest role id of a member","unwrap":true,"output":["Role"],"brackets":false,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","pointer":0,"description":"The user to get its lowest role id","rest":false,"type":"Member","required":true}],"category":"member"},{"name":"$memberPerms","version":"1.0.0","description":"Returns the member perms","brackets":false,"unwrap":true,"output":["PermissionFlagsBits[]"],"args":[{"name":"guild ID","description":"The guild id to return the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member id to return its perms","rest":false,"type":"Member","pointer":0,"required":true},{"name":"separator","description":"The separator to use for every perm","type":"String","required":false,"rest":false}],"category":"member"},{"name":"$memberRawData","version":"1.5.0","description":"Returns the raw data of a member","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get raw data from","rest":false,"type":"Member","pointer":0,"required":true}],"output":["Json"],"category":"member"},{"name":"$memberRemoveRoles","version":"1.0.0","description":"Removes roles from a member and returns bool","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","pointer":0,"description":"The user to remove roles from","rest":false,"type":"Member","required":true},{"name":"roles","description":"The roles to remove","rest":true,"type":"Role","pointer":0}],"category":"member"},{"name":"$memberRoles","version":"1.0.0","description":"Returns the role ids of a member","unwrap":true,"brackets":false,"output":["Role[]"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to get roles from","rest":false,"pointer":0,"type":"Member","required":true},{"name":"separator","description":"The separator to use for each role","rest":false,"type":"String"}],"category":"member"},{"name":"$memberSetNickname","version":"1.0.7","description":"Edits a member's nickname","brackets":true,"output":["Boolean"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to edit its nickname","rest":false,"required":true,"pointer":0,"type":"Member"},{"name":"nickname","description":"The new nickname, leave empty to reset","rest":false,"type":"String"}],"category":"member"},{"name":"$memberSetRoles","version":"1.0.0","description":"Sets roles to a member and returns bool","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to set roles to","rest":false,"type":"Member","pointer":0,"required":true},{"name":"roles","description":"The roles to set","rest":true,"type":"Role","pointer":0}],"category":"member"},{"name":"$memberTimeoutDuration","version":"1.5.0","aliases":["$timeoutDuration","$getTimeoutDuration","$timedOutUntil","$memberTimedOutUntil"],"description":"Returns the timeout duration of a member","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to get duration for","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$nickname","version":"1.0.0","description":"Returns the member nickname","brackets":false,"aliases":["$memberNickname"],"unwrap":true,"output":["String"],"args":[{"name":"guild ID","description":"The guild to return the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to return its nickname","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$platform","version":"1.0.0","description":"Returns the member platforms","brackets":false,"aliases":["$memberPlatforms","$platforms","$memberPlatform"],"unwrap":true,"output":["String[]"],"args":[{"name":"guild ID","description":"The guild id to return the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member id return its platform","rest":false,"type":"Member","pointer":0,"required":true},{"name":"separator","description":"The separator for each platform","rest":false,"type":"String"}],"category":"member"},{"name":"$pruneMembers","version":"1.5.0","aliases":["$prune","$membersPrune"],"description":"Prunes inactive members from the guild, returns number of kicked members","unwrap":true,"brackets":true,"output":["Number"],"args":[{"name":"guild ID","description":"The guild to prune members from","rest":false,"required":true,"type":"Guild"},{"name":"days","description":"The days of inactivity required to kick","rest":false,"type":"Number"},{"name":"dry","description":"Whether to perform a dry prune","rest":false,"type":"Boolean"},{"name":"reason","description":"The reason for pruning members","rest":false,"type":"String"},{"name":"roles","description":"The roles to include when pruning","rest":true,"type":"Role"}],"category":"member"},{"name":"$randomMemberID","version":"1.0.3","description":"Returns a random member ID of a guild","unwrap":true,"output":["Member"],"brackets":false,"args":[{"name":"guild ID","description":"The guild to get member from","rest":false,"required":true,"type":"Guild"}],"category":"member"},{"name":"$status","version":"1.0.0","description":"Returns the member status","brackets":false,"unwrap":true,"aliases":["$memberStatus","$statuses","$memberStatuses"],"output":["String"],"args":[{"name":"guild ID","description":"The guild to return the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to return its status","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$timeout","version":"1.0.0","description":"Times a member out for X milliseconds","unwrap":true,"aliases":["$memberTimeout"],"output":["Number"],"brackets":true,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to timeout","rest":false,"required":true,"type":"Member","pointer":0},{"name":"duration","description":"The duration to timeout for","rest":false,"type":"Time"},{"name":"reason","description":"The reason to timeout the member","rest":false,"type":"String"}],"category":"member"},{"name":"$unban","version":"1.0.0","brackets":true,"unwrap":true,"aliases":["$memberUnban"],"output":["Boolean"],"description":"Unbans a user","args":[{"name":"guild ID","description":"The guild to unban a user from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to unban","rest":false,"type":"User","required":true},{"name":"reason","description":"The unban reason","rest":false,"type":"String"}],"category":"member"},{"name":"$voiceID","version":"1.0.3","description":"Returns the voice channel id a member is connected to","unwrap":true,"aliases":["$memberVoiceID"],"brackets":false,"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to pull member from","required":true,"rest":false,"type":"Guild"},{"name":"user ID","description":"The member to get its voice channel","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$voiceKick","version":"1.4.0","description":"Kicks a member from voice channel","brackets":true,"aliases":["$memberVoiceKick"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","rest":false,"required":true,"type":"Member","pointer":0,"description":"The user to kick"},{"name":"reason","description":"Reason to kick this user","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"member"},{"name":"$voiceMove","version":"1.4.0","description":"Moves a member from a voice channel, returns bool","brackets":true,"aliases":["$memberVoiceMove"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","rest":false,"required":true,"type":"Member","pointer":0,"description":"The user to move"},{"name":"channel ID","description":"The voice channel to move this user to","rest":false,"required":false,"type":"Channel"},{"name":"reason","description":"The reason for moving the user","rest":false,"type":"String"}],"unwrap":true,"category":"member"},{"name":"$disableAllMentions","version":"1.3.0","description":"Disables every possible mention","unwrap":false,"category":"mention"},{"name":"$disableEveryoneMention","version":"1.3.0","description":"Disables everyone mention","unwrap":false,"category":"mention"},{"name":"$disableRoleMentions","version":"1.3.0","description":"Disables all role mentions","unwrap":false,"category":"mention"},{"name":"$disableUserMentions","version":"1.3.0","description":"Disables all user mentions","unwrap":false,"category":"mention"},{"name":"$enableRoleMentions","version":"1.3.0","description":"Only parses these roles for mentions","unwrap":true,"brackets":true,"args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to retrieve roles from"},{"name":"roles","rest":true,"required":true,"pointer":0,"type":"Role","description":"The roles to parse mentions for"}],"category":"mention"},{"name":"$enableUserMentions","version":"1.3.0","description":"Only parses these users for mentions","unwrap":true,"brackets":true,"args":[{"name":"users","rest":true,"required":true,"type":"User","description":"The users to parse mentions for"}],"category":"mention"},{"name":"$isChannelMentioned","version":"1.3.0","description":"Returns whether a channel was mentioned in this message","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","rest":false,"description":"Channel to pull the message from","required":true,"type":"Channel"},{"name":"message ID","rest":false,"required":true,"type":"Message","pointer":0,"description":"The message to get mentions from"},{"name":"channel ID","rest":false,"required":true,"type":"Channel","description":"The entity to check for mentions"}],"category":"mention"},{"name":"$isRoleMentioned","version":"1.3.0","description":"Returns whether a role was mentioned in this message","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","rest":false,"description":"Channel to pull the message from","required":true,"type":"Channel"},{"name":"message ID","rest":false,"required":true,"type":"Message","pointer":0,"description":"The message to get mentions from"},{"name":"role ID","rest":false,"required":true,"type":"String","description":"The entity to check for mentions"}],"category":"mention"},{"name":"$isUserMentioned","version":"1.3.0","description":"Returns whether a user was mentioned in this message","unwrap":true,"output":["Boolean"],"brackets":true,"args":[{"name":"channel ID","rest":false,"description":"Channel to pull the message from","required":true,"type":"Channel"},{"name":"message ID","rest":false,"required":true,"type":"Message","pointer":0,"description":"The message to get mentions from"},{"name":"user ID","rest":false,"required":true,"type":"User","description":"The entity to check for mentions"}],"category":"mention"},{"name":"$mentioned","version":"1.0.0","brackets":false,"description":"Returns the mentioned users","unwrap":true,"output":["User[]"],"args":[{"name":"index","description":"The index of the user","rest":false,"type":"Number","required":true},{"name":"return author","description":"Return author ID if not found","rest":false,"type":"Boolean"}],"category":"mention"},{"name":"$mentionedChannelCount","aliases":["$mentionedChannelsCount"],"output":["Number"],"version":"1.3.0","description":"Returns the mentioned channel count","unwrap":false,"category":"mention"},{"name":"$mentionedChannels","aliases":["$mentionedChannel"],"output":["Channel[]"],"version":"1.0.0","brackets":false,"description":"Returns the mentioned channels","unwrap":true,"args":[{"name":"index","description":"The index of the channel","rest":false,"type":"Number","required":true},{"name":"return channel","description":"Whether to return current channel if not found","rest":false,"type":"Boolean"}],"category":"mention"},{"name":"$mentionedRoleCount","aliases":["$mentionedRolesCount"],"output":["Number"],"version":"1.3.0","description":"Returns the mentioned role count","unwrap":false,"category":"mention"},{"name":"$mentionedRoles","aliases":["$mentionedRole"],"output":["Role[]"],"version":"1.0.0","brackets":false,"description":"Returns the mentioned roles","unwrap":true,"args":[{"name":"index","description":"The index of the role","rest":false,"type":"Number","required":true}],"category":"mention"},{"name":"$mentionedUserCount","aliases":["$mentionedUsersCount"],"output":["Number"],"version":"1.3.0","description":"Returns the mentioned user count","unwrap":false,"category":"mention"},{"name":"$nomention","version":"1.3.0","description":"Disables reply ping","unwrap":false,"category":"mention"},{"name":"$addMessageReactions","version":"1.0.0","description":"Adds reactions to a message, returns amount of emojis successfully reacted","unwrap":true,"output":["Number"],"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}],"category":"message"},{"name":"$attachment","version":"1.0.0","brackets":true,"description":"Adds an attachment to the response","unwrap":true,"aliases":["$addAttachment"],"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":"encoding","description":"Encoding to use for text, utf-8 default","rest":false,"type":"String"},{"name":"description","description":"The description for this attachment","rest":false,"type":"String"}],"category":"message"},{"name":"$deleteAllMessageReactions","version":"1.0.0","description":"Deletes all reactions from a message, returns bool","unwrap":true,"output":["Boolean"],"brackets":false,"args":[{"name":"channel ID","description":"The channel the message is located","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to remove reactions from","rest":false,"type":"Message","pointer":0,"required":true}],"category":"message"},{"name":"$deleteIn","version":"1.5.0","description":"Deletes the response after the given time","unwrap":true,"brackets":true,"args":[{"name":"duration","description":"The duration to wait for until deletion","rest":false,"required":true,"type":"Time"}],"category":"message"},{"name":"$deleteMessage","version":"1.0.0","brackets":true,"unwrap":true,"output":["Number"],"aliases":["$deleteMessages"],"description":"Deletes given messages, returns the count of messages deleted","args":[{"name":"channel ID","description":"The channel to delete this message from","rest":false,"required":true,"type":"Channel"},{"name":"messages","description":"The message ids to delete","rest":true,"required":true,"pointer":0,"type":"String"}],"category":"message"},{"name":"$deleteUserMessageReaction","version":"1.0.6","description":"Deletes user emoji reaction from a message, returns bool","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel the message is located","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to remove user emoji reaction","rest":false,"type":"Message","pointer":0,"required":true},{"name":"emoji","description":"The message reaction to remove user from","rest":false,"required":true,"pointer":1,"type":"Reaction"},{"name":"user ID","description":"The user to delete its reaction","required":true,"rest":false,"type":"User"}],"category":"message"},{"name":"$editMessage","version":"1.0.0","description":"Edits a message in a channel, returns bool","unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to edit this message","required":true,"type":"Channel","rest":false},{"name":"message ID","description":"The message to edit","rest":false,"type":"Message","pointer":0,"required":true},{"name":"content","description":"The content for the message","type":"String","rest":false}],"brackets":true,"category":"message"},{"name":"$fetchComponents","version":"1.0.0","description":"Fetches a message's components, this will override any other component added to the response","aliases":["$fetchRows"],"unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to get the components from","pointer":0,"rest":false,"type":"Message","required":true}],"category":"message"},{"name":"$fetchEmbeds","version":"1.4.0","aliases":["$fetchEmbed","$cloneEmbed","$cloneEmbeds"],"description":"Fetches an embed or all embeds from a message to the next response","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to get embeds from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"index","description":"The embed index to load","rest":false,"type":"Number"}],"category":"message"},{"name":"$fetchMessage","version":"2.2.0","description":"Fetches all data of a message","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to fetch its data","rest":false,"required":true,"pointer":0,"type":"Message"}],"category":"message"},{"name":"$fetchResponse","version":"1.4.0","brackets":false,"unwrap":true,"description":"Fetches all data from the message and loads it to response, this includes: embeds, components, attachments, stickers","args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to fetch its data","rest":false,"required":true,"pointer":0,"type":"Message"}],"category":"message"},{"name":"$forwardMessage","version":"2.2.0","description":"Forwards a message to another channel, returns bool","aliases":["$forward"],"unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to forward","rest":false,"required":true,"type":"Message","pointer":0},{"name":"channel ID","description":"The channel to forward message to","rest":false,"type":"Channel"}],"output":["Boolean"],"category":"message"},{"name":"$getComponents","version":"1.4.0","description":"Retrieves data of a component, not providing any property returns component json","unwrap":true,"brackets":false,"aliases":["$getComponent"],"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to retrieve data from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"row index","description":"The row index to get data from","rest":false,"required":false,"type":"Number"},{"name":"component index","description":"The first component index to get data from","rest":false,"required":false,"type":"Number"},{"name":"property","description":"The first property to pull","rest":false,"type":"Enum","enum":["id","type","customID","label","style","url","disabled","maxValues","minValues","optionCount","options","optionNames","emoji","optionDescriptions","optionValues","content","accentColor","spoiler","divider","spacing","items","itemUrls","fileUrl","accessory","components","thumbnailUrl"],"required":false,"enumName":"ComponentProperty"},{"name":"separator","description":"The separator to use for each value in case of array","rest":false,"type":"String"},{"name":"component index","description":"The second component index to get data from","rest":false,"type":"Number"},{"name":"property","description":"The second property to pull","rest":false,"type":"Enum","enum":["id","type","customID","label","style","url","disabled","maxValues","minValues","optionCount","options","optionNames","emoji","optionDescriptions","optionValues","content","accentColor","spoiler","divider","spacing","items","itemUrls","fileUrl","accessory","components","thumbnailUrl"],"enumName":"ComponentProperty"}],"output":["Json","Unknown"],"category":"message"},{"name":"$getEmbeds","version":"1.0.3","description":"Retrieves data of an embed, not providing any property returns embed json","unwrap":true,"output":["Unknown"],"brackets":false,"aliases":["$getEmbed"],"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to retrieve data from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"embed index","description":"The embed index to get data from","rest":false,"required":false,"type":"Number"},{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["title","titleURL","authorName","authorIcon","footerText","image","thumbnail","footerIcon","description","timestamp","authorURL","color","fieldName","fieldInline","fieldValue"],"required":false,"enumName":"EmbedProperty"},{"name":"field index","description":"Index of field to get","rest":false,"type":"Number"}],"category":"message"},{"name":"$getMessage","version":"1.0.3","description":"Retrieves data of a message","unwrap":true,"output":["Unknown"],"brackets":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to retrieve data from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","content","flags","username","type","channelID","guildID","authorID","timestamp","editTimestamp","hasPoll","system","pinned","url","attachments","stickers"],"required":true,"enumName":"MessageProperty"},{"name":"separator","description":"Separator to use in case of array","rest":false,"type":"String"}],"category":"message"},{"name":"$getMessageReactionCount","version":"1.0.0","description":"Gets the amount of users that have reacted to a specific emoji","unwrap":true,"output":["Number"],"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 get emoji count from","rest":false,"type":"Message","pointer":0,"required":true},{"name":"emoji","description":"The emoji to get its user count","required":true,"pointer":1,"rest":false,"type":"Reaction"},{"name":"type","description":"The type of the reaction to count users for","rest":false,"type":"Enum","enum":["normal","burst"],"enumName":"ReactionType"}],"category":"message"},{"name":"$getMessageReactionUsers","version":"1.0.0","description":"Gets the user ids that have reacted to a specific emoji","unwrap":true,"output":["User[]"],"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 get emoji users from","rest":false,"type":"Message","pointer":0,"required":true},{"name":"emoji","description":"The emoji to get its users","required":true,"pointer":1,"rest":false,"type":"Reaction"},{"name":"separator","description":"The separator to use for every user","rest":false,"type":"String"}],"category":"message"},{"name":"$getMessageReactions","version":"2.2.0","description":"Retrieves all reactions of a message","aliases":["$getReactions"],"unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to retrieve reactions from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"property","description":"The property of the reactions to return","rest":false,"type":"Enum","enum":["emoji","count","burstCount","normalCount","me","meBurst","burstColors"],"enumName":"ReactionProperty"},{"name":"separator","description":"The separator to use for each property","rest":false,"type":"String"}],"output":["Unknown[]"],"category":"message"},{"name":"$getSnapshots","version":"2.4.0","description":"Retrieves data of snapshots from a message","aliases":["$getSnapshot"],"unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to retrieve data from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"index","description":"The index of the snapshot to get","rest":false,"type":"Number"},{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","content","flags","username","type","channelID","guildID","authorID","timestamp","editTimestamp","hasPoll","system","pinned","url","attachments","stickers"],"enumName":"MessageProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"message"},{"name":"$hasEmbeds","version":"1.2.0","brackets":false,"output":["Boolean"],"description":"Checks whether given message has embeds","unwrap":true,"args":[{"name":"channel ID","description":"The channel to get message from","type":"Channel","rest":false,"required":true},{"name":"message ID","pointer":0,"rest":false,"required":true,"type":"Message","description":"The message to check for embeds"}],"category":"message"},{"name":"$isPinned","version":"1.5.0","description":"Returns whether the message is pinned","aliases":["$isMessagePinned","$messagePinned"],"unwrap":true,"brackets":false,"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 check if its pinned","rest":false,"required":true,"type":"Message"}],"output":["Boolean"],"category":"message"},{"name":"$loadComponents","version":"1.4.0","aliases":["$loadComponent"],"description":"Loads components JSON (or array) to the response","unwrap":true,"brackets":true,"args":[{"name":"component data","type":"Json","rest":false,"required":true,"description":"The components object or array of objects to load"}],"category":"message"},{"name":"$loadEmbeds","version":"1.4.0","aliases":["$loadEmbed"],"description":"Loads embed json (or array) to the response","unwrap":true,"brackets":true,"args":[{"name":"embed data","type":"Json","rest":false,"required":true,"description":"The embed object or array of objects to load"}],"category":"message"},{"name":"$message","version":"1.0.0","output":["String"],"description":"Retrieves arguments from a message command","args":[{"name":"index","description":"Index to get arg","type":"Number","required":true,"rest":false},{"name":"end index","description":"The end index","rest":false,"type":"Number"}],"brackets":false,"unwrap":true,"category":"message"},{"name":"$messageAttachment","version":"1.4.0","output":["URL"],"description":"Retrieves an attachment from this message","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 of the attachment","type":"Number","required":true}],"category":"message"},{"name":"$messageAttachmentCount","version":"1.4.0","output":["Number"],"description":"Retrieve the amount of attachments in this message","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 attachment count","rest":false,"required":true,"type":"Message"}],"category":"message"},{"name":"$messageAttachmentFlags","version":"1.5.0","description":"Returns the flags of an attachment from this message","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 attachment flags","rest":false,"required":true,"type":"Message"},{"name":"index","rest":false,"description":"The index of the attachment","type":"Number","required":true},{"name":"separator","description":"The separator to use for every flag","type":"String","required":false,"rest":false}],"output":["AttachmentFlags[]"],"category":"message"},{"name":"$messageAttachments","version":"1.4.0","output":["Attachment[]"],"description":"Retrieves all attachments of this message","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":"separator","rest":false,"description":"The separator to use for every attachment","type":"String"}],"category":"message"},{"name":"$messageContent","version":"1.4.0","output":["String"],"description":"Retrieves the content of the message","unwrap":false,"category":"message"},{"name":"$messageCreatedAt","version":"1.0.2","output":["Number"],"description":"Returns the timestamp of the message","unwrap":true,"brackets":false,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get the message from","type":"Channel"},{"name":"message ID","description":"The message to get its timestamp","rest":false,"type":"Message","pointer":0,"required":true}],"category":"message"},{"name":"$messageEditedAt","version":"1.5.0","output":["Number"],"description":"Returns the edited timestamp of the message","unwrap":true,"brackets":false,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get the message from","type":"Channel"},{"name":"message ID","description":"The message to get its edited timestamp","rest":false,"type":"Message","pointer":0,"required":true}],"category":"message"},{"name":"$messageEmojis","version":"2.4.0","description":"Retrieves all emojis of this message","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 emojis","rest":false,"required":true,"type":"Message"},{"name":"separator","rest":false,"description":"The separator to use for every emoji","type":"String"},{"name":"return ids","rest":false,"description":"Whether to return the emoji ids, excludes unicode emojis","type":"Boolean"}],"output":["Emoji[]"],"category":"message"},{"name":"$messageExists","version":"1.0.5","description":"Returns whether given message id exists","unwrap":true,"output":["Boolean"],"brackets":true,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get the message from","type":"Channel"},{"name":"message ID","description":"The message to check for","rest":false,"type":"String","required":true}],"category":"message"},{"name":"$messageFlags","version":"1.5.0","description":"Returns the flags of a message","brackets":false,"unwrap":true,"output":["MessageFlags[]"],"args":[{"name":"channel ID","description":"The channel to get the message from","rest":false,"type":"Channel","required":true},{"name":"message ID","description":"The message to return its flags","rest":false,"type":"Message","pointer":0,"required":true},{"name":"separator","description":"The separator to use for every flag","type":"String","required":false,"rest":false}],"category":"message"},{"name":"$messageID","version":"1.0.0","description":"Returns the message id","unwrap":false,"output":["Message"],"category":"message"},{"name":"$messageLink","version":"1.0.0","description":"Retrieves a message url","unwrap":true,"brackets":false,"output":["URL"],"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get the message from","type":"Channel"},{"name":"message ID","description":"The message to get its url","rest":false,"type":"Message","pointer":0,"required":true}],"category":"message"},{"name":"$messageRawData","version":"1.5.0","description":"Returns the raw data of a message","unwrap":true,"brackets":false,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get message from","type":"Channel"},{"name":"message ID","description":"The message to get raw data from","rest":false,"type":"Message","pointer":0,"required":true}],"output":["Json"],"category":"message"},{"name":"$messageReferenceID","version":"1.0.0","description":"Returns the message id that this message replies to","unwrap":true,"output":["Message"],"brackets":false,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get the message from","type":"Channel"},{"name":"message ID","description":"The message to get its reference","rest":false,"type":"Message","pointer":0,"required":true}],"category":"message"},{"name":"$messageSlice","version":"1.3.0","description":"Slices this message's args","brackets":true,"output":["String"],"args":[{"name":"start","description":"The start index","rest":false,"required":false,"type":"Number"},{"name":"end","description":"The end index","rest":false,"required":false,"type":"Number"}],"unwrap":true,"category":"message"},{"name":"$messageSticker","version":"1.4.0","output":["Sticker"],"description":"Retrieves a sticker url of this message","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 stickers","rest":false,"required":true,"type":"Message"},{"name":"index","rest":false,"required":true,"description":"The index to get sticker","type":"Number"}],"category":"message"},{"name":"$messageStickerCount","version":"1.4.0","output":["Number"],"description":"Retrieves sticker count of this message","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 sticker count","rest":false,"required":true,"type":"Message"}],"category":"message"},{"name":"$messageStickers","version":"1.4.0","aliases":["$stickers"],"output":["Sticker[]"],"description":"Retrieves all stickers of this message","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 stickers","rest":false,"required":true,"type":"Message"},{"name":"separator","rest":false,"description":"The separator to use for every sticker","type":"String"},{"name":"type","rest":false,"description":"The type to return, default is url","type":"Enum","enum":["id","url"],"enumName":"StickerReturnType"}],"category":"message"},{"name":"$messageType","version":"1.0.0","description":"Returns the message type","unwrap":true,"brackets":false,"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 type","rest":false,"required":true,"type":"Message"}],"output":["MessageType"],"category":"message"},{"name":"$messageWebhookID","version":"1.1.0","description":"Returns the message's webhook id","unwrap":true,"brackets":false,"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 webhook id","rest":false,"required":true,"type":"Message"}],"output":["Webhook"],"category":"message"},{"name":"$noMentionMessage","version":"1.0.0","output":["String"],"description":"Retrieves arguments from a message without mentions","args":[{"name":"index","description":"Index to get arg","type":"Number","required":true,"rest":false},{"name":"end index","description":"The end index","rest":false,"type":"Number"}],"brackets":false,"unwrap":true,"category":"message"},{"name":"$pinMessage","version":"1.1.0","description":"Pins a message in a channel, returns bool","brackets":false,"output":["Boolean"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to pin","rest":false,"required":true,"pointer":0,"type":"Message"}],"category":"message"},{"name":"$publishMessage","version":"1.1.0","description":"Crossposts a message in an announcement channel, returns bool","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to announce","rest":false,"required":true,"pointer":0,"type":"Message"}],"category":"message"},{"name":"$reply","version":"1.0.0","description":"Marks the response as a reply","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel the message is at","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to reply to","rest":false,"required":true,"type":"Message","pointer":0},{"name":"disable ping","description":"Whether to disable ping of reply","rest":false,"type":"Boolean"}],"category":"message"},{"name":"$sticker","version":"1.3.0","description":"Attach a sticker to the response","brackets":true,"unwrap":true,"args":[{"name":"sticker ID","rest":false,"required":true,"type":"Sticker","description":"The sticker to use"}],"category":"message"},{"name":"$suppressEmbeds","version":"1.5.0","description":"Suppresses embeds on a message, returns bool","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to suppress embeds on","rest":false,"required":true,"pointer":0,"type":"Message"}],"output":["Boolean"],"category":"message"},{"name":"$tts","version":"1.5.0","description":"Marks the response as Text-To-Speech","unwrap":false,"category":"message"},{"name":"$unpinMessage","version":"1.1.0","output":["Boolean"],"description":"Unpins a message from a channel, returns bool","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to unpin","rest":false,"required":true,"pointer":0,"type":"Message"}],"category":"message"},{"name":"$unsuppressEmbeds","version":"1.5.0","description":"Unsuppresses embeds on a message, returns bool","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to unsuppress embeds on","rest":false,"required":true,"pointer":0,"type":"Message"}],"output":["Boolean"],"category":"message"},{"name":"$abbreviateNumber","version":"1.0.0","output":["String"],"description":"Abbreviates given number","unwrap":true,"args":[{"name":"number","description":"The number to abbreviate","rest":false,"required":true,"type":"Number"}],"brackets":true,"category":"number"},{"name":"$average","version":"1.5.0","brackets":true,"unwrap":true,"description":"Calculates the average of given numbers","args":[{"name":"separator","description":"The delimiter of each value","rest":false,"required":true,"type":"String"},{"name":"values","description":"Values separated by `separator`","rest":false,"required":true,"type":"String"}],"category":"number"},{"name":"$hexToInt","version":"1.2.0","brackets":true,"output":["Color"],"description":"Turns hex string to number","unwrap":true,"args":[{"name":"hex","description":"The hex to convert","rest":false,"required":true,"type":"String"}],"category":"number"},{"name":"$inRange","version":"1.0.0","description":"Returns whether a number is in range","brackets":true,"output":["Boolean"],"unwrap":true,"args":[{"name":"number","description":"The number to validate","rest":false,"type":"Number","required":true},{"name":"min","description":"The min value","rest":false,"type":"Number"},{"name":"max","description":"The max value","rest":false,"type":"Number"}],"category":"number"},{"name":"$intToHex","version":"1.2.0","brackets":true,"description":"Turns integer to hex","unwrap":true,"output":["Color"],"args":[{"name":"int","description":"The integer to convert","rest":false,"required":true,"type":"Number"}],"category":"number"},{"name":"$isFloat","version":"1.0.0","description":"Returns whether the number is a float","unwrap":true,"output":["Boolean"],"args":[{"name":"number","description":"The number to check","required":true,"rest":false,"type":"String"}],"brackets":true,"category":"number"},{"name":"$isInteger","version":"1.0.0","description":"Returns whether the number is an integer","unwrap":true,"output":["Boolean"],"args":[{"name":"number","description":"The number to check","required":true,"rest":false,"type":"String"}],"brackets":true,"category":"number"},{"name":"$isNumber","version":"1.0.0","description":"Returns whether the number is valid","unwrap":true,"output":["Boolean"],"args":[{"name":"number","description":"The number to check","required":true,"rest":false,"type":"String"}],"brackets":true,"category":"number"},{"name":"$maxSafeInteger","version":"1.0.6","description":"Returns the highest safe integer","unwrap":false,"output":["Number"],"category":"number"},{"name":"$minSafeInteger","version":"1.0.6","description":"Returns the lowest safe integer","unwrap":false,"output":["Number"],"category":"number"},{"name":"$ordinal","version":"1.3.0","description":"Appends a suffix to the number","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"number","description":"The number to append suffix to","rest":false,"required":true,"type":"Number"}],"category":"number"},{"name":"$parseInt","version":"1.2.0","description":"Implements native parseInt's function into ForgeScript","unwrap":true,"brackets":true,"output":["Number"],"args":[{"name":"value","description":"The number to parse","rest":false,"required":true,"type":"String"},{"name":"radix","rest":false,"required":false,"description":"Radix to use for the parser","type":"Number"}],"category":"number"},{"name":"$randomNumber","version":"1.0.0","description":"Returns a random number (no cache)","unwrap":true,"output":["Number"],"brackets":true,"args":[{"name":"min","description":"The minimum possible number","rest":false,"required":true,"type":"Number"},{"name":"max","description":"The max possible number","rest":false,"type":"Number"},{"name":"decimals","description":"Whether to use decimals","rest":false,"type":"Boolean"}],"category":"number"},{"name":"$separateBigint","version":"1.3.0","description":"Separates thousands in the number","unwrap":true,"output":["String"],"args":[{"name":"number","description":"The number to separate","rest":false,"type":"BigInt","required":true},{"name":"separator","description":"The separator to use","type":"String","rest":false}],"brackets":true,"category":"number"},{"name":"$separateNumber","version":"1.0.0","description":"Separates thousands in the number","unwrap":true,"output":["String"],"args":[{"name":"number","description":"The number to separate","rest":false,"type":"Number","required":true},{"name":"separator","description":"The separator to use","type":"String","rest":false}],"brackets":true,"category":"number"},{"name":"$advancedBar","version":"1.5.0","aliases":["$generateAdvancedBar"],"description":"Generates an advanced progress bar","brackets":true,"unwrap":true,"args":[{"name":"current","description":"The current value","rest":false,"required":true,"type":"Number"},{"name":"max","description":"The max value of current","rest":false,"required":true,"type":"Number"},{"name":"length","description":"The length of the bar","rest":false,"type":"Number"},{"name":"values","description":"The values to make the bar with, for example `=;~;#` means `0%;33%;66%`","rest":true,"required":true,"type":"String"}],"output":["String"],"category":"other"},{"name":"$awaitComponent","version":"1.4.0","description":"Awaits a component, executing the code as the interaction context, returns bool depending on whether the interaction was received","unwrap":false,"output":["Boolean"],"brackets":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","rest":false,"required":true,"type":"Message","pointer":0,"description":"The message to await component on"},{"name":"filter","description":"The filter to run for every interaction received after this, this is called with interaction context","rest":false,"required":true,"condition":true,"type":"String"},{"name":"success code","description":"The code to execute on success, this is called with interaction context","rest":false,"required":true,"type":"String"},{"name":"time","rest":false,"required":true,"type":"Time","description":"The max time to wait for a component"}],"category":"other"},{"name":"$awaitMessage","version":"1.0.7","description":"Awaits a message, returns message ID or nothing if no valid response","unwrap":false,"output":["Message"],"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 a user, get it with $env[]","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"}],"category":"other"},{"name":"$awaitModalSubmit","version":"1.4.0","description":"Awaits a modal submit, executing the code as the interaction context, returns bool depending on whether the interaction was received","unwrap":false,"output":["Boolean"],"brackets":true,"args":[{"name":"custom ID","description":"The modal's custom id to wait for","rest":false,"required":true,"type":"String"},{"name":"success code","description":"The code to execute on success, this is called with interaction context","rest":false,"required":true,"type":"String"},{"name":"time","rest":false,"required":true,"type":"Time","description":"The max time to wait for a component"}],"category":"other"},{"name":"$bar","version":"1.5.0","description":"Generates a progress bar","aliases":["$generateBar"],"brackets":true,"unwrap":true,"args":[{"name":"current","description":"The current value","rest":false,"required":true,"type":"Number"},{"name":"max","description":"The max value of current","rest":false,"required":true,"type":"Number"},{"name":"length","description":"The length of the bar","rest":false,"type":"Number"},{"name":"fill","description":"The string to use as filled points of the bar","rest":false,"type":"String"},{"name":"empty","description":"The string to use as empty points of the bar","rest":false,"type":"String"},{"name":"trunc","description":"Whether to truncate instead of round","rest":false,"type":"Boolean"},{"name":"fillStart","description":"The string to use as filled start of the bar","rest":false,"type":"String"},{"name":"fillEnd","description":"The string to use as filled end of the bar","rest":false,"type":"String"},{"name":"emptyStart","description":"The string to use as empty start of the bar","rest":false,"type":"String"},{"name":"emptyEnd","description":"The string to use as empty end of the bar","rest":false,"type":"String"}],"output":["String"],"category":"other"},{"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,"category":"other"},{"name":"$callFunction","version":"1.0.0","description":"Calls a forge function made by the user","unwrap":true,"output":["Unknown"],"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"}],"brackets":true,"category":"other"},{"name":"$callLocalFunction","version":"2.3.0","description":"Calls a local function","aliases":["$callFn"],"unwrap":true,"brackets":true,"args":[{"name":"name","description":"The local function name","rest":false,"required":true,"type":"String"},{"name":"args","description":"The args to call this local function with","rest":true,"type":"String"}],"output":["Unknown"],"category":"other"},{"name":"$debug","version":"1.0.0","output":["String"],"description":"Returns the debug message","unwrap":false,"category":"other"},{"name":"$disableConsoleErrors","version":"1.4.0","description":"Disables possible outcoming errors that are output to console","unwrap":false,"category":"other"},{"name":"$djsVersion","version":"2.2.0","description":"Returns the discord.js version used","unwrap":false,"output":["String"],"category":"other"},{"name":"$enableConsoleErrors","version":"1.4.0","description":"Enables possible outcoming errors that are output to console","unwrap":false,"category":"other"},{"name":"$error","version":"1.0.0","description":"Returns the error message","unwrap":false,"output":["Unknown"],"category":"other"},{"name":"$escapeCode","version":"1.4.0","description":"Code inside this function will not be executed","unwrap":false,"brackets":true,"aliases":["$esc"],"args":[{"name":"code","type":"String","description":"The code to ignore","required":true,"rest":false}],"output":["String"],"category":"other"},{"name":"$localFunction","version":"2.3.0","description":"Defines a new local function","aliases":["$fn"],"unwrap":false,"brackets":true,"args":[{"name":"name","description":"The local function name","rest":false,"required":true,"type":"String"},{"name":"code","description":"The local function code","rest":false,"required":true,"type":"String"},{"name":"params","description":"The local function params","rest":true,"type":"String"}],"category":"other"},{"name":"$typeof","version":"2.4.0","description":"Returns the type of the provided argument","unwrap":true,"brackets":true,"args":[{"name":"argument","rest":false,"description":"The argument to get its type","type":"String","required":true}],"output":["String"],"category":"other"},{"name":"$poll","version":"1.5.0","description":"Creates a poll","brackets":true,"args":[{"name":"question","description":"The poll question","rest":false,"required":true,"type":"String"},{"name":"duration","description":"The poll's duration","rest":false,"required":true,"type":"Time"},{"name":"multiselect","description":"Whether to allow multi select","rest":false,"type":"Boolean"},{"name":"layout","description":"The layout for this poll","rest":false,"enum":["Default"],"type":"Enum","enumName":"PollLayoutType"}],"unwrap":true,"category":"poll"},{"name":"$pollAnswer","version":"1.5.0","brackets":true,"unwrap":true,"description":"Add a poll answer","args":[{"name":"text","description":"The answer's text","rest":false,"required":true,"type":"String"},{"name":"emoji","rest":false,"description":"The emoji to use","type":"String"}],"category":"poll"},{"name":"$pollAnswerEmoji","version":"1.5.0","description":"Can only be used in poll events, returns the emoji of the poll answer","unwrap":false,"output":["String"],"category":"poll"},{"name":"$pollAnswerID","version":"1.5.0","description":"Can only be used in poll events, returns the answer id used","unwrap":false,"output":["Number"],"category":"poll"},{"name":"$pollAnswerMessageID","version":"1.5.0","description":"Can only be used in poll events, returns the message id of the poll answer","unwrap":false,"output":["Message"],"category":"poll"},{"name":"$pollAnswerText","version":"1.5.0","description":"Can only be used in poll events, returns the text of the poll answer","unwrap":false,"output":["String"],"category":"poll"},{"name":"$pollAnswerVoteCount","version":"1.5.0","description":"Can only be used in poll events, returns the vote count of this poll answer","unwrap":false,"output":["Number"],"category":"poll"},{"name":"$pollAnswerVoterIDs","version":"1.5.0","description":"Can only be used in poll events, returns the vote user ids of this poll answer","unwrap":true,"brackets":false,"args":[{"name":"separator","description":"The separator to use for every id","rest":false,"type":"String"}],"output":["User[]"],"category":"poll"},{"name":"$pollAnswers","version":"1.5.0","brackets":true,"unwrap":true,"description":"Adds multiple poll answers","args":[{"name":"text;emoji","description":"The answer's text followed by emoji","rest":true,"required":true,"type":"String"}],"category":"poll"},{"name":"$pollEnd","version":"1.5.0","description":"Ends a poll","aliases":["$endPoll"],"brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get the message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to get the poll","rest":false,"required":true,"type":"Message","pointer":0}],"category":"poll"},{"name":"$reactionAuthorID","version":"1.0.0","description":"Returns the reaction author id that reacted","unwrap":false,"output":["User"],"category":"reaction"},{"name":"$reactionCount","version":"1.5.0","description":"Returns the count of reacted users","unwrap":false,"output":["Number"],"category":"reaction"},{"name":"$reactionEmoji","version":"1.0.0","description":"Returns the emoji that was used","unwrap":false,"output":["String"],"category":"reaction"},{"name":"$reactionEmojiID","version":"1.0.0","description":"Returns the reaction id that was used","unwrap":false,"output":["Emoji"],"category":"reaction"},{"name":"$reactionMessageID","version":"1.0.0","description":"Returns the message id of the reacted message","unwrap":false,"output":["Message"],"category":"reaction"},{"name":"$addRole","version":"1.0.0","description":"Adds a role to a guild, returns role id if success","unwrap":true,"brackets":true,"output":["Role"],"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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps"],"type":"String","enumName":"PermissionFlagsBits"}],"category":"role"},{"name":"$cloneRole","version":"2.4.0","description":"Clones an existing role of a guild, returns role id if success","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to fetch role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to clone","rest":false,"required":true,"type":"Role","pointer":0},{"name":"name","description":"The role name for the cloned role","rest":false,"type":"String"}],"output":["Role"],"category":"role"},{"name":"$deleteRoles","version":"1.0.0","brackets":true,"unwrap":true,"output":["Number"],"description":"Deletes given roles, returns the count of roles deleted","args":[{"name":"guild ID","description":"The guild to delete roles from","rest":false,"required":true,"type":"Guild"},{"name":"roles","description":"The roles to delete","rest":true,"required":true,"pointer":0,"type":"Role"}],"category":"role"},{"name":"$editRole","version":"1.0.7","description":"Edits role data, returns boolean","unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","pointer":0,"type":"Role","description":"The role to edit data","rest":false,"required":true},{"name":"role name","description":"The new role name, leave empty to not modify","rest":false,"type":"String"},{"name":"role color","description":"The new role color, leave empty to not modify","rest":false,"type":"String"},{"name":"role icon","description":"The new role icon, leave empty to not modify","rest":false,"type":"String"},{"name":"hoisted","description":"Whether the role is hoisted, leave empty to not modify","rest":false,"type":"Boolean"},{"name":"mentionable","description":"Whether the role can be mentioned, leave empty to not modify","rest":false,"type":"Boolean"},{"name":"perms","description":"The new perms for the role","rest":true,"type":"Permission"}],"brackets":true,"category":"role"},{"name":"$editRoleIcon","version":"1.0.7","description":"Edits a role's icon, returns boolean","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","pointer":0,"type":"Role","description":"The role to edit icon for","rest":false,"required":true},{"name":"icon","description":"The new icon for the role, omit to clear","rest":false,"type":"String"}],"category":"role"},{"name":"$editRoleName","version":"1.0.7","description":"Edits a role's name, returns boolean","unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","pointer":0,"type":"Role","description":"The role to edit name for","rest":false,"required":true},{"name":"name","description":"The new name for the role","rest":false,"type":"String","required":true}],"brackets":true,"category":"role"},{"name":"$editRolePerms","version":"1.0.7","description":"Edits a role's permissions, returns boolean","aliases":["$modifyRolePerms"],"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","pointer":0,"type":"Role","description":"The role to edit perms for","rest":false,"required":true},{"name":"perms","description":"The new perms for the role, omit to clear perms","rest":true,"type":"Permission"}],"brackets":true,"category":"role"},{"name":"$editRolePosition","version":"1.0.7","description":"Edits a role's position, returns boolean","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","pointer":0,"type":"Role","description":"The role to edit position for","rest":false,"required":true},{"name":"position","description":"The new position for the role","rest":false,"type":"Number","required":true}],"category":"role"},{"name":"$editRoleUnicodeEmoji","version":"1.5.0","description":"Edits a role's unicode emoji, returns boolean","unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","pointer":0,"type":"Role","description":"The role to edit unicode emoji for","rest":false,"required":true},{"name":"emoji","description":"The new unicode emoji for the role, omit to clear","rest":false,"type":"String"}],"brackets":true,"category":"role"},{"name":"$fetchRoles","version":"2.2.0","description":"Caches all roles of a guild","aliases":["$fetchRole"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to cache roles of","rest":false,"required":true,"type":"Guild"},{"name":"role ID","description":"The role to fetch","rest":false,"type":"Role","pointer":0}],"category":"role"},{"name":"$randomRoleID","version":"1.5.0","description":"Returns a random role ID of a guild","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get the role from","rest":false,"type":"Guild","required":true}],"output":["Role"],"category":"role"},{"name":"$roleColor","version":"1.0.0","description":"Returns the role color","brackets":false,"unwrap":true,"output":["Color"],"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its color","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleCount","version":"1.0.0","description":"Returns the role count of all servers","unwrap":false,"output":["Number"],"category":"role"},{"name":"$roleCreatedAt","version":"1.0.0","description":"Returns the role creation date","brackets":false,"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its creation date","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleEditable","version":"1.3.0","description":"Returns whether the role is editable by the bot","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its editable state","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleExists","version":"1.0.0","description":"Returns whether an role id exists","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to check for the role","type":"Guild","rest":false,"required":true},{"name":"role ID","description":"The role to check for","rest":false,"required":true,"type":"String"}],"category":"role"},{"name":"$roleFlags","version":"1.3.0","description":"Returns the role flags","brackets":false,"unwrap":true,"output":["RoleFlags[]"],"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its flags","rest":false,"type":"Role","pointer":0,"required":true},{"name":"separator","description":"The separator to use for every flag","type":"String","required":false,"rest":false}],"category":"role"},{"name":"$roleHoisted","version":"1.0.0","description":"Returns whether the role is hoisted","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its hoisted state","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleID","version":"1.0.0","description":"Returns a role id with given name","brackets":false,"unwrap":true,"output":["Role"],"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"name","description":"The role name to return its id","rest":true,"type":"String","pointer":0,"required":true}],"category":"role"},{"name":"$roleIDs","version":"1.0.0","description":"Returns the role ids of a guild","brackets":false,"output":["Role[]"],"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 role","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"role"},{"name":"$roleIcon","version":"1.0.0","description":"Returns the role icon","brackets":false,"output":["URL"],"args":[{"name":"guild ID","description":"The guild to retrieve the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","description":"The role to use to get its icon","rest":false,"required":true,"pointer":0,"type":"Role"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"role"},{"name":"$roleIntColor","version":"1.3.0","description":"Returns the role color as int","brackets":false,"unwrap":true,"output":["Color"],"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its color","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleManageable","version":"1.3.0","description":"Returns whether the role is managed by discord","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its managed state","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleMembers","version":"1.0.0","description":"Returns the role member ids","brackets":false,"unwrap":true,"output":["Member[]"],"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its members","rest":false,"type":"Role","pointer":0,"required":true},{"name":"separator","description":"The separator to use for each member","rest":false,"type":"String"}],"category":"role"},{"name":"$roleMentionable","version":"1.0.0","description":"Returns whether the role is mentionable","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its mentionable state","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleName","version":"1.0.0","description":"Returns a role name with given id","brackets":false,"unwrap":true,"output":["String"],"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its name","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleNames","version":"1.0.0","description":"Returns the role names of a guild","brackets":false,"output":["String[]"],"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 role","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"role"},{"name":"$rolePerms","version":"1.0.0","description":"Returns the role perms","brackets":false,"unwrap":true,"output":["PermissionFlagsBits[]"],"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its perms","rest":false,"type":"Role","pointer":0,"required":true},{"name":"separator","description":"The separator to use for every perm","type":"String","required":false,"rest":false}],"category":"role"},{"name":"$rolePosition","version":"1.0.0","description":"Returns the role position","brackets":false,"unwrap":true,"output":["Number"],"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its position","rest":false,"type":"Role","pointer":0,"required":true},{"name":"asc order","description":"Whether to count roles in ascending order (top to bottom)","rest":false,"type":"Boolean"}],"category":"role"},{"name":"$roleRawData","version":"1.5.0","description":"Returns the raw data of a role","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get role from","rest":false,"type":"Guild","required":true},{"name":"role ID","rest":false,"required":true,"description":"The role to get raw data from","type":"Role","pointer":0}],"output":["Json"],"category":"role"},{"name":"$roleRawPosition","version":"1.0.0","description":"Returns the role raw position","brackets":false,"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its raw position","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleTags","version":"1.3.0","description":"Returns all role tags","brackets":false,"output":["String[]"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its perms","rest":false,"type":"Role","pointer":0,"required":true},{"name":"separator","description":"The separator to use for every perm","type":"String","required":false,"rest":false}],"category":"role"},{"name":"$roleUnicodeEmoji","version":"1.3.0","output":["String"],"description":"Returns the unicode emoji used by the role","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild id to return the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role id return its unicode emote","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$createSoundboardSound","version":"2.4.0","description":"Creates a new soundboard sound, returns sound id","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to create soundboard sound on","rest":false,"required":true,"type":"Guild"},{"name":"name","description":"The name for the sound","rest":false,"required":true,"type":"String"},{"name":"file","description":"The file for the sound","rest":false,"required":true,"type":"String"},{"name":"emoji","description":"The emoji for the sound","rest":false,"type":"String"},{"name":"volume","description":"The volume for the sound (from 0 to 1)","rest":false,"type":"Number"},{"name":"reason","description":"The reason for creating the sound","rest":false,"type":"String"}],"output":["SoundboardSound"],"category":"soundboard"},{"name":"$deleteSoundboardSounds","version":"2.4.0","description":"Deletes given soundboard sounds, returns the count of sounds deleted","aliases":["$deleteSoundboardSound"],"brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to delete soundboard sounds from","rest":false,"required":true,"type":"Guild"},{"name":"sounds","description":"The soundboard sounds to delete","rest":true,"required":true,"pointer":0,"type":"SoundboardSound"}],"output":["Number"],"category":"soundboard"},{"name":"$editSoundboardSound","version":"2.4.0","description":"Edits given soundboard sound, returns bool","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to edit soundboard sound on","rest":false,"required":true,"type":"Guild"},{"name":"sound ID","description":"The soundboard sound to edit","rest":false,"required":true,"pointer":0,"type":"SoundboardSound"},{"name":"name","description":"The new name for the sound","rest":false,"type":"String"},{"name":"emoji","description":"The new emoji for the sound","rest":false,"type":"String"},{"name":"volume","description":"The new volume for the sound (from 0 to 1)","rest":false,"type":"Number"},{"name":"reason","description":"The reason for editing the sound","rest":false,"type":"String"}],"output":["Boolean"],"category":"soundboard"},{"name":"$getSoundboardSound","version":"2.4.0","description":"Returns a soundboard sound of a guild","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get soundboard sound from","rest":false,"required":true,"type":"Guild"},{"name":"sound ID","description":"The soundboard sound to get","rest":false,"required":true,"type":"SoundboardSound","pointer":0},{"name":"property","description":"The property of the sound to return","rest":false,"type":"Enum","enum":["name","id","guildID","userID","emoji","volume","timestamp","available","url"],"enumName":"SoundboardSoundProperty"}],"output":["Json","Unknown"],"category":"soundboard"},{"name":"$soundAvailable","version":"2.4.0","description":"Returns whether a sound is available","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its available status","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["Boolean"],"category":"soundboard"},{"name":"$soundCreatedAt","version":"2.4.0","description":"Returns the creation timestamp of a sound","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its creation timestamp","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["Number"],"category":"soundboard"},{"name":"$soundEmoji","version":"2.4.0","description":"Returns the emoji of a sound","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its emoji","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["String"],"category":"soundboard"},{"name":"$soundGuildID","version":"2.4.0","description":"Returns the guild id of a sound","unwrap":false,"output":["Guild"],"category":"soundboard"},{"name":"$soundID","version":"2.4.0","description":"Returns a sound id with given name","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"name","description":"The sound name to return its id","rest":true,"required":true,"type":"String"}],"output":["SoundboardSound"],"category":"soundboard"},{"name":"$soundName","version":"2.4.0","description":"Returns the name of a sound","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its name","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["String"],"category":"soundboard"},{"name":"$soundURL","version":"2.4.0","description":"Returns the url of a sound","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its url","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["URL"],"category":"soundboard"},{"name":"$soundUserID","version":"2.4.0","description":"Returns the user who created the sound","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its creator","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["User"],"category":"soundboard"},{"name":"$soundVolume","version":"2.4.0","description":"Returns the volume of a sound","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its volume","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["Number"],"category":"soundboard"},{"name":"$auditLog","version":"1.0.3","description":"Retrieves new data from an event whose context was an audit log instance","brackets":true,"unwrap":true,"output":["Unknown"],"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,"enumName":"AuditProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$bulk","version":"1.4.0","description":"Retrieves data from an event whose context was a bulk delete event","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["messages","contents","users","count"],"required":true,"enumName":"BulkProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$effect","version":"2.3.0","description":"Retrieves data from an event whose context was a voice channel effect event","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["emoji","channelID","guildID","userID","soundID","soundVolume","animationID","animationType"],"required":true,"enumName":"VoiceEffectProperty"}],"category":"state"},{"name":"$newAutomodRule","version":"1.5.0","description":"Retrieves new data from an event whose context was an automod rule instance","brackets":true,"output":["Unknown"],"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","name","authorID","enabled","eventType","triggerType","triggerMetadata","exemptRoles","exemptChannels","actions","keywordFilter","regexPatterns","presets","allowList","mentionTotalLimit","mentionRaidProtectionEnabled"],"required":true,"enumName":"AutomodRuleProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newChannel","version":"1.0.0","description":"Retrieves new data from an event whose context was a channel instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","type","topic","bitrate","members","name","timestamp"],"required":true,"enumName":"ChannelProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newEmoji","version":"1.0.0","description":"Retrieves new data from an event whose context was an emoji instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["guildID","name","id","authorID","identifier","requiresColons","roles","managed","timestamp","animated","url","format"],"required":true,"enumName":"EmojiProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newEntitlement","version":"1.5.0","description":"Retrieves new data from an event whose context was an entitlement instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["userID","consumed","guildId","id","skuID","type","endTimestamp","startTimestamp","active","test","guildSubscription","userSubscription"],"required":true,"enumName":"EntitlementProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newGuild","version":"1.0.0","description":"Retrieves new data from an event whose context was a guild instance","brackets":true,"output":["Unknown"],"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","ownerID","name","description","features","afkChannelID","maximumMembers","systemChannelID","afkTimeout","memberCount","boostCount","timestamp","icon","splash","banner","roles","emojis","stickers","boostLevel","approximateMemberCount","approximatePresenceCount"],"required":true,"enumName":"GuildProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newInvite","version":"1.0.3","description":"Retrieves new data from an event whose context was an invite instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["authorID","channelID","guildID","uses","maxUses","maxAge","timestamp","code","url","type","expiresTimestamp","temporary","deletable","memberCount","presenceCount","targetType","targetUser"],"required":true,"enumName":"InviteProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newMember","version":"1.0.0","description":"Retrieves new data from an event whose context was a guild member instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["nickname","displayName","displayColor","roles","flags","mention","avatar","banner","bannable","kickable","guildID","id","manageable","timeout","timedOutUntil","status","addedRoles","roleCount","removedRoles","platform","timestamp","boosting","boostingSince","permissions"],"required":true,"enumName":"MemberProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newMessage","version":"1.0.0","description":"Retrieves new data from an event whose context was a message instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","content","flags","username","type","channelID","guildID","authorID","timestamp","editTimestamp","hasPoll","system","pinned","url","attachments","stickers"],"required":true,"enumName":"MessageProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newPresence","version":"1.1.0","description":"Retrieves new data from an event whose context was a presence instance","brackets":true,"output":["Unknown"],"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","guildID","status","platform"],"required":true,"enumName":"PresenceProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newRole","version":"1.0.0","description":"Retrieves new data from an event whose context was a role instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["timestamp","id","name","icon","color","hoisted","managed","mentionable","rawPosition","position","permissions","tags","members"],"required":true,"enumName":"RoleProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newScheduledEvent","version":"1.4.0","description":"Retrieves new data from an event whose context was a scheduled event instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","userID","guildID","channelID","name","userCount","description","startTimestamp","endTimestamp","timestamp","url","cover","entityID","location","entityType"],"required":true,"enumName":"ScheduledEventProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newSound","version":"2.4.0","description":"Retrieves new data from an event whose context was a soundboard sound instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["name","id","guildID","userID","emoji","volume","timestamp","available","url"],"required":true,"enumName":"SoundboardSoundProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newStage","version":"1.4.0","description":"Retrieves new data from an event whose context was a stage instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["channelID","id","topic","timestamp","guildID","privacyLevel","eventId"],"required":true,"enumName":"StageProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newState","version":"1.0.0","description":"Retrieves new data from an event whose context was a voice state instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["channelID","guildID","authorID","deaf","selfDeaf","guildDeaf","muted","selfMuted","guildMuted","timestamp","selfVideo","streaming","suppressed"],"required":true,"enumName":"VoiceStateProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newSticker","version":"1.4.0","description":"Retrieves new data from an event whose context was a sticker instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["guildID","name","id","timestamp","url","format","available","tags","sortValue","packID","description"],"required":true,"enumName":"StickerProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newUser","version":"1.0.0","description":"Retrieves new data from an event whose context was a user instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","username","displayName","globalName","badges","avatar","accentColor","banner","timestamp","dmChannelID"],"required":true,"enumName":"UserProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldAutomodRule","version":"1.5.0","description":"Retrieves old data from an event whose context was an automod rule instance","brackets":true,"output":["Unknown"],"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","name","authorID","enabled","eventType","triggerType","triggerMetadata","exemptRoles","exemptChannels","actions","keywordFilter","regexPatterns","presets","allowList","mentionTotalLimit","mentionRaidProtectionEnabled"],"required":true,"enumName":"AutomodRuleProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldChannel","version":"1.0.0","description":"Retrieves old data from an event whose context was a channel instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","type","topic","bitrate","members","name","timestamp"],"required":true,"enumName":"ChannelProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldEmoji","version":"1.0.0","description":"Retrieves old data from an event whose context was an emoji instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["guildID","name","id","authorID","identifier","requiresColons","roles","managed","timestamp","animated","url","format"],"required":true,"enumName":"EmojiProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldEntitlement","version":"1.5.0","description":"Retrieves old data from an event whose context was an entitlement instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["userID","consumed","guildId","id","skuID","type","endTimestamp","startTimestamp","active","test","guildSubscription","userSubscription"],"required":true,"enumName":"EntitlementProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldGuild","version":"1.0.0","description":"Retrieves old data from an event whose context was a guild instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","ownerID","name","description","features","afkChannelID","maximumMembers","systemChannelID","afkTimeout","memberCount","boostCount","timestamp","icon","splash","banner","roles","emojis","stickers","boostLevel","approximateMemberCount","approximatePresenceCount"],"required":true,"enumName":"GuildProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldInvite","version":"1.0.3","description":"Retrieves old data from an event whose context was an invite instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["authorID","channelID","guildID","uses","maxUses","maxAge","timestamp","code","url","type","expiresTimestamp","temporary","deletable","memberCount","presenceCount","targetType","targetUser"],"required":true,"enumName":"InviteProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldMember","version":"1.0.0","description":"Retrieves old data from an event whose context was a guild member instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["nickname","displayName","displayColor","roles","flags","mention","avatar","banner","bannable","kickable","guildID","id","manageable","timeout","timedOutUntil","status","addedRoles","roleCount","removedRoles","platform","timestamp","boosting","boostingSince","permissions"],"required":true,"enumName":"MemberProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldMessage","version":"1.0.0","description":"Retrieves old data from an event whose context was a message instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","content","flags","username","type","channelID","guildID","authorID","timestamp","editTimestamp","hasPoll","system","pinned","url","attachments","stickers"],"required":true,"enumName":"MessageProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldPresence","version":"1.1.0","description":"Retrieves old data from an event whose context was a presence instance","brackets":true,"output":["Unknown"],"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","guildID","status","platform"],"required":true,"enumName":"PresenceProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldRole","version":"1.0.0","description":"Retrieves old data from an event whose context was a role instance","brackets":true,"output":["Unknown"],"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["timestamp","id","name","icon","color","hoisted","managed","mentionable","rawPosition","position","permissions","tags","members"],"required":true,"enumName":"RoleProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldScheduledEvent","version":"1.4.0","description":"Retrieves old data from an event whose context was a scheduled event instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","userID","guildID","channelID","name","userCount","description","startTimestamp","endTimestamp","timestamp","url","cover","entityID","location","entityType"],"required":true,"enumName":"ScheduledEventProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldSound","version":"2.4.0","description":"Retrieves old data from an event whose context was a soundboard sound instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["name","id","guildID","userID","emoji","volume","timestamp","available","url"],"required":true,"enumName":"SoundboardSoundProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldStage","version":"1.4.0","description":"Retrieves old data from an event whose context was a stage instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["channelID","id","topic","timestamp","guildID","privacyLevel","eventId"],"required":true,"enumName":"StageProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldState","version":"1.0.0","description":"Retrieves old data from an event whose context was a voice state instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["channelID","guildID","authorID","deaf","selfDeaf","guildDeaf","muted","selfMuted","guildMuted","timestamp","selfVideo","streaming","suppressed"],"required":true,"enumName":"VoiceStateProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldSticker","version":"1.4.0","description":"Retrieves old data from an event whose context was a sticker instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["guildID","name","id","timestamp","url","format","available","tags","sortValue","packID","description"],"required":true,"enumName":"StickerProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldUser","version":"1.0.0","description":"Retrieves old data from an event whose context was a user instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","username","displayName","globalName","badges","avatar","accentColor","banner","timestamp","dmChannelID"],"required":true,"enumName":"UserProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"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,"category":"statement"},{"name":"$break","version":"1.0.3","description":"Breaks the loop","unwrap":false,"category":"statement"},{"name":"$case","version":"1.0.3","description":"Adds a switch case","brackets":true,"experimental":true,"unwrap":true,"output":["Unknown"],"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"}],"category":"statement"},{"name":"$continue","version":"1.0.3","description":"Skips executing bottom code of the loop","unwrap":false,"category":"statement"},{"name":"$default","version":"1.0.6","brackets":true,"unwrap":true,"description":"Returns right hand value if the left hand value is falsy","args":[{"name":"left hand","description":"Left hand value","rest":false,"required":true,"type":"String"},{"name":"right hand","description":"Right hand value","rest":false,"required":true,"type":"String"}],"output":["String"],"category":"statement"},{"name":"$else","version":"1.2.0","description":"Creates an else statement","unwrap":true,"output":["Unknown"],"args":[{"name":"else","description":"The code to run","required":true,"type":"String","rest":false}],"brackets":true,"category":"statement"},{"name":"$elseIf","version":"1.2.0","description":"Creates an else if statement","unwrap":false,"output":["Unknown"],"args":[{"name":"condition","description":"The condition to check against","rest":false,"type":"String","condition":true},{"name":"if true","description":"The code to run if true","required":true,"type":"String","rest":false}],"brackets":true,"category":"statement"},{"name":"$if","version":"1.0.0","description":"Creates an if statement","unwrap":false,"output":["Unknown"],"args":[{"name":"condition","description":"The condition to check against","rest":false,"type":"String","condition":true},{"name":"if true","description":"The code to run if true","required":true,"type":"String","rest":false},{"name":"if false","description":"The code to run if false","type":"String","rest":false}],"brackets":true,"category":"statement"},{"name":"$ifx","version":"1.2.0","description":"WIP if statements","brackets":true,"unwrap":false,"args":[{"name":"block","description":"The if, elseif, else blocks","rest":false,"required":true,"type":"String"}],"experimental":true,"category":"statement"},{"name":"$loop","version":"1.4.0","description":"Executes given code for N times","unwrap":false,"brackets":true,"experimental":true,"args":[{"name":"times","description":"How many times to run the code","rest":false,"required":true,"type":"Number"},{"name":"code","rest":false,"required":true,"type":"String","description":"The code to execute"},{"name":"variable","description":"The variable to load the current iteration count for $env","rest":false,"type":"String"},{"name":"desc","description":"Whether to use desc order for iteration count","rest":false,"type":"Boolean"}],"category":"statement"},{"name":"$return","version":"1.0.0","description":"Returns a value","unwrap":true,"output":["Unknown"],"args":[{"name":"value","description":"The value to return","rest":false,"required":true,"type":"String"}],"brackets":false,"category":"statement"},{"name":"$scope","version":"1.4.0","description":"Runs functions in a cloned context","brackets":true,"args":[{"name":"code","description":"The code to execute","rest":false,"required":true,"type":"String"},{"name":"sync vars","description":"Whether to pass vars as reference","type":"Boolean","rest":false}],"unwrap":false,"output":["Unknown"],"category":"statement"},{"name":"$switch","version":"1.0.3","description":"Switch-case statement for javascript","unwrap":false,"experimental":true,"output":["Unknown"],"args":[{"name":"value","description":"The value to match with","rest":false,"required":true,"type":"String"},{"name":"cases","rest":false,"description":"The cases to use ($case), use $case[default;...] to add a default case","type":"String","required":true}],"brackets":true,"category":"statement"},{"name":"$try","version":"1.0.0","experimental":true,"description":"Handles a possible error from given code","unwrap":false,"args":[{"name":"code","rest":false,"type":"String","required":true,"description":"The code to safely execute"},{"name":"catch code","description":"The code to run in case of an error","rest":false,"type":"String"},{"name":"variable","description":"Variable to load the error message to","rest":false,"type":"String"}],"brackets":true,"category":"statement"},{"name":"$while","version":"1.0.3","description":"Executes code while a condition is true","unwrap":false,"brackets":true,"experimental":true,"args":[{"name":"condition","condition":true,"description":"The condition to validate","rest":false,"required":true,"type":"String"},{"name":"code","rest":false,"required":true,"type":"String","description":"The code to execute"}],"category":"statement"},{"name":"$addSticker","version":"1.0.0","description":"Adds a sticker to a guild, returns sticker id","unwrap":true,"output":["Sticker"],"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"}],"category":"sticker"},{"name":"$deleteStickers","version":"1.0.0","brackets":true,"unwrap":true,"output":["Number"],"description":"Deletes given stickers, returns the count of stickers deleted","args":[{"name":"guild ID","description":"The guild to delete stickers from","rest":false,"required":true,"type":"Guild"},{"name":"stickers","description":"The stickers to delete","rest":true,"required":true,"pointer":0,"type":"String"}],"category":"sticker"},{"name":"$editSticker","version":"1.4.0","description":"Edits a sticker's data","brackets":true,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to edit","rest":false,"required":true,"type":"Sticker"},{"name":"name","description":"The new name for the sticker","rest":false,"type":"String"},{"name":"description","description":"The new description for the sticker","rest":false,"type":"String"},{"name":"tags","description":"The new tags for the sticker","rest":true,"type":"String"}],"output":["Boolean"],"category":"sticker"},{"name":"$setStickerDescription","version":"1.4.0","description":"Sets a sticker's description","brackets":true,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to edit","rest":false,"required":true,"type":"Sticker"},{"name":"description","description":"The new description for the sticker","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"sticker"},{"name":"$setStickerName","version":"1.4.0","description":"Sets a sticker's name","brackets":true,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to edit","rest":false,"required":true,"type":"Sticker"},{"name":"name","description":"The new name for the sticker","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"sticker"},{"name":"$setStickerTags","version":"1.4.0","description":"Sets a sticker's tags","brackets":true,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to edit","rest":false,"required":true,"type":"Sticker"},{"name":"tags","description":"The new tags for the sticker","rest":true,"required":true,"type":"String"}],"output":["Boolean"],"category":"sticker"},{"name":"$stickerAvailable","version":"1.4.0","description":"Returns whether a sticker is available","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to get availability of","rest":false,"required":true,"type":"Sticker"}],"output":["Boolean"],"category":"sticker"},{"name":"$stickerCreatedAt","version":"1.4.0","description":"Returns a sticker's creation timestamp","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull timestamp of","rest":false,"required":true,"type":"Sticker"}],"output":["Number"],"category":"sticker"},{"name":"$stickerDescription","version":"1.4.0","description":"Returns a sticker's description","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull description of","rest":false,"required":true,"type":"Sticker"}],"output":["String"],"category":"sticker"},{"name":"$stickerFormat","version":"1.4.0","description":"Returns a sticker's format","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to get format of","rest":false,"required":true,"type":"Sticker"}],"output":["StickerFormatType"],"category":"sticker"},{"name":"$stickerGuildID","version":"1.4.0","description":"Returns a sticker's guild id","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull guild of","rest":false,"required":true,"type":"Sticker"}],"output":["Guild"],"category":"sticker"},{"name":"$stickerID","version":"1.4.0","description":"Returns the sticker id","unwrap":false,"output":["Sticker"],"category":"sticker"},{"name":"$stickerName","version":"1.4.0","description":"Returns a sticker name","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull name of","rest":false,"required":true,"type":"Sticker"}],"output":["String"],"category":"sticker"},{"name":"$stickerOwnerID","version":"1.4.0","description":"Returns the user who added the sticker","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull owner of","rest":false,"required":true,"type":"Sticker"}],"output":["User"],"category":"sticker"},{"name":"$stickerPackID","version":"1.4.0","description":"Returns a sticker's pack id","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull pack of","rest":false,"required":true,"type":"Sticker"}],"output":["String"],"category":"sticker"},{"name":"$stickerRawData","version":"1.5.0","description":"Returns the raw data of a sticker","unwrap":true,"brackets":false,"args":[{"name":"sticker ID","rest":false,"required":true,"description":"The sticker to get raw data from","type":"Sticker"}],"output":["Json"],"category":"sticker"},{"name":"$stickerSortValue","version":"1.4.0","description":"Returns a sticker's sort value","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to get sort value of","rest":false,"required":true,"type":"Sticker"}],"output":["Number"],"category":"sticker"},{"name":"$stickerTags","version":"1.4.0","description":"Returns a sticker's tags","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull tags of","rest":false,"required":true,"type":"Sticker"}],"output":["String"],"category":"sticker"},{"name":"$stickerType","version":"1.4.0","description":"Returns the sticker's type","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to get type of","rest":false,"required":true,"type":"Sticker"}],"output":["StickerType"],"category":"sticker"},{"name":"$stickerURL","version":"2.3.0","description":"Returns a sticker url","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull url of","rest":false,"required":true,"type":"Sticker"}],"output":["URL"],"category":"sticker"},{"name":"$advancedReplace","version":"1.5.0","aliases":["$advancedReplaceText"],"output":["String"],"description":"Replaces text in a string multiple times","unwrap":true,"args":[{"name":"text","description":"The base text","rest":false,"required":true,"type":"String"},{"name":"match;replacement","description":"The text to match and their replacement","required":true,"rest":true,"type":"String"}],"brackets":true,"category":"string"},{"name":"$argCount","version":"1.0.0","description":"Counts the number of args in a message","aliases":["$argsCount"],"unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"text","description":"Text to count arguments","required":true,"rest":false,"type":"String"}],"category":"string"},{"name":"$charCodeAt","version":"1.0.6","description":"Returns the char code at given index","brackets":true,"unwrap":true,"output":["Number"],"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}],"category":"string"},{"name":"$charCount","version":"1.0.0","aliases":["$textLength"],"description":"Gets the char count of a text","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"text","description":"The text to get its length","rest":false,"type":"String","required":true},{"name":"char","description":"The character to count in the text","rest":false,"type":"String"}],"category":"string"},{"name":"$checkContains","version":"1.0.0","aliases":["$includes"],"output":["Boolean"],"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,"category":"string"},{"name":"$cropArgs","version":"1.4.0","description":"Crops given args","brackets":true,"output":["String"],"args":[{"name":"args","description":"The args 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,"category":"string"},{"name":"$cropText","version":"1.0.3","description":"Crops given text","brackets":true,"output":["String"],"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"},{"name":"ending","description":"Add extra text to the end","rest":false,"type":"String"}],"unwrap":true,"category":"string"},{"name":"$endsWith","version":"1.0.0","description":"Checks whether given string ends with X string","unwrap":true,"output":["Boolean"],"args":[{"name":"string","description":"The string to check against","type":"String","rest":false,"required":true},{"name":"values","required":true,"description":"The values to match at the end","rest":true,"type":"String"}],"brackets":true,"category":"string"},{"name":"$fromCharCode","version":"1.0.6","description":"Returns the characters from given codes","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"codes","description":"The codes to get its char codes","type":"Number","rest":true,"required":true}],"category":"string"},{"name":"$padEnd","version":"1.0.6","description":"Pads a string at the end","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"message","description":"The string to pad at the end","rest":false,"required":true,"type":"String"},{"name":"max length","description":"The max length of the string","rest":false,"required":true,"type":"Number"},{"name":"filler","description":"The filler to use to pad","rest":false,"type":"String"}],"category":"string"},{"name":"$padStart","version":"1.0.6","description":"Pads a string at the start","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"message","description":"The string to pad at the start","rest":false,"required":true,"type":"String"},{"name":"max length","description":"The max length of the string","rest":false,"required":true,"type":"Number"},{"name":"filler","description":"The filler to use to pad","rest":false,"type":"String"}],"category":"string"},{"name":"$randomString","version":"1.2.0","description":"Creates a random string","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"length","description":"The length of the random string","rest":false,"required":true,"type":"Number"},{"name":"characters","description":"The characters to use for this string","rest":false,"required":false,"type":"String"}],"category":"string"},{"name":"$randomText","version":"1.0.0","description":"Returns a random text (no cache)","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"texts","description":"The texts to use","rest":true,"required":true,"type":"String"}],"category":"string"},{"name":"$randomUUID","version":"1.2.0","description":"Returns a random uuid","unwrap":false,"output":["String"],"category":"string"},{"name":"$repeat","version":"1.1.0","aliases":["$repeatText"],"description":"Repeats given text for x times","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to repeat","type":"String","rest":false,"required":true},{"name":"amount","rest":false,"required":true,"type":"Number","description":"How many times to repeat this text"}],"category":"string"},{"name":"$replace","version":"1.0.0","aliases":["$replaceText"],"output":["String"],"description":"Replace text in a string","unwrap":true,"args":[{"name":"text","description":"The base text","rest":false,"required":true,"type":"String"},{"name":"match","description":"Text to match in base","rest":false,"required":true,"type":"String"},{"name":"new value","description":"The text to replace matches with","type":"String","rest":false,"required":true},{"name":"amount","description":"How many times to perform this replacement","rest":false,"type":"Number"}],"brackets":true,"category":"string"},{"name":"$replaceRegex","version":"1.0.0","description":"Replace text in a string using regex","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The base text","rest":false,"required":true,"type":"String"},{"name":"match","description":"Regex to match in base","rest":false,"required":true,"type":"String","pointer":2},{"name":"flags","description":"The flags to use for the regex","rest":false,"required":true,"type":"String"},{"name":"new value","description":"The text to replace matches with","type":"String","rest":false,"required":true},{"name":"amount","description":"How many times to perform this replacement","rest":false,"type":"Number"}],"brackets":true,"category":"string"},{"name":"$reverseText","version":"1.5.0","description":"Reverses given text","aliases":["$reverse"],"brackets":true,"unwrap":true,"args":[{"name":"string","description":"The string to use","rest":false,"required":true,"type":"String"}],"output":["String"],"category":"string"},{"name":"$sliceText","version":"1.3.0","description":"Slices given text","brackets":true,"output":["String"],"args":[{"name":"text","description":"The text to slice","rest":false,"required":true,"type":"String"},{"name":"start","description":"The start index","rest":false,"required":false,"type":"Number"},{"name":"end","description":"The end index","rest":false,"required":false,"type":"Number"}],"unwrap":true,"category":"string"},{"name":"$snowflake","version":"1.4.0","description":"Generates a snowflake, this value will never clash","unwrap":false,"output":["String"],"category":"string"},{"name":"$startsWith","version":"1.0.0","description":"Checks whether given string starts with X string","unwrap":true,"output":["Boolean"],"args":[{"name":"string","description":"The string to check against","type":"String","rest":false,"required":true},{"name":"values","required":true,"description":"The values to match at the start","rest":true,"type":"String"}],"brackets":true,"category":"string"},{"name":"$toCamelCase","version":"1.0.6","description":"Converts a string to camel case","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"message","description":"The string to turn camel case","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$toKebabCase","version":"1.0.6","description":"Converts a string to kebab case","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"message","description":"The string to turn kebab case","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$toLowerCase","version":"1.0.0","description":"Makes a string lowercase","unwrap":true,"output":["String"],"args":[{"name":"string","description":"The string to turn lowercase","type":"String","rest":true,"required":true}],"brackets":true,"category":"string"},{"name":"$toSnakeCase","version":"1.0.6","description":"Converts a string to snake case","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"message","description":"The string to turn snake case","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$toTitleCase","version":"1.0.6","description":"Converts a string to title case","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"message","description":"The string to turn title case","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$toUpperCase","version":"1.0.0","description":"Makes a string uppercase","unwrap":true,"output":["String"],"args":[{"name":"string","description":"The string to turn uppercase","type":"String","rest":true,"required":true}],"brackets":true,"category":"string"},{"name":"$trim","version":"1.0.6","aliases":["$trimSpace"],"description":"Trims a string","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to trim","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$trimEnd","version":"1.0.6","description":"Trims at the end of a string","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"text","description":"The text to trim at the end","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$trimLines","version":"1.5.0","description":"Trims empty lines from a string","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to trim empty lines","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$trimStart","version":"1.0.6","description":"Trims at the start of a string","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to trim at the start","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$cpu","version":"1.0.0","description":"Returns the cpu usage of the host (not accurate)","aliases":["$cpuUsage"],"unwrap":false,"output":["Number"],"category":"system"},{"name":"$cpuArch","version":"1.0.7","output":["String"],"description":"Returns the cpu architecture","unwrap":false,"category":"system"},{"name":"$cpuCores","version":"1.0.7","output":["Number"],"description":"Returns the amount of cpu cores","unwrap":false,"category":"system"},{"name":"$cpuModel","version":"1.0.7","description":"Returns the cpu model","unwrap":false,"output":["String"],"category":"system"},{"name":"$cpuSpeed","version":"1.0.7","description":"Returns the cpu speed in MHz","unwrap":false,"output":["Number"],"category":"system"},{"name":"$networkCardIPs","version":"1.2.0","description":"Returns your network's card ips","unwrap":true,"output":["String[]"],"brackets":false,"args":[{"name":"separator","description":"The separator to use","rest":false,"required":true,"type":"String"}],"category":"system"},{"name":"$networkCardNames","version":"1.2.0","description":"Returns your network's card names","unwrap":true,"output":["String[]"],"brackets":false,"args":[{"name":"separator","description":"The separator to use","rest":false,"required":true,"type":"String"}],"category":"system"},{"name":"$nodeVersion","version":"1.0.0","description":"Returns the node version","unwrap":false,"output":["String"],"category":"system"},{"name":"$os","version":"1.0.7","description":"Returns the operating system name","unwrap":false,"output":["String"],"category":"system"},{"name":"$osUptime","version":"1.0.7","description":"Returns the operating system uptime (seconds)","unwrap":false,"output":["Number"],"category":"system"},{"name":"$ram","version":"1.0.0","description":"Returns the current ram usage in MB","aliases":["$memory","$ramUsage"],"unwrap":false,"output":["Number"],"category":"system"},{"name":"$ramTotal","version":"2.2.0","description":"Returns the maximum total ram capacity of the system in GB","aliases":["$memoryTotal","$maxRam"],"unwrap":false,"output":["Number"],"category":"system"},{"name":"$calendarDay","version":"1.5.0","description":"Returns the calendar day","unwrap":false,"output":["Number"],"category":"time"},{"name":"$calendarWeek","version":"1.5.0","description":"Returns the calendar week","unwrap":false,"output":["Number"],"category":"time"},{"name":"$clearInterval","version":"2.3.0","description":"Clears an active interval, returns bool","aliases":["$stopInterval"],"unwrap":true,"brackets":true,"args":[{"name":"name","description":"The name of the interval","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"time"},{"name":"$clearTimeout","version":"2.3.0","description":"Clears an active timeout, returns bool","aliases":["$stopTimeout"],"unwrap":true,"brackets":true,"args":[{"name":"name","description":"The name of the timeout","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"time"},{"name":"$day","version":"1.2.0","description":"Returns current day of month","aliases":["$dayOfMonth"],"unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the day","rest":false,"type":"Enum","enum":["Numeric","TwoDigit"],"enumName":"BasicTimeFormat"}],"output":["String"],"category":"time"},{"name":"$discordTimestamp","version":"1.4.0","description":"Creates a discord timestamp","unwrap":true,"brackets":true,"args":[{"name":"time","description":"The time to turn into timestamp","rest":false,"required":true,"type":"Time"},{"name":"style","rest":false,"required":true,"enum":["ShortTime","LongTime","ShortDate","LongDate","ShortDateTime","LongDateTime","RelativeTime"],"type":"Enum","description":"The timestamp style","enumName":"TimestampStyles"}],"output":["String"],"category":"time"},{"name":"$executionTime","version":"1.0.3","description":"Returns current execution time","unwrap":false,"output":["Number"],"category":"time"},{"name":"$getTimestamp","version":"1.0.0","description":"Gets the current timestamp","unwrap":false,"output":["Number"],"category":"time"},{"name":"$hour","version":"1.2.0","description":"Returns current hour","unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the hour","rest":false,"type":"Enum","enum":["Numeric","TwoDigit"],"enumName":"BasicTimeFormat"}],"output":["Number"],"category":"time"},{"name":"$minute","version":"1.2.0","description":"Returns current minute","unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the minute","rest":false,"type":"Enum","enum":["Numeric","TwoDigit"],"enumName":"BasicTimeFormat"}],"output":["Number"],"category":"time"},{"name":"$month","version":"1.2.0","description":"Returns current month","unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the month","rest":false,"type":"Enum","enum":["Numeric","TwoDigit","Long","Short","Narrow"],"enumName":"ExtendedTimeFormat"}],"output":["String"],"category":"time"},{"name":"$parseDate","version":"1.0.2","description":"Parses valid ms to a date","brackets":true,"output":["Date"],"args":[{"name":"ms","description":"The ms to convert to date","rest":false,"type":"Number","required":true},{"name":"type","description":"The date type","enum":["LocaleDate","LocaleTime","Locale","Date","ISO","UTC","Time"],"rest":false,"required":true,"type":"Enum","enumName":"DateType"}],"unwrap":true,"category":"time"},{"name":"$parseDigital","version":"1.5.0","description":"Parses given ms to digital format","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"ms","description":"The ms to convert to digital format","rest":false,"type":"Number","required":true}],"category":"time"},{"name":"$parseMS","version":"1.0.2","description":"Parses valid ms to duration","brackets":true,"output":["String"],"args":[{"name":"ms","description":"The ms to convert to string","rest":false,"type":"Number","required":true},{"name":"limit","description":"Limit of units to use","rest":false,"type":"Number"},{"name":"separator","description":"The separator to use for every unit","rest":false,"type":"String"},{"name":"and","rest":false,"description":"Whether to use and word for last unit","type":"Boolean"}],"unwrap":true,"category":"time"},{"name":"$parseString","version":"1.0.2","description":"Parses valid duration string to ms","brackets":true,"output":["Number"],"args":[{"name":"duration","description":"The valid string to convert to ms","rest":false,"type":"String","required":true}],"unwrap":true,"category":"time"},{"name":"$second","version":"1.2.0","description":"Returns current second","unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the second","rest":false,"type":"Enum","enum":["Numeric","TwoDigit"],"enumName":"BasicTimeFormat"}],"output":["Number"],"category":"time"},{"name":"$setCalendar","version":"1.5.0","aliases":["$calendar"],"description":"Sets the calendar for time functions","unwrap":true,"brackets":true,"args":[{"name":"type","description":"The calendar type to use","rest":false,"type":"Enum","enum":["Buddhist","Chinese","Coptic","Dangi","Ethioaa","Ethiopic","Gregory","Hebrew","Indian","Islamic","IslamicUmalqura","IslamicTbla","IslamicCivil","IslamicRgsa","Iso8601","Japanese","Persian","Roc"],"required":true,"enumName":"CalendarType"}],"category":"time"},{"name":"$setInterval","version":"1.0.2","description":"Executes code after given duration until canceled","unwrap":false,"brackets":true,"args":[{"name":"code","description":"The code to execute","rest":false,"required":true,"type":"String"},{"name":"time","description":"How long to wait for before running this code","rest":false,"type":"Time"},{"name":"name","description":"The name for this interval","rest":false,"type":"String"}],"category":"time"},{"name":"$setTimeout","version":"1.0.2","description":"Executes code after given duration","unwrap":false,"brackets":true,"args":[{"name":"code","description":"The code to execute","rest":false,"required":true,"type":"String"},{"name":"time","description":"How long to wait for before running this code","rest":false,"type":"Time"},{"name":"name","description":"The name for this timeout","rest":false,"type":"String"}],"category":"time"},{"name":"$setTimezone","version":"1.5.0","aliases":["$timezone"],"description":"Sets the timezone for time functions","unwrap":true,"brackets":true,"args":[{"name":"timezone","description":"The timezone to set","rest":false,"type":"String","required":true}],"category":"time"},{"name":"$unparseDate","version":"1.2.0","description":"Unparses given date to ms","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"date","description":"The date to get its ms","type":"Date","rest":false,"required":true}],"category":"time"},{"name":"$unparseDigital","version":"1.5.0","description":"Unparses given digital format to ms","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"digital","description":"The digital format to convert to ms","rest":false,"type":"String","required":true}],"category":"time"},{"name":"$wait","version":"1.0.0","description":"Delays the code below for x milliseconds","brackets":true,"unwrap":true,"args":[{"name":"duration","description":"The duration to wait for","rest":false,"type":"Time","required":true}],"category":"time"},{"name":"$week","version":"1.5.0","description":"Returns current week of month","unwrap":false,"output":["Number"],"category":"time"},{"name":"$weekday","version":"2.3.0","description":"Returns current day of week","aliases":["$dayOfWeek"],"unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the day","rest":false,"type":"Enum","enum":["Numeric","TwoDigit","Long","Short","Narrow"],"enumName":"ExtendedTimeFormat"}],"output":["String"],"category":"time"},{"name":"$year","version":"1.2.0","description":"Returns current year","unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the year","rest":false,"type":"Enum","enum":["Numeric","TwoDigit"],"enumName":"BasicTimeFormat"}],"output":["Number"],"category":"time"},{"name":"$api","version":"1.5.0","description":"Sends a discord api request, using a discord-api-types route","unwrap":true,"aliases":["$discordAPI"],"args":[{"name":"route name","description":"Route name, like so `channel`","type":"String","rest":false},{"name":"route method","description":"Route method, like so `get`","type":"String","rest":false,"required":true},{"name":"route params;body","description":"Parameters for this route, body has to be json","rest":true,"required":true,"type":"String"}],"output":["Unknown"],"brackets":true,"category":"unsafe"},{"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,"category":"unsafe"},{"name":"$djsEval","version":"1.0.0","aliases":["$js"],"description":"Evaluates JavaScript code","unwrap":true,"output":["Unknown"],"args":[{"name":"code","description":"The code to eval","rest":true,"required":true,"type":"String"}],"brackets":true,"category":"unsafe"},{"name":"$eval","version":"1.0.0","description":"Evaluates given code","unwrap":true,"output":["Unknown"],"brackets":true,"args":[{"name":"code","type":"String","rest":false,"required":true,"description":"The code to eval"},{"name":"send","type":"Boolean","rest":false,"description":"Whether to send as new message"}],"category":"unsafe"},{"name":"$exec","version":"1.0.0","brackets":true,"description":"Runs a command in console","unwrap":true,"output":["Unknown"],"args":[{"name":"command","description":"The command to execute","rest":false,"type":"String","required":true}],"category":"unsafe"},{"name":"$function","version":"1.0.0","description":"Runs a function","unwrap":false,"experimental":true,"output":["Unknown"],"args":[{"name":"code","description":"Code to execute","required":true,"type":"String","rest":true}],"brackets":true,"category":"unsafe"},{"name":"$gc","version":"1.5.0","description":"Triggers JavaScript's garbage collector, only available if passed --expose-gc flag to node","unwrap":false,"output":["Boolean"],"category":"unsafe"},{"name":"$instanceName","version":"1.4.0","aliases":["$instance","$contextInstance"],"description":"Returns the context's instance name","output":["String"],"unwrap":false,"category":"unsafe"},{"name":"$loadChannelContext","version":"1.4.0","aliases":["$useChannelContext","$asChannelContext"],"brackets":true,"description":"Loads a channel instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"args":[{"name":"channel ID","description":"The channel to adapt context with","rest":false,"required":true,"type":"Channel"}],"category":"unsafe"},{"name":"$loadGuildContext","version":"1.4.0","aliases":["$useGuildContext","$asGuildContext"],"brackets":true,"description":"Loads a guild instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"args":[{"name":"guild ID","description":"The guild to adapt context with","rest":false,"required":true,"type":"Guild"}],"category":"unsafe"},{"name":"$loadMemberContext","version":"1.4.0","aliases":["$useMemberContext","$asMemberContext"],"description":"Loads a member instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"member ID","description":"The member to adapt context with","rest":false,"required":true,"type":"Member","pointer":0}],"category":"unsafe"},{"name":"$loadMessageContext","version":"1.4.0","aliases":["$useMessageContext","$asMessageContext"],"description":"Loads a message instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to adapt context with","rest":false,"required":true,"type":"Message","pointer":0}],"category":"unsafe"},{"name":"$loadRoleContext","version":"1.4.0","aliases":["$useRoleContext","$asRoleContext"],"description":"Loads a role instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to pull role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","description":"The role to adapt context with","rest":false,"required":true,"type":"Role","pointer":0}],"category":"unsafe"},{"name":"$loadStickerContext","version":"1.4.0","aliases":["$useStickerContext","$asStickerContext"],"brackets":true,"description":"Loads a sticker instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to adapt context with","rest":false,"required":true,"type":"Sticker"}],"category":"unsafe"},{"name":"$loadUserContext","version":"1.4.0","aliases":["$useUserContext","$asUserContext"],"brackets":true,"description":"Loads a user instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"args":[{"name":"user ID","description":"The user to adapt context with","rest":false,"required":true,"type":"User"}],"category":"unsafe"},{"name":"$authorID","version":"1.0.0","aliases":["$userID"],"description":"Retrieves a user's id","unwrap":false,"output":["User"],"category":"user"},{"name":"$discriminator","version":"1.4.0","description":"Returns the user discriminator","brackets":false,"unwrap":true,"args":[{"name":"user ID","description":"The user to get its discriminator","rest":false,"required":true,"type":"User"}],"output":["String"],"category":"user"},{"name":"$isBot","version":"1.0.0","description":"Whether the user is a bot","unwrap":true,"output":["Boolean"],"args":[{"name":"user ID","description":"The user to check whether its a bot","required":true,"rest":false,"type":"User"}],"brackets":false,"category":"user"},{"name":"$isBotVerified","version":"1.0.0","description":"Whether the bot is verified","unwrap":true,"output":["Boolean"],"args":[{"name":"user ID","description":"The bot to check whether its verified","required":true,"rest":false,"type":"User"}],"brackets":false,"category":"user"},{"name":"$isUserDMEnabled","version":"1.2.0","description":"Checks whether the given user can be DMed","unwrap":true,"brackets":false,"output":["Boolean"],"args":[{"name":"user","description":"The user to test DMs","rest":false,"required":true,"type":"User"}],"category":"user"},{"name":"$randomUserID","version":"1.0.3","description":"Returns a random user ID","unwrap":false,"output":["User"],"category":"user"},{"name":"$sendDM","version":"1.0.0","description":"Sends a dm to the user","unwrap":true,"brackets":true,"output":["Message"],"args":[{"name":"user ID","description":"The user to dm","rest":false,"type":"User","required":true},{"name":"content","description":"The content to send","rest":false,"type":"String"},{"name":"return message ID","description":"Returns the message id of the newly created message","rest":false,"type":"Boolean"}],"category":"user"},{"name":"$userAccentColor","version":"1.0.0","description":"Returns the user accent color","brackets":false,"output":["Color"],"args":[{"name":"user ID","description":"The user to retrieve the accent color","rest":false,"required":true,"type":"User"}],"unwrap":true,"category":"user"},{"name":"$userAvatar","version":"1.0.0","description":"Returns the user avatar","brackets":false,"output":["URL"],"args":[{"name":"user ID","description":"The user to retrieve the avatar","rest":false,"required":true,"type":"User"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"user"},{"name":"$userAvatarDecoration","version":"1.0.0","description":"Returns the user decoration","brackets":false,"output":["URL"],"args":[{"name":"user ID","description":"The user to retrieve the decoration","rest":false,"required":true,"type":"User"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"user"},{"name":"$userBadges","version":"1.0.0","description":"Returns the public badges of a user","aliases":["$userFlags"],"unwrap":true,"output":["UserFlags[]"],"args":[{"name":"user ID","description":"The user to return its badges","required":true,"rest":false,"type":"User"},{"name":"separator","description":"The separator to use for every badge","rest":false,"type":"String"}],"brackets":false,"category":"user"},{"name":"$userBanner","version":"1.0.0","description":"Returns the user banner","brackets":false,"output":["URL"],"args":[{"name":"user ID","description":"The user to retrieve the banner","rest":false,"required":true,"type":"User"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"user"},{"name":"$userCount","version":"1.0.0","description":"Returns the user count of the bot","unwrap":false,"output":["Number"],"category":"user"},{"name":"$userCreatedAt","version":"1.0.2","description":"Returns the timestamp this user created their account","unwrap":true,"output":["Number"],"args":[{"name":"user ID","description":"The user to return its creation date","required":true,"rest":false,"type":"User"}],"brackets":false,"category":"user"},{"name":"$userDefaultAvatar","version":"1.5.0","description":"Returns the default user avatar","brackets":false,"output":["URL"],"args":[{"name":"user ID","description":"The user to retrieve the default avatar","rest":false,"required":true,"type":"User"}],"unwrap":true,"category":"user"},{"name":"$userDisplayName","version":"1.0.0","description":"Returns the display name of a user","unwrap":true,"output":["String"],"args":[{"name":"user ID","description":"The user to return its display name","required":true,"rest":false,"type":"User"}],"brackets":false,"category":"user"},{"name":"$userExists","version":"1.0.0","description":"Returns whether a user id exists","unwrap":true,"output":["Boolean"],"brackets":true,"args":[{"name":"user ID","description":"The user to check","rest":false,"required":true,"type":"String"}],"category":"user"},{"name":"$userGlobalName","version":"1.0.0","description":"Returns the global name of a user","unwrap":true,"output":["String"],"args":[{"name":"user ID","description":"The user to return its global name","required":true,"rest":false,"type":"User"}],"brackets":false,"category":"user"},{"name":"$userIDs","version":"1.4.0","description":"Returns all the users that are currently cached","unwrap":true,"brackets":false,"args":[{"name":"separator","description":"The separator to use for every id","rest":false,"type":"String"}],"output":["User[]"],"category":"user"},{"name":"$userRawData","version":"1.5.0","description":"Returns the raw data of a user","unwrap":true,"brackets":false,"args":[{"name":"user ID","description":"The user to get raw data from","rest":false,"type":"User","required":true}],"output":["Json"],"category":"user"},{"name":"$userReferenceID","version":"1.5.0","description":"Returns the id of the user this message replies to","unwrap":true,"output":["User"],"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get the message from","type":"Channel"},{"name":"message ID","description":"The message to get its reference user","rest":false,"type":"Message","pointer":0,"required":true}],"brackets":false,"category":"user"},{"name":"$userTag","version":"1.4.0","description":"Returns the user tag","brackets":false,"unwrap":true,"args":[{"name":"user ID","description":"The user to get its tag","rest":false,"required":true,"type":"User"}],"output":["String"],"category":"user"},{"name":"$username","version":"1.0.0","description":"Retrieves a user's username","brackets":false,"output":["String"],"args":[{"name":"id","description":"The user id to get the username of","type":"User","rest":false}],"unwrap":true,"category":"user"},{"name":"$delete","version":"1.0.0","description":"Deletes a keyword","unwrap":true,"output":["Boolean"],"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true}],"brackets":true,"category":"variable"},{"name":"$env","version":"1.0.0","aliases":["$jsonDump"],"output":["Unknown"],"description":"Retrieves an environment value","args":[{"name":"key","description":"The key to return its value","required":true,"type":"String","rest":true}],"brackets":true,"unwrap":true,"category":"variable"},{"name":"$get","version":"1.0.0","output":["Unknown"],"description":"Get a keyword value","unwrap":true,"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true}],"brackets":true,"category":"variable"},{"name":"$has","version":"1.0.0","description":"Checks whether a keyword exists","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"name","description":"The name of the keyword","rest":false,"type":"String","required":true}],"category":"variable"},{"name":"$let","version":"1.0.0","description":"Create a keyword","unwrap":true,"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true},{"name":"value","description":"The key value","rest":false,"required":true,"type":"String"}],"brackets":true,"category":"variable"},{"name":"$letDivide","version":"1.3.0","description":"Short-hand for $let[...;$divide[$get[...];...]]","unwrap":true,"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true},{"name":"value","description":"The value to divide with","rest":false,"required":true,"type":"Number"}],"brackets":true,"category":"variable"},{"name":"$letMulti","version":"1.3.0","description":"Short-hand for $let[...;$multi[$get[...];...]]","unwrap":true,"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true},{"name":"value","description":"The value to multiply with","rest":false,"required":true,"type":"Number"}],"brackets":true,"category":"variable"},{"name":"$letSub","version":"1.3.0","description":"Short-hand for $let[...;$sub[$get[...];...]]","unwrap":true,"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true},{"name":"value","description":"The value to sub with","rest":false,"required":true,"type":"Number"}],"brackets":true,"category":"variable"},{"name":"$letSum","version":"1.3.0","description":"Short-hand for $let[...;$sum[$get[...];...]]","unwrap":true,"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true},{"name":"value","description":"The value to sum with","rest":false,"required":true,"type":"Number"}],"brackets":true,"category":"variable"},{"name":"$webhookCreate","version":"1.0.0","description":"Creates a webhook in a channel, returns the webhook id","brackets":true,"unwrap":true,"output":["Webhook"],"args":[{"name":"channel ID","description":"The channel to create the webhook","type":"Channel","rest":false,"required":true},{"name":"name","description":"The webhook name","rest":false,"required":true,"type":"String"},{"name":"url","description":"The avatar url","rest":false,"type":"String"}],"category":"webhook"},{"name":"$webhookDelete","version":"1.0.0","description":"Deletes webhook with given id","brackets":true,"unwrap":true,"args":[{"name":"id","description":"The webhook id","rest":false,"type":"Webhook","required":true}],"category":"webhook"},{"name":"$webhookEdit","version":"1.0.0","description":"Edits webhook with given id","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"id","description":"The webhook id","rest":false,"type":"Webhook","required":true},{"name":"name","description":"The new name for the webhook","rest":false,"type":"String"},{"name":"url","description":"The new avatar for the webhook","rest":false,"type":"String"}],"category":"webhook"},{"name":"$webhookEditMessage","version":"1.5.0","description":"Edits a webhook message, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"url","description":"The webhook url","rest":false,"required":true,"type":"String"},{"name":"message ID","description":"The message to edit","rest":false,"required":true,"type":"String"},{"name":"content","description":"The new content for the message","rest":false,"type":"String"},{"name":"thread ID","description":"The thread this message belongs to","rest":false,"type":"Channel"}],"category":"webhook"},{"name":"$webhookExists","version":"1.0.0","description":"Checks whether given webhook id eixsts","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"id","description":"The webhook id","rest":false,"type":"String","required":true}],"category":"webhook"},{"name":"$webhookIsUserCreated","version":"2.3.0","description":"Checks whether given webhook is user created","brackets":true,"unwrap":true,"args":[{"name":"id","description":"The webhook id","rest":false,"type":"Webhook","required":true}],"output":["Boolean"],"category":"webhook"},{"name":"$webhookSend","version":"1.0.0","description":"Sends a message with a webhook","brackets":true,"unwrap":true,"output":["Message"],"args":[{"name":"url","description":"The webhook url","rest":false,"required":true,"type":"String"},{"name":"content","description":"The content for the message","rest":false,"type":"String"},{"name":"return message ID","description":"Return the message id of the sent message","rest":false,"type":"Boolean"},{"name":"username","description":"The username for the message","rest":false,"type":"String"},{"name":"avatar","description":"The avatar for the message","rest":false,"type":"String"},{"name":"thread ID","description":"The thread to send message to","rest":false,"type":"Channel"},{"name":"post name","description":"The name for the created forum post","rest":false,"type":"String"},{"name":"tags","description":"The tags for the created forum post","rest":true,"type":"String"}],"category":"webhook"},{"name":"$webhookToken","version":"1.0.0","description":"Gets webhook token of given id","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"id","description":"The webhook id","rest":false,"type":"String","required":true}],"category":"webhook"},{"name":"$webhookType","version":"2.3.0","description":"Returns the type of a webhook","brackets":true,"unwrap":true,"args":[{"name":"id","description":"The webhook id","rest":false,"type":"Webhook","required":true}],"output":["WebhookType"],"category":"webhook"},{"name":"$webhookURL","version":"1.0.0","description":"Gets webhook url with given id","brackets":true,"output":["URL"],"unwrap":true,"args":[{"name":"id","description":"The webhook id","rest":false,"type":"String","required":true}],"category":"webhook"},{"name":"$ws","version":"1.5.0","description":"Creates a WebSocket connection to a server","aliases":["$websocket"],"brackets":true,"unwrap":true,"args":[{"name":"host","description":"The WS host, formatted as wss://hostname:port","rest":false,"required":true,"type":"String"}],"output":["Number"],"category":"websocket"},{"name":"$wsClose","version":"1.5.0","description":"Closes a websocket connection and removes all listeners of it","aliases":["$websocketClose"],"brackets":true,"unwrap":true,"args":[{"name":"websocket ID","description":"The id of the websocket to attach this listener to","rest":false,"required":true,"type":"Number"},{"name":"code","description":"The status code to send","rest":false,"type":"Number"}],"category":"websocket"},{"name":"$wsOn","version":"1.5.0","description":"Attach a listener to a websocket","unwrap":false,"aliases":["$websocketOn"],"brackets":true,"args":[{"name":"websocket ID","description":"The id of the websocket to attach this listener to","rest":false,"required":true,"type":"Number"},{"name":"listener name","description":"The name of the event to listen to","rest":false,"required":true,"type":"String"},{"name":"callback","description":"The code to execute every time this event is fired","rest":false,"required":true,"type":"String"},{"name":"params","description":"The arguments that will contain the data of the event that was sent","rest":true,"required":true,"type":"String"}],"category":"websocket"},{"name":"$wsSend","version":"1.5.0","description":"Sends a websocket message","aliases":["$websocketSend"],"brackets":true,"unwrap":false,"args":[{"name":"websocket ID","description":"The id of the websocket to attach this listener to","rest":false,"required":true,"type":"Number"},{"name":"value","description":"The json value to send over","rest":false,"required":true,"type":"Json"},{"name":"callback","description":"Code to execute on completion of request","rest":false,"type":"String"},{"name":"variable name","description":"Variable to store error on if callback was called for an error","rest":false,"required":false,"type":"String"}],"category":"websocket"},{"name":"$wsState","version":"1.5.0","output":["ConnectionState"],"description":"Returns a websocket's connection state","unwrap":true,"brackets":true,"args":[{"name":"websocket ID","description":"The websocket to get its state","rest":false,"required":true,"type":"Number"}],"category":"websocket"}] \ No newline at end of file +[{"name":"$advancedTextSplit","version":"1.4.0","description":"Split and get all at the same time multiple times","brackets":true,"unwrap":true,"args":[{"name":"text","description":"The text to use","rest":false,"required":true,"type":"String"},{"name":"split;index","rest":true,"type":"String","required":true,"description":"The split followed by the index to get"}],"output":["String"],"category":"array"},{"name":"$arrayAdvancedSort","version":"1.4.0","description":"Advanced array sort","unwrap":false,"brackets":true,"args":[{"name":"variable","description":"The variable the array is held on","type":"String","rest":false,"required":true},{"name":"var1","description":"The $env variable 1 to hold x value","rest":false,"type":"String","required":true},{"name":"var2","description":"The $env variable 2 to hold y value","rest":false,"type":"String","required":true},{"name":"code","description":"Optional code to use for sorting, previous 2 vars must have been given","rest":false,"type":"String","required":true},{"name":"other variable","description":"The variable to load result to, leave empty to return output","rest":false,"required":false,"type":"String"}],"output":["Json"],"category":"array"},{"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}],"output":["Unknown"],"category":"array"},{"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,"category":"array"},{"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, leave empty to return output","rest":false,"required":false,"type":"String"},{"name":"variables","description":"The variable names to concat","rest":true,"type":"String","required":true}],"output":["Json"],"brackets":true,"category":"array"},{"name":"$arrayCreate","version":"1.4.0","aliases":["$arrayNew","$arrayInit"],"brackets":true,"description":"Initializes an array and loads it to a variable","args":[{"name":"variable","description":"The variable to load it to, accessed with $env","type":"String","rest":false,"required":true},{"name":"length","description":"The default length of the array, defaults to 0","rest":false,"required":false,"type":"Number"}],"unwrap":true,"category":"array"},{"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"}],"output":["Boolean"],"brackets":true,"category":"array"},{"name":"$arrayFill","version":"1.4.0","brackets":true,"description":"Fills an array with given value","args":[{"name":"variable","description":"The variable to load array from","type":"String","rest":false,"required":true},{"name":"value","description":"The value to fill the array with","rest":false,"required":true,"type":"Json"}],"unwrap":true,"category":"array"},{"name":"$arrayFindIndex","version":"1.0.0","description":"Finds the index of a first found element in the array","unwrap":false,"output":["Number"],"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,"category":"array"},{"name":"$arrayFindLastIndex","version":"1.5.0","description":"Finds the index of a last found element in the array","unwrap":false,"output":["Number"],"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,"category":"array"},{"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,"category":"array"},{"name":"$arrayIncludes","version":"1.0.0","description":"Checks whether a value exists in an array","unwrap":true,"output":["Boolean"],"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,"category":"array"},{"name":"$arrayIndexOf","version":"1.0.0","description":"Gets the index of a first found element in the array","unwrap":true,"output":["Number"],"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,"category":"array"},{"name":"$arrayJoin","version":"1.0.0","description":"Joins all elements from an array with given separator","unwrap":true,"output":["Unknown[]"],"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,"category":"array"},{"name":"$arrayLastIndexOf","version":"1.5.0","description":"Gets the index of a last found element in the array","unwrap":true,"output":["Number"],"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 last index","rest":false,"required":true,"type":"String"}],"brackets":true,"category":"array"},{"name":"$arrayLength","version":"1.0.0","description":"Returns the numbers of elements in an array","unwrap":true,"output":["Number"],"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"}],"brackets":true,"category":"array"},{"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":false},{"name":"values","description":"The elements of the array","rest":true,"type":"String"}],"unwrap":true,"brackets":true,"category":"array"},{"name":"$arrayMap","version":"1.0.0","description":"Maps through every element of the array and loads the results to another array","unwrap":false,"output":["Json"],"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, leave empty to return output","rest":false,"required":false,"type":"String"}],"brackets":true,"category":"array"},{"name":"$arrayPop","version":"1.0.0","description":"Deletes the last element of the array and returns it","unwrap":true,"output":["Unknown"],"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"}],"brackets":true,"category":"array"},{"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,"category":"array"},{"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,"category":"array"},{"name":"$arrayRandomIndex","version":"1.4.0","description":"Returns a random index","unwrap":true,"output":["Number"],"brackets":true,"args":[{"name":"variable","description":"The variable the array is held on","type":"String","rest":false,"required":true}],"category":"array"},{"name":"$arrayRandomValue","version":"1.4.0","description":"Returns a random element","unwrap":true,"output":["Unknown"],"brackets":true,"args":[{"name":"variable","description":"The variable the array is held on","type":"String","rest":false,"required":true}],"category":"array"},{"name":"$arrayReduce","version":"1.0.0","description":"Reduces an array of elements and returns the result","unwrap":false,"output":["Number"],"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,"category":"array"},{"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, leave empty to return output","rest":false,"type":"String","required":false}],"output":["Json"],"category":"array"},{"name":"$arrayShift","version":"1.0.0","description":"Deletes the first element of the array and returns it","unwrap":true,"output":["Unknown"],"args":[{"name":"name","description":"The variable that holds the array","rest":false,"required":true,"type":"String"}],"brackets":true,"category":"array"},{"name":"$arrayShuffle","version":"1.4.0","description":"Shuffles given array","unwrap":true,"brackets":true,"args":[{"name":"variable","description":"The variable the array is held on","type":"String","rest":false,"required":true}],"category":"array"},{"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, leave empty to return output","rest":false,"type":"String","required":false},{"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"}],"output":["Json"],"category":"array"},{"name":"$arraySome","version":"1.0.0","description":"Loops through every element of the array to find a match","unwrap":false,"output":["Boolean"],"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,"category":"array"},{"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":"other variable","description":"The variable to load result to, leave empty to return output","rest":false,"required":false,"type":"String"},{"name":"sort type","description":"The sort type, omit to use default sort order","rest":false,"type":"Enum","enum":["asc","desc"],"enumName":"SortType"}],"output":["Json"],"category":"array"},{"name":"$arraySplice","version":"1.0.0","description":"Removes x elements starting from y index, returns deleted elements","unwrap":true,"output":["Json"],"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","rest":true,"type":"String"}],"brackets":true,"category":"array"},{"name":"$arrayUnique","version":"2.5.0","description":"Removes duplicate elements from the array","unwrap":true,"brackets":true,"args":[{"name":"variable","description":"The variable the array is held on","type":"String","rest":false,"required":true},{"name":"other variable","description":"The variable to load result to, leave empty to return output","rest":false,"required":false,"type":"String"}],"output":["Json"],"category":"array"},{"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,"category":"array"},{"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,"category":"array"},{"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,"category":"array"},{"name":"$getSplitTextLength","version":"1.4.0","description":"Gets count of elements from $textSplit","aliases":["$getTextSplitLength"],"output":["Number"],"unwrap":false,"category":"array"},{"name":"$getTextSplitIndex","version":"2.5.0","description":"Gets the index of a textSplit element","aliases":["$getSplitTextIndex"],"brackets":true,"unwrap":true,"args":[{"name":"element","description":"The element to get index of","rest":false,"required":true,"type":"String"}],"category":"array"},{"name":"$segmentTextSplit","version":"1.5.0","description":"Creates an array on given text using segmenter","brackets":true,"unwrap":true,"args":[{"name":"text","description":"The text to split","rest":false,"required":true,"type":"String"}],"category":"array"},{"name":"$splitText","version":"1.2.0","description":"Gets element of textSplit","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"index","description":"The index to get split at","rest":false,"required":true,"type":"Number"}],"category":"array"},{"name":"$splitTextJoin","version":"1.4.0","description":"Joins all elements from array with given separator","unwrap":true,"aliases":["$textSplitJoin"],"output":["Unknown[]"],"args":[{"name":"separator","description":"The separator to use for every element","rest":false,"type":"String","required":true}],"brackets":true,"category":"array"},{"name":"$textSplit","version":"1.2.0","description":"Creates an array on given text with a separator","brackets":true,"unwrap":true,"args":[{"name":"text","description":"The text to split","rest":false,"required":true,"type":"String"},{"name":"separator","description":"The separator to use","rest":false,"required":true,"type":"String"}],"category":"array"},{"name":"$fetchAuditLog","version":"1.4.0","description":"Fetches an audit log using the type of it","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"guild ID","description":"The guild to get audit log from","rest":false,"required":true,"type":"Guild"},{"name":"type","description":"The event type of the log","rest":false,"required":true,"type":"Enum","enum":["GuildUpdate","ChannelCreate","ChannelUpdate","ChannelDelete","ChannelOverwriteCreate","ChannelOverwriteUpdate","ChannelOverwriteDelete","MemberKick","MemberPrune","MemberBanAdd","MemberBanRemove","MemberUpdate","MemberRoleUpdate","MemberMove","MemberDisconnect","BotAdd","RoleCreate","RoleUpdate","RoleDelete","InviteCreate","InviteUpdate","InviteDelete","WebhookCreate","WebhookUpdate","WebhookDelete","EmojiCreate","EmojiUpdate","EmojiDelete","MessageDelete","MessageBulkDelete","MessagePin","MessageUnpin","IntegrationCreate","IntegrationUpdate","IntegrationDelete","StageInstanceCreate","StageInstanceUpdate","StageInstanceDelete","StickerCreate","StickerUpdate","StickerDelete","GuildScheduledEventCreate","GuildScheduledEventUpdate","GuildScheduledEventDelete","ThreadCreate","ThreadUpdate","ThreadDelete","ApplicationCommandPermissionUpdate","SoundboardSoundCreate","SoundboardSoundUpdate","SoundboardSoundDelete","AutoModerationRuleCreate","AutoModerationRuleUpdate","AutoModerationRuleDelete","AutoModerationBlockMessage","AutoModerationFlagToChannel","AutoModerationUserCommunicationDisabled","AutoModerationQuarantineUser","CreatorMonetizationRequestCreated","CreatorMonetizationTermsAccepted","OnboardingPromptCreate","OnboardingPromptUpdate","OnboardingPromptDelete","OnboardingCreate","OnboardingUpdate","HomeSettingsCreate","HomeSettingsUpdate"],"enumName":"AuditLogEvent"},{"name":"property","description":"The property to pull from the audit log","rest":false,"required":true,"type":"Enum","enum":["id","targetID","timestamp","reason","executorID","actionType","targetType","action","changes","extra"],"enumName":"AuditProperty"},{"name":"index","description":"The index of the entry to use","rest":false,"type":"Number"},{"name":"separator","description":"The separator to use in case of array output","type":"String","rest":false}],"category":"audit"},{"name":"$fetchAuditLogCount","version":"1.4.0","description":"Fetches audit log count using the type of it","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"guild ID","description":"The guild to get audit log from","rest":false,"required":true,"type":"Guild"},{"name":"type","description":"The event type of the log","rest":false,"required":true,"type":"Enum","enum":["GuildUpdate","ChannelCreate","ChannelUpdate","ChannelDelete","ChannelOverwriteCreate","ChannelOverwriteUpdate","ChannelOverwriteDelete","MemberKick","MemberPrune","MemberBanAdd","MemberBanRemove","MemberUpdate","MemberRoleUpdate","MemberMove","MemberDisconnect","BotAdd","RoleCreate","RoleUpdate","RoleDelete","InviteCreate","InviteUpdate","InviteDelete","WebhookCreate","WebhookUpdate","WebhookDelete","EmojiCreate","EmojiUpdate","EmojiDelete","MessageDelete","MessageBulkDelete","MessagePin","MessageUnpin","IntegrationCreate","IntegrationUpdate","IntegrationDelete","StageInstanceCreate","StageInstanceUpdate","StageInstanceDelete","StickerCreate","StickerUpdate","StickerDelete","GuildScheduledEventCreate","GuildScheduledEventUpdate","GuildScheduledEventDelete","ThreadCreate","ThreadUpdate","ThreadDelete","ApplicationCommandPermissionUpdate","SoundboardSoundCreate","SoundboardSoundUpdate","SoundboardSoundDelete","AutoModerationRuleCreate","AutoModerationRuleUpdate","AutoModerationRuleDelete","AutoModerationBlockMessage","AutoModerationFlagToChannel","AutoModerationUserCommunicationDisabled","AutoModerationQuarantineUser","CreatorMonetizationRequestCreated","CreatorMonetizationTermsAccepted","OnboardingPromptCreate","OnboardingPromptUpdate","OnboardingPromptDelete","OnboardingCreate","OnboardingUpdate","HomeSettingsCreate","HomeSettingsUpdate"],"enumName":"AuditLogEvent"},{"name":"user","rest":false,"description":"The user to filter by","type":"User"}],"category":"audit"},{"name":"$fetchUserAuditLog","version":"1.4.0","description":"Fetches an audit log from a user using the type of it","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"guild ID","description":"The guild to get audit log from","rest":false,"required":true,"type":"Guild"},{"name":"user","rest":false,"description":"The user to filter by","type":"User"},{"name":"type","description":"The event type of the log","rest":false,"required":true,"type":"Enum","enum":["GuildUpdate","ChannelCreate","ChannelUpdate","ChannelDelete","ChannelOverwriteCreate","ChannelOverwriteUpdate","ChannelOverwriteDelete","MemberKick","MemberPrune","MemberBanAdd","MemberBanRemove","MemberUpdate","MemberRoleUpdate","MemberMove","MemberDisconnect","BotAdd","RoleCreate","RoleUpdate","RoleDelete","InviteCreate","InviteUpdate","InviteDelete","WebhookCreate","WebhookUpdate","WebhookDelete","EmojiCreate","EmojiUpdate","EmojiDelete","MessageDelete","MessageBulkDelete","MessagePin","MessageUnpin","IntegrationCreate","IntegrationUpdate","IntegrationDelete","StageInstanceCreate","StageInstanceUpdate","StageInstanceDelete","StickerCreate","StickerUpdate","StickerDelete","GuildScheduledEventCreate","GuildScheduledEventUpdate","GuildScheduledEventDelete","ThreadCreate","ThreadUpdate","ThreadDelete","ApplicationCommandPermissionUpdate","SoundboardSoundCreate","SoundboardSoundUpdate","SoundboardSoundDelete","AutoModerationRuleCreate","AutoModerationRuleUpdate","AutoModerationRuleDelete","AutoModerationBlockMessage","AutoModerationFlagToChannel","AutoModerationUserCommunicationDisabled","AutoModerationQuarantineUser","CreatorMonetizationRequestCreated","CreatorMonetizationTermsAccepted","OnboardingPromptCreate","OnboardingPromptUpdate","OnboardingPromptDelete","OnboardingCreate","OnboardingUpdate","HomeSettingsCreate","HomeSettingsUpdate"],"enumName":"AuditLogEvent"},{"name":"property","description":"The property to pull from the audit log","rest":false,"required":true,"type":"Enum","enum":["id","targetID","timestamp","reason","executorID","actionType","targetType","action","changes","extra"],"enumName":"AuditProperty"},{"name":"index","description":"The index of the entry to use","rest":false,"type":"Number"},{"name":"separator","description":"The separator to use in case of array output","type":"String","rest":false}],"category":"audit"},{"name":"$setAuditLogReason","version":"2.5.0","description":"Sets the reason for audit log entries","brackets":true,"unwrap":true,"args":[{"name":"reason","description":"The reason to set","rest":false,"required":true,"type":"String"}],"category":"audit"},{"name":"$automodActionType","version":"1.2.0","description":"Returns the action type automod used","unwrap":false,"output":["AutoModerationActionType"],"category":"automod"},{"name":"$automodAlertSystemMessageID","version":"1.2.0","description":"Returns the message sent by automod","unwrap":false,"output":["Message"],"category":"automod"},{"name":"$automodChannelID","version":"1.2.0","description":"Returns the channel id for automod","unwrap":false,"output":["Channel"],"category":"automod"},{"name":"$automodContent","version":"1.2.0","description":"Returns the content automod acted upon","unwrap":false,"output":["String"],"category":"automod"},{"name":"$automodCustomMessage","version":"1.2.0","description":"Returns the custom message used by automod on this detection","unwrap":false,"output":["String"],"category":"automod"},{"name":"$automodDuration","version":"1.2.0","description":"Returns the duration in ms by this automod action","unwrap":false,"output":["Number"],"category":"automod"},{"name":"$automodMatchedContent","version":"1.2.0","description":"Returns the matched content automod acted upon","unwrap":false,"output":["String"],"category":"automod"},{"name":"$automodMatchedKeyword","version":"1.2.0","description":"Returns the matched keyword the automod caught","unwrap":false,"output":["String"],"category":"automod"},{"name":"$automodRuleID","version":"1.2.0","description":"Returns the rule id used by automod","unwrap":false,"output":["AutomodRule"],"category":"automod"},{"name":"$automodRuleTriggerType","version":"1.2.0","description":"Returns the rule trigger type used by automod","unwrap":false,"output":["AutoModerationRuleTriggerType"],"category":"automod"},{"name":"$createAutomodRule","version":"1.5.0","description":"Creates a new automod rule for a guild, returns rule id","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to create automod rule on","rest":false,"required":true,"type":"Guild"},{"name":"name","description":"The name of the automod rule","rest":false,"required":true,"type":"String"},{"name":"trigger","description":"The trigger type of the automod rule","rest":false,"required":true,"type":"Enum","enum":["Keyword","Spam","KeywordPreset","MentionSpam","MemberProfile"],"enumName":"AutoModerationRuleTriggerType"},{"name":"event","description":"The event type of the automod rule","rest":false,"required":true,"type":"Enum","enum":["MessageSend","MemberUpdate"],"enumName":"AutoModerationRuleEventType"},{"name":"enabled","description":"Whether the automod rule should be enabled","rest":false,"required":false,"type":"Boolean"},{"name":"reason","description":"The reason for creating the automod rule","rest":false,"required":false,"type":"String"}],"output":["AutomodRule"],"category":"automod"},{"name":"$deleteAutomodRule","version":"1.5.0","description":"Deletes an automod rule from a guild, returns bool","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to delete automod rule from","rest":false,"required":true,"type":"Guild"},{"name":"rule ID","description":"The id of the automod rule to delete","rest":false,"required":true,"type":"AutomodRule","pointer":0},{"name":"reason","description":"The reason for deleting the rule","rest":false,"type":"String"}],"output":["Boolean"],"category":"automod"},{"name":"$editAutomodRule","version":"1.5.0","description":"Edits an automod rule on a guild, returns bool","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to edit automod rule on","rest":false,"required":true,"type":"Guild"},{"name":"rule ID","description":"The id of the automod rule to edit","rest":false,"required":true,"type":"AutomodRule","pointer":0},{"name":"name","description":"The new name for the automod rule","rest":false,"type":"String"},{"name":"event","description":"The new event type for the automod rule","rest":false,"type":"Enum","enum":["MessageSend","MemberUpdate"],"enumName":"AutoModerationRuleEventType"},{"name":"enabled","description":"Whether the automod rule should be enabled","rest":false,"required":false,"type":"Boolean"},{"name":"reason","description":"The reason for editing the automod rule","rest":false,"required":false,"type":"String"}],"output":["Boolean"],"category":"automod"},{"name":"$getAutomodRule","version":"1.5.0","description":"Returns an automod rule of a guild","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to get automod rule from","rest":false,"required":true,"type":"Guild"},{"name":"rule ID","description":"The id of the automod rule to get","rest":false,"required":true,"type":"AutomodRule","pointer":0},{"name":"property","description":"The property of the automod rule to return","rest":false,"type":"Enum","enum":["id","name","authorID","enabled","eventType","triggerType","triggerMetadata","exemptRoles","exemptChannels","actions","keywordFilter","regexPatterns","presets","allowList","mentionTotalLimit","mentionRaidProtectionEnabled"],"enumName":"AutomodRuleProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"output":["Json","Unknown"],"category":"automod"},{"name":"$setAutomodAction","version":"1.5.0","description":"Sets a new action for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"type","description":"The type of the automod rule action","rest":false,"required":true,"type":"Enum","enum":["BlockMessage","SendAlertMessage","Timeout","BlockMemberInteraction"],"enumName":"AutoModerationActionType"},{"name":"channel ID","description":"The channel to which content will be logged","rest":false,"type":"Channel"},{"name":"duration","description":"The timeout duration in seconds","rest":false,"type":"Number"},{"name":"message","description":"The custom message that is shown whenever a message is blocked","rest":false,"type":"String"}],"category":"automod"},{"name":"$setAutomodAllowList","version":"1.5.0","description":"Sets allowed words for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"words","description":"The words to allow and whitelist","rest":true,"required":true,"type":"String"}],"category":"automod"},{"name":"$setAutomodExemptChannels","version":"1.5.0","description":"Sets exempt channels for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"channels","description":"The channels that should not be affected by the automod rule","rest":true,"required":true,"type":"String"}],"category":"automod"},{"name":"$setAutomodExemptRoles","version":"1.5.0","description":"Sets exempt roles for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"roles","description":"The roles that should not be affected by the automod rule","rest":true,"required":true,"type":"String"}],"category":"automod"},{"name":"$setAutomodKeywordFilter","version":"1.5.0","description":"Sets disallowed words for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"words","description":"The words to disallow and blacklist","rest":true,"required":true,"type":"String"}],"category":"automod"},{"name":"$setAutomodMentionRaidProtection","version":"1.5.0","description":"Sets mention raid protection for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"enabled","description":"Whether to enable mention raid protection","rest":false,"required":true,"type":"Boolean"}],"category":"automod"},{"name":"$setAutomodMentionTotalLimit","version":"1.5.0","description":"Sets a total mention limit for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"limit","description":"The limit of mentions to set","rest":false,"required":true,"type":"Number"}],"category":"automod"},{"name":"$setAutomodPresets","version":"1.5.0","description":"Sets preset keyword wordsets for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"presets","description":"The preset keyword types to set","rest":true,"required":true,"type":"Enum","enum":["Profanity","SexualContent","Slurs"],"enumName":"AutoModerationRuleKeywordPresetType"}],"category":"automod"},{"name":"$setAutomodRegexFilter","version":"1.5.0","description":"Sets regex filter for current automod rule","unwrap":true,"brackets":true,"args":[{"name":"regexes","description":"The regexes to use for filtering","rest":true,"required":true,"type":"String"}],"category":"automod"},{"name":"$applicationCommandCount","version":"1.4.0","aliases":["$slashCommandCount"],"description":"Returns the amount of application commands registered by this bot","output":["Number"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get application command count from","rest":false,"type":"Guild"},{"name":"count sub","description":"Whether to count sub commands","rest":false,"type":"Boolean"}],"category":"bot"},{"name":"$applicationCommands","version":"1.5.0","description":"Returns all application commands","output":["Json"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get application commands from","rest":false,"required":true,"type":"Guild"}],"category":"bot"},{"name":"$botCount","version":"1.0.0","description":"Returns the bot count of the bot","unwrap":false,"output":["Number"],"category":"bot"},{"name":"$botCustomInvite","version":"1.5.0","description":"Returns the client's custom invite link","unwrap":false,"aliases":["$clientCustomInvite"],"output":["URL"],"category":"bot"},{"name":"$botDescription","version":"1.5.0","aliases":["$clientDescription"],"description":"Returns the description of the bot","unwrap":false,"output":["String"],"category":"bot"},{"name":"$botDestroy","version":"1.0.0","aliases":["$clientDestroy"],"description":"Destroys the discord.js client","unwrap":false,"category":"bot"},{"name":"$botID","version":"1.0.0","description":"Returns the client's id","unwrap":false,"aliases":["$clientID"],"output":["User"],"category":"bot"},{"name":"$botInvite","version":"1.0.0","description":"Returns a bot's invite link","brackets":false,"unwrap":true,"aliases":["$clientInvite","$getBotInvite"],"args":[{"name":"perms","description":"The perms for the invite link","rest":true,"type":"String","required":true}],"output":["URL"],"category":"bot"},{"name":"$botMutualGuilds","version":"1.5.0","aliases":["$clientMutualGuilds"],"description":"Returns the client's mutual guilds with a user","unwrap":true,"args":[{"name":"user ID","description":"The user to get mutual guilds from","rest":false,"required":true,"type":"User"},{"name":"separator","description":"The separator to use for every guild","rest":false,"type":"String"}],"brackets":false,"output":["Guild[]"],"category":"bot"},{"name":"$botOwnerID","version":"1.0.0","description":"Returns the bot's owner id or team members","brackets":false,"aliases":["$clientOwnerID"],"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"}],"output":["User[]"],"unwrap":true,"category":"bot"},{"name":"$botTags","version":"1.5.0","description":"Returns the client tags","unwrap":true,"aliases":["$clientTags"],"args":[{"name":"separator","description":"The separator to use for every tag","rest":false,"type":"String"}],"brackets":false,"output":["String[]"],"category":"bot"},{"name":"$botTeamCreatedAt","version":"2.4.0","description":"Returns the client's team creation timestamp","aliases":["$clientTeamCreatedAt"],"unwrap":false,"output":["Number"],"category":"bot"},{"name":"$botTeamID","version":"2.4.0","description":"Returns the client's team id","aliases":["$clientTeamID"],"unwrap":false,"output":["String"],"category":"bot"},{"name":"$botTeamIcon","version":"2.4.0","description":"Returns the client's team icon","aliases":["$clientTeamIcon"],"unwrap":true,"brackets":false,"args":[{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"output":["URL"],"category":"bot"},{"name":"$botTeamMembers","version":"2.4.0","description":"Returns the client's team members","aliases":["$clientTeamMembers"],"unwrap":true,"brackets":false,"args":[{"name":"property","description":"The property of each team member to return","rest":false,"required":true,"type":"Enum","enum":["id","role","membership"],"enumName":"TeamMemberProperty"},{"name":"separator","description":"The separator to use for every property","rest":false,"type":"String"}],"output":["Unknown[]"],"category":"bot"},{"name":"$botTeamName","version":"2.4.0","description":"Returns the client's team name","aliases":["$clientTeamName"],"unwrap":false,"output":["String"],"category":"bot"},{"name":"$botToken","version":"1.0.0","description":"Returns the client token","unwrap":false,"aliases":["$clientToken"],"output":["String"],"category":"bot"},{"name":"$botUserAuthorizationCount","version":"2.4.0","aliases":["$clientUserAuthorizationCount"],"description":"Returns the user authorization count of the bot","unwrap":false,"output":["Number"],"category":"bot"},{"name":"$botUserInstallCount","version":"1.5.0","aliases":["$clientUserInstallCount"],"description":"Returns the user install count of the bot","unwrap":false,"output":["Number"],"category":"bot"},{"name":"$botWebhookEvents","version":"2.2.0","description":"Returns the client webhook event types","aliases":["$clientWebhookEvents"],"unwrap":true,"brackets":false,"args":[{"name":"separator","description":"The separator to use for every type","rest":false,"type":"String"}],"output":["ApplicationWebhookEventType[]"],"category":"bot"},{"name":"$botWebhookStatus","version":"2.2.0","description":"Returns the client webhook event status","unwrap":false,"aliases":["$clientWebhookStatus"],"output":["ApplicationWebhookEventStatus"],"category":"bot"},{"name":"$botWebhookURL","version":"2.2.0","description":"Returns the client webhook event url","unwrap":false,"aliases":["$clientWebhookURL"],"output":["URL"],"category":"bot"},{"name":"$deleteGlobalApplicationCommands","version":"2.3.0","description":"Deletes all global commands of your bot","unwrap":false,"output":["Boolean"],"category":"bot"},{"name":"$extensionVersion","version":"1.4.0","brackets":true,"unwrap":true,"description":"Returns the version an extension is running on","output":["String"],"args":[{"name":"name","description":"The extension name to retrieve its version","rest":false,"required":true,"type":"String"}],"category":"bot"},{"name":"$hasExtension","version":"1.2.0","description":"Checks whether client has an extension","unwrap":true,"brackets":true,"args":[{"name":"name","description":"The extension name to check for","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"bot"},{"name":"$ping","version":"1.0.0","description":"The current bot ping","unwrap":false,"aliases":["$clientPing","$botPing"],"output":["Number"],"category":"bot"},{"name":"$setBotAvatar","version":"1.0.0","description":"Sets the bot profile icon","brackets":true,"unwrap":true,"aliases":["$setClientAvatar"],"args":[{"name":"url","description":"The icon url","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"bot"},{"name":"$setBotBanner","version":"1.5.0","description":"Sets the bot banner","brackets":true,"unwrap":true,"aliases":["$setClientBanner"],"args":[{"name":"url","description":"The banner url","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"bot"},{"name":"$setBotDescription","version":"1.5.0","description":"Sets the bot description","aliases":["$setClientDescription"],"brackets":true,"unwrap":true,"args":[{"name":"description","description":"The new description","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"bot"},{"name":"$setBotName","version":"1.0.0","description":"Sets the bot name","brackets":true,"unwrap":true,"aliases":["$setClientName"],"args":[{"name":"name","description":"The new name","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"bot"},{"name":"$setBotTags","version":"1.5.0","description":"Sets the bot tags","aliases":["$setClientTags"],"brackets":true,"unwrap":true,"args":[{"name":"tags","description":"The new tags","rest":true,"required":true,"type":"String"}],"output":["Boolean"],"category":"bot"},{"name":"$setStatus","version":"1.0.0","description":"Sets the client's status","unwrap":true,"aliases":["$setBotStatus","$setClientStatus"],"args":[{"name":"presence","description":"The presence status","type":"String","rest":false,"required":true},{"name":"type","description":"The activity type","rest":false,"type":"Enum","enum":["Playing","Streaming","Listening","Watching","Custom","Competing"],"required":true,"enumName":"ActivityType"},{"name":"name","description":"The status name","rest":false,"type":"String","required":true},{"name":"state","description":"The status state","rest":false,"type":"String"},{"name":"url","description":"The url to use for the stream","rest":false,"type":"String"}],"brackets":true,"category":"bot"},{"name":"$shardCount","version":"2.1.0","aliases":["$botShardCount","$clientShardCount"],"description":"Returns the shard count of the client","unwrap":false,"output":["Number"],"category":"bot"},{"name":"$shardID","version":"1.0.0","aliases":["$botShardIDs","$clientShardIDs"],"description":"Returns the shard id of the client","unwrap":true,"brackets":false,"args":[{"name":"separator","description":"The separator to use for every id","rest":false,"type":"String"}],"output":["Number"],"category":"bot"},{"name":"$shardStatus","version":"2.1.0","aliases":["$botShardStatus","$clientShardStatus"],"description":"Returns the shard status of the client","unwrap":true,"brackets":false,"args":[{"name":"separator","description":"The separator to use for every status","rest":false,"type":"String"}],"output":["Status[]"],"category":"bot"},{"name":"$updateApplicationCommands","version":"1.2.0","description":"Updates application commands, also registers new ones","unwrap":false,"category":"bot"},{"name":"$updateCommands","version":"1.0.2","description":"Updates bot commands, also registers new ones","unwrap":false,"category":"bot"},{"name":"$uptime","version":"1.0.0","aliases":["$botUptime","$clientUptime"],"output":["Number"],"description":"Returns the bots uptime","unwrap":false,"category":"bot"},{"name":"$version","version":"1.0.0","description":"Returns the package version the client is using","unwrap":false,"output":["String"],"aliases":["$packageVersion"],"category":"bot"},{"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[]","rest":false,"required":true,"type":"String"},{"name":"bytes","description":"The number of bytes to alloc","type":"Number","rest":false,"required":true}],"category":"buffer"},{"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[]","rest":false,"required":true,"type":"String"},{"name":"bytes","description":"The number of bytes to alloc","type":"Number","rest":false,"required":true}],"category":"buffer"},{"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}],"output":["Number"],"category":"buffer"},{"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}],"output":["Number"],"category":"buffer"},{"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}],"output":["String"],"category":"buffer"},{"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}],"category":"buffer"},{"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}],"output":["String"],"category":"buffer"},{"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}],"category":"buffer"},{"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}],"category":"buffer"},{"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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps","PinMessages"],"enumName":"PermissionFlagsBits"}],"output":["Boolean"],"category":"channel"},{"name":"$addPostTags","version":"1.5.0","description":"Adds tags to a forum post, returns bool","unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","rest":false,"required":true,"type":"Channel","description":"The post to edit tags on"},{"name":"reason","description":"The reason for adding post tags","rest":false,"type":"String"},{"name":"tags","description":"The tags for the post","rest":true,"required":true,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$addThreadMember","version":"1.0.0","description":"Adds a member to a thread, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"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"}],"category":"channel"},{"name":"$archiveThread","version":"1.0.0","aliases":["$archivePost"],"description":"Archives a thread, returns bool","brackets":false,"unwrap":true,"output":["Boolean"],"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"}],"category":"channel"},{"name":"$channelBitrate","version":"1.4.0","description":"Returns the bitrate of the voice channel","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelCategoryID","version":"1.0.0","description":"Returns the channel category id","aliases":["$channelParentID"],"unwrap":true,"brackets":false,"output":["Channel"],"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelChildrenCount","version":"1.0.3","description":"Returns the amount of children this category has","brackets":false,"output":["Number"],"unwrap":true,"args":[{"name":"channel ID","description":"The category to get its child count","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelChildrenIDs","version":"1.0.3","description":"Returns the children ids this category has","brackets":false,"output":["Channel[]"],"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"}],"category":"channel"},{"name":"$channelCount","version":"1.0.0","description":"Returns the channel count of all servers","brackets":false,"unwrap":true,"output":["Number"],"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","enumName":"ChannelType"}],"category":"channel"},{"name":"$channelCreatedAt","version":"1.0.0","description":"Returns the channel timestamp","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelDeletable","version":"2.4.0","description":"Returns whether the channel is deletable","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"output":["Boolean"],"category":"channel"},{"name":"$channelExists","version":"1.0.0","description":"Returns whether a channel id exists","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to check","rest":false,"required":true,"type":"String"}],"category":"channel"},{"name":"$channelFlags","version":"1.5.0","description":"Returns the flags of a channel","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true},{"name":"separator","description":"The separator to use for every flag","type":"String","required":false,"rest":false}],"output":["ChannelFlags[]"],"category":"channel"},{"name":"$channelFull","version":"1.4.0","description":"Returns whether the voice channel is full","unwrap":true,"brackets":false,"output":["Boolean"],"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelGuildID","version":"1.0.0","description":"Returns the channel guild id","unwrap":true,"output":["Guild"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelHasAnyPerms","version":"1.4.0","aliases":["$channelHasAnyPerm"],"description":"Returns whether role or member has any of the perms in a channel","output":["Boolean"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or user to get perms of","rest":false,"required":true,"type":"String"},{"name":"permissions","description":"The perms to check for","rest":true,"required":true,"type":"Enum","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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps","PinMessages"],"enumName":"PermissionFlagsBits"}],"brackets":true,"category":"channel"},{"name":"$channelHasPerms","version":"1.4.0","description":"Returns whether role or member has perms in a channel","output":["Boolean"],"aliases":["$hasChannelPerm","$hasChannelPerms"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or user to get perms of","rest":false,"required":true,"type":"String"},{"name":"permissions","description":"The perms to check for","rest":true,"required":true,"type":"Enum","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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps","PinMessages"],"enumName":"PermissionFlagsBits"}],"brackets":true,"category":"channel"},{"name":"$channelID","version":"1.0.0","description":"Gets the channel id of a channel name","unwrap":true,"output":["Channel"],"brackets":false,"args":[{"name":"name","description":"The channel name to get its id","required":true,"rest":true,"type":"String"}],"category":"channel"},{"name":"$channelIDs","version":"1.3.0","unwrap":true,"brackets":false,"output":["Channel[]"],"description":"Returns every channel id","args":[{"name":"separator","description":"The separator to use for every channel","rest":false,"type":"String"}],"category":"channel"},{"name":"$channelIsChildrenOf","version":"1.5.0","aliases":["$isChildrenOf"],"description":"Checks whether given channel is a children of a category","output":["Boolean"],"brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to know if is children of category","rest":false,"type":"Channel","required":true},{"name":"category ID","description":"The category to check against","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelJoinable","version":"1.4.0","description":"Returns whether the voice channel is joinable by the bot","unwrap":true,"output":["Boolean"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelManageable","version":"2.4.0","description":"Returns whether the channel is manageable","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"output":["Boolean"],"category":"channel"},{"name":"$channelMembers","version":"1.5.0","description":"Returns the members of a channel","unwrap":true,"output":["Member[]"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel to get its members","rest":false,"required":true,"type":"Channel"},{"name":"separator","description":"The separator to use for each member","rest":false,"type":"String"}],"category":"channel"},{"name":"$channelNSFW","version":"1.0.0","description":"Returns whether the channel is nsfw","unwrap":true,"brackets":false,"output":["Boolean"],"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelName","version":"1.0.0","description":"Returns the channel name","unwrap":true,"output":["String"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelNames","version":"1.0.0","description":"Returns the channel names of a guild","brackets":false,"output":["String[]"],"args":[{"name":"guild ID","description":"The guild to return the channels of","rest":false,"type":"Guild","required":true},{"name":"separator","description":"The separator to use for each channel","rest":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$channelPermissions","version":"1.5.0","description":"Returns all permission overwrites of a channel","aliases":["$channelPerms","$channelOverwrites"],"unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to get perms from","rest":false,"required":true,"type":"Channel"},{"name":"property","description":"The property of the overwrites to return","rest":false,"required":true,"type":"Enum","enum":["id","type","allow","deny"],"enumName":"PermissionOverwritesProperty"},{"name":"separator","description":"The separator to use for every overwrite","rest":false,"type":"String"}],"output":["Unknown[]"],"category":"channel"},{"name":"$channelPermissionsFor","version":"1.4.0","description":"Returns permissions for a role or member in a channel","aliases":["$channelPermsFor","$memberChannelPerms","$roleChannelPerms"],"output":["PermissionFlagsBits[]"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or user to get perms for","rest":false,"required":true,"type":"String"},{"name":"separator","description":"The separator to use for every perm","rest":false,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$channelPermissionsOf","version":"1.5.0","description":"Returns specific permissions of a role or member in a channel","aliases":["$channelPermsOf"],"output":["PermissionFlagsBits[]"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or user to get perms of","rest":false,"required":true,"type":"String"},{"name":"state","description":"The state of the perms to return","rest":false,"required":true,"type":"Enum","enum":["allow","deny"],"enumName":"PermissionsStateType"},{"name":"separator","description":"The separator to use for every perm","rest":false,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$channelPinnedMessages","version":"1.5.0","description":"Returns the pinned messages of a channel","brackets":false,"aliases":["$pinnedMessages"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to pull pinned messages from","rest":false,"required":true,"type":"Channel"},{"name":"separator","description":"The separator to use for each message id","rest":false,"type":"String"}],"output":["Message[]"],"category":"channel"},{"name":"$channelPosition","version":"1.0.3","description":"Returns the channel position","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"channel ID","description":"The id of the channel to get its position","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelRawData","version":"1.5.0","description":"Returns the raw data of a channel","unwrap":true,"brackets":false,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get raw data from","type":"Channel"}],"output":["Json"],"category":"channel"},{"name":"$channelSlowmode","version":"1.5.0","description":"Returns the channel slowmode in seconds","unwrap":true,"output":["Number"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel to get its slowmode","rest":false,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$channelTags","version":"1.0.3","description":"Retrieves tags from a forum thread","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to get tags of","rest":false,"required":true,"type":"Channel"},{"name":"separator","description":"The separator to use for every tag","rest":false,"type":"String"}],"output":["ForumTag[]"],"category":"channel"},{"name":"$channelThreadIDs","version":"2.5.0","description":"Returns the thread ids of a channel","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get its threads","rest":false,"type":"Channel","required":true},{"name":"separator","description":"The separator to use for every thread","rest":false,"type":"String"}],"output":["Channel[]"],"category":"channel"},{"name":"$channelTopic","version":"1.0.0","description":"Returns the channel topic","unwrap":true,"output":["String"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelType","version":"1.0.0","description":"Returns the channel type","unwrap":true,"output":["ChannelType"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelURL","version":"2.4.0","description":"Returns the url of a channel","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"output":["URL"],"category":"channel"},{"name":"$channelUserLimit","version":"1.4.0","description":"Returns the user limit of the voice channel","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelVoiceMemberCount","version":"1.4.0","description":"Returns the member count that are connected to this voice channel","unwrap":true,"aliases":["$channelMemberCount"],"output":["Number"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true}],"category":"channel"},{"name":"$channelVoiceMemberIDs","version":"1.4.0","description":"Returns the members that are connected to this voice channel","unwrap":true,"aliases":["$channelMemberIDs"],"output":["Member[]"],"brackets":false,"args":[{"name":"channel ID","description":"The id of the channel","rest":false,"type":"Channel","required":true},{"name":"separator","rest":false,"description":"Separator to use for every id","required":false,"type":"String"}],"category":"channel"},{"name":"$channelVoiceRegion","version":"1.5.0","description":"Returns the region of a voice channel","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to get its region","rest":false,"required":true,"type":"Channel"}],"output":["VoiceRegionType"],"category":"channel"},{"name":"$channelWebhooks","version":"2.3.0","description":"Returns all webhooks of a channel","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get its webhooks","rest":false,"type":"Channel","required":true},{"name":"property","description":"The property to return","rest":false,"type":"Enum","enum":["id","name","type","avatar","ownerID","channelID","guildID","sourceChannelID","sourceGuildID","timestamp","token","url"],"enumName":"WebhookProperty"},{"name":"separator","description":"The separator to use for every property","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"channel"},{"name":"$clearChannelPerms","version":"1.0.3","description":"Deletes all permission overwrites from the channel or given id, returns bool","brackets":true,"output":["Boolean"],"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":false,"type":"String"}],"category":"channel"},{"name":"$clearMessages","version":"1.0.0","description":"Clears x amount of messages from a channel, returns the number of messages deleted","unwrap":true,"output":["Number"],"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":"delete pinned","description":"Whether to delete pinned messages","rest":false,"type":"Boolean"},{"name":"delete bots","description":"Whether to delete messages of bots","rest":false,"type":"Boolean"}],"category":"channel"},{"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,"output":["Number"],"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":"delete pinned","description":"Whether to delete pinned messages","rest":false,"type":"Boolean"}],"category":"channel"},{"name":"$cloneChannel","version":"1.4.0","description":"Clones the given channel","brackets":true,"output":["Channel"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to clone","type":"Channel","rest":false,"required":true},{"name":"name","description":"The name for the cloned channel","type":"String","rest":false}],"category":"channel"},{"name":"$cloneChannelPerms","version":"1.5.0","description":"Clones the given channel's perms to another channel, returns bool","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to clone its perms","type":"Channel","rest":false,"required":true},{"name":"channel ID","description":"The other channel to set new perms for","type":"Channel","rest":false,"required":true}],"output":["Boolean"],"category":"channel"},{"name":"$createChannel","version":"1.0.0","description":"Creates a channel in a guild, returns the channel id","unwrap":true,"brackets":true,"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to create this channel on","rest":false,"required":true,"type":"Guild"},{"name":"name","description":"The name for the channel","rest":false,"required":true,"type":"String"},{"name":"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,"enumName":"ChannelType"},{"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":"Channel","pointer":0}],"category":"channel"},{"name":"$createForumPost","version":"1.0.0","description":"Creates a forum post, returns the post channel id","unwrap":true,"output":["Channel"],"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,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$createForumTag","version":"2.5.0","description":"Creates a forum tag, returns tag id","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The forum to create tag on","rest":false,"required":true,"type":"Channel"},{"name":"name","description":"The name for the tag","rest":false,"required":true,"type":"String"},{"name":"emoji","description":"The emoji for the tag","rest":false,"type":"String"},{"name":"moderated","description":"Whether the tag can only be applied by mods","rest":false,"type":"Boolean"}],"output":["ForumTag"],"category":"channel"},{"name":"$createInvite","version":"1.1.0","brackets":true,"description":"Creates an invite, returns the invite code","unwrap":true,"output":["Invite"],"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":"max age","description":"The max age for this invite","rest":false,"type":"Number"},{"name":"reason","description":"The reason for creating this invite","rest":false,"type":"String"}],"category":"channel"},{"name":"$createStageInstance","version":"2.3.0","description":"Creates a new stage instance, returns instance id","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to create stage instance on","rest":false,"required":true,"type":"Channel"},{"name":"topic","description":"The topic of the stage instance","rest":false,"required":true,"type":"String"},{"name":"privacy level","description":"The privacy level of the stage instance","rest":false,"type":"Enum","enum":["Public","GuildOnly"],"enumName":"StageInstancePrivacyLevel"},{"name":"notify","description":"Whether to notify @everyone that the stage instance has started","rest":false,"type":"Boolean"},{"name":"event ID","description":"The scheduled event associated with the stage instance","rest":false,"type":"ScheduledEvent","pointer":0,"pointerProperty":"guild"}],"output":["StageInstance"],"category":"channel"},{"name":"$createThread","version":"1.0.3","description":"Creates a thread, returns thread channel id on success","unwrap":true,"output":["Channel"],"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":"message ID","description":"The message to start thread for","rest":false,"pointer":0,"type":"Message"},{"name":"private","description":"Whether this thread is private","rest":false,"type":"Boolean"},{"name":"reason","description":"The reason for creating thread","rest":false,"type":"String"}],"category":"channel"},{"name":"$deleteChannelPerms","version":"1.0.3","description":"Deletes some permission overwrites from a channel, returns bool","brackets":true,"output":["Boolean"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to clear perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or member id to clear these perms for","rest":false,"required":true,"type":"String"},{"name":"perms","description":"The perms to clear from 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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps","PinMessages"],"enumName":"PermissionFlagsBits"}],"category":"channel"},{"name":"$deleteChannels","version":"1.0.5","description":"Deletes given channels, returns the count of channels deleted","aliases":["$deleteChannel"],"brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"channels","description":"The channels to delete","rest":true,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$deleteForumTags","version":"2.5.0","description":"Deletes tags from a forum, returns bool","aliases":["$deleteForumTag"],"unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The forum to delete tags from","rest":false,"required":true,"type":"Channel"},{"name":"tags","description":"The tags to delete","rest":true,"required":true,"type":"ForumTag","pointer":0}],"output":["Boolean"],"category":"channel"},{"name":"$deleteStageInstance","version":"2.3.0","description":"Deletes a stage instance, returns bool","unwrap":true,"brackets":true,"args":[{"name":"stage ID","description":"The stage instance to delete","rest":false,"required":true,"type":"StageInstance"}],"output":["Boolean"],"category":"channel"},{"name":"$deleteThread","version":"1.5.0","description":"Deletes a thread, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The thread to delete","rest":false,"required":true,"type":"Channel"},{"name":"reason","description":"The reason to delete this thread","rest":false,"type":"String"}],"category":"channel"},{"name":"$dmChannelID","version":"1.0.0","description":"Returns the dm channel id of a user","brackets":false,"output":["Channel"],"unwrap":true,"args":[{"name":"user ID","description":"User to get the dm channel","rest":false,"required":true,"type":"User"}],"category":"channel"},{"name":"$editForumTag","version":"2.5.0","description":"Edits an existing forum tag, returns bool","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The forum to edit tag on","rest":false,"required":true,"type":"Channel"},{"name":"tag ID","description":"The tag to edit","rest":false,"required":true,"type":"ForumTag","pointer":0},{"name":"name","description":"The new name for the tag","rest":false,"type":"String"},{"name":"emoji","description":"The new emoji for the tag","rest":false,"type":"String"},{"name":"moderated","description":"Whether the tag can only be applied by mods","rest":false,"type":"Boolean"}],"output":["Boolean"],"category":"channel"},{"name":"$editStageInstance","version":"2.3.0","description":"Edits a stage instance, returns bool","unwrap":true,"brackets":true,"args":[{"name":"stage ID","description":"The stage instance to edit","rest":false,"required":true,"type":"StageInstance"},{"name":"topic","description":"The new topic of the stage instance","rest":false,"type":"String"},{"name":"privacy level","description":"The new privacy level of the stage instance","rest":false,"type":"Enum","enum":["Public","GuildOnly"],"enumName":"StageInstancePrivacyLevel"}],"output":["Boolean"],"category":"channel"},{"name":"$fetchChannels","version":"2.2.0","description":"Caches all channels of a guild","aliases":["$fetchChannel"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to cache channels of","rest":false,"required":true,"type":"Guild"},{"name":"channel ID","description":"The channel to fetch","rest":false,"type":"Channel","pointer":0}],"category":"channel"},{"name":"$fetchThreads","version":"2.5.0","description":"Caches all threads of a channel","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to cache its threads","rest":false,"type":"Channel","required":true},{"name":"archived","description":"Whether to cache archived threads, otherwise active","rest":false,"type":"Boolean"},{"name":"private","description":"Whether to cache archived private threads, otherwise public","rest":false,"type":"Boolean"}],"category":"channel"},{"name":"$firstMessageID","version":"1.5.0","description":"Returns the first message sent in a channel","brackets":false,"aliases":["$channelFirstMessageID"],"unwrap":true,"output":["Message"],"args":[{"name":"channel ID","description":"The channel to pull first message from","rest":false,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$followChannel","version":"2.3.0","description":"Follows given announcement channel, returns webhook id","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to follow","type":"Channel","rest":false,"required":true},{"name":"channel ID","description":"The channel to crosspost messages in","type":"Channel","rest":false,"required":true},{"name":"reason","description":"The reason for following the channel","type":"String","rest":false}],"output":["Webhook"],"category":"channel"},{"name":"$forumDefaultLayout","version":"2.2.0","description":"Returns the default layout of a forum","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to get default layout from","rest":false,"type":"Channel","required":true}],"output":["ForumLayoutType"],"category":"channel"},{"name":"$forumDefaultReactionEmoji","version":"2.2.0","description":"Returns the default reaction emoji of a forum","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to get default reaction emoji from","rest":false,"type":"Channel","required":true}],"output":["String"],"category":"channel"},{"name":"$forumDefaultSortOrder","version":"2.2.0","description":"Returns the default sort order of a forum","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to get default sort order from","rest":false,"type":"Channel","required":true}],"output":["SortOrderType"],"category":"channel"},{"name":"$forumDefaultThreadArchiveDuration","version":"2.2.0","description":"Returns the default auto archive duration for threads of a forum","aliases":["$forumDefaultThreadAutoArchiveDuration"],"unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to get default sort order from","rest":false,"type":"Channel","required":true}],"output":["ThreadAutoArchiveDuration"],"category":"channel"},{"name":"$forumDefaultThreadSlowmode","version":"2.2.0","description":"Returns the default slowmode for threads of a forum","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to get default slowmode from","rest":false,"type":"Channel","required":true}],"output":["Number"],"category":"channel"},{"name":"$forumTags","version":"1.5.0","description":"Returns all available tags of a forum","unwrap":true,"output":["Json","Unknown[]"],"args":[{"name":"channel ID","description":"The channel to get tags of","rest":false,"type":"Channel","required":true},{"name":"property","description":"The property to return for every tag","rest":false,"type":"Enum","enum":["emoji","id","moderated","name"],"enumName":"ForumTagProperty"},{"name":"separator","description":"The separator to use for every tag property","rest":false,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$getStageInstance","version":"2.3.0","description":"Returns a stage instance of a guild","unwrap":true,"brackets":true,"args":[{"name":"stage ID","description":"The stage instance to get","rest":false,"required":true,"type":"StageInstance"},{"name":"property","description":"The property of the stage instance to return","rest":false,"type":"Enum","enum":["channelID","id","topic","timestamp","guildID","privacyLevel","eventId"],"enumName":"StageProperty"}],"output":["Json","Unknown"],"category":"channel"},{"name":"$getThreadMembers","version":"1.0.0","description":"Gets thread members","brackets":true,"output":["Member[]"],"unwrap":true,"args":[{"name":"channel ID","description":"The thread to pull members from","rest":false,"required":true,"type":"Channel"},{"name":"separator","description":"The separator for every id","rest":false,"type":"String"}],"category":"channel"},{"name":"$guildChannelID","version":"1.4.0","description":"Gets the guild channel id of a channel name","unwrap":true,"output":["Channel"],"brackets":false,"args":[{"name":"guild ID","description":"The guild to use","rest":false,"required":true,"type":"Guild"},{"name":"name","description":"The channel name to get its id","required":true,"rest":false,"type":"String"}],"category":"channel"},{"name":"$lastMessageID","version":"1.2.0","brackets":false,"aliases":["$channelLastMessageID"],"unwrap":true,"output":["Message"],"description":"Returns the latest message sent in a channel","args":[{"name":"channel ID","description":"The channel to pull last message from","rest":false,"required":true,"type":"Channel"},{"name":"user ID","description":"The user id to get its last message sent","rest":false,"required":false,"type":"User"}],"category":"channel"},{"name":"$lastPinTimestamp","version":"1.5.0","aliases":["$channelLastPinTimestamp"],"unwrap":true,"brackets":false,"output":["Number"],"description":"Returns the latest pin timestamp of a channel","args":[{"name":"channel ID","description":"The channel to pull last pin from","rest":false,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$lockThread","version":"1.5.0","aliases":["$lockPost"],"description":"Locks a thread, returns bool","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The thread to lock","rest":false,"required":true,"type":"Channel"},{"name":"reason","description":"The reason to lock this thread","rest":false,"type":"String"}],"category":"channel"},{"name":"$modifyChannelPerms","version":"1.4.0","description":"Modifies given channel perms for a role or user","aliases":["$editChannelPerms"],"unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","rest":false,"required":true,"type":"Channel","description":"The channel to modify perms for"},{"name":"roleOrUser","description":"The role or user to modify perms for","rest":false,"required":true,"pointer":0,"pointerProperty":"guild","type":"RoleOrUser"},{"name":"perms","rest":true,"required":true,"type":"OverwritePermission","description":"The permissions to allow, nullify or disallow, (+,/,-)Perm","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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps","PinMessages"],"enumName":"PermissionFlagsBits"}],"category":"channel"},{"name":"$modifyPostTags","version":"1.5.0","aliases":["$editPostTags"],"description":"Modifies tags of a forum post, returns bool","unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","rest":false,"required":true,"type":"Channel","description":"The post to edit tags on"},{"name":"reason","description":"The reason for modifying post tags","rest":false,"type":"String"},{"name":"tags","description":"The tags for the post","rest":true,"required":true,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$randomChannelID","version":"1.0.3","description":"Returns a random channel ID","unwrap":true,"brackets":false,"args":[{"name":"types","description":"The channel types to get an id from","type":"Enum","rest":true,"required":true,"enum":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"enumName":"ChannelType"}],"output":["Channel"],"category":"channel"},{"name":"$randomGuildChannelID","version":"1.0.3","description":"Returns a random channel ID of a guild","unwrap":true,"brackets":false,"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to get channel from","rest":false,"required":true,"type":"Guild"},{"name":"types","description":"The channel types to get an id from","type":"Enum","rest":true,"required":false,"enum":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"enumName":"ChannelType"}],"category":"channel"},{"name":"$removeChannelPerms","version":"1.0.3","description":"Removes permission overwrites from a channel, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to remove perms from","rest":false,"required":true,"type":"Channel"},{"name":"id","description":"The role or member id to remove these perms from","rest":false,"required":true,"type":"String"},{"name":"perms","description":"The perms to remove from 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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps","PinMessages"],"enumName":"PermissionFlagsBits"}],"category":"channel"},{"name":"$removeThreadMember","version":"1.0.0","description":"Removes a member from a thread, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"channel ID","description":"The thread to remove member from","rest":false,"required":true,"type":"Channel"},{"name":"user ID","pointer":0,"description":"The member to remove","rest":false,"required":true,"type":"Member"}],"category":"channel"},{"name":"$sendMessage","aliases":["$channelSendMessage"],"version":"1.0.0","description":"Sends a message to a channel","unwrap":true,"output":["Message"],"args":[{"name":"channel ID","description":"The channel to send this message to","required":true,"type":"Channel","rest":false},{"name":"content","description":"The content for the message","type":"String","rest":false},{"name":"return message ID","description":"Whether to return the message id of the newly sent message","rest":false,"type":"Boolean"}],"brackets":true,"category":"channel"},{"name":"$setChannelArchiveDuration","version":"1.5.0","description":"Modifies a channel's archive duration","unwrap":true,"output":["Boolean"],"brackets":true,"args":[{"name":"channel ID","type":"Channel","description":"The channel to modify","rest":false,"required":true},{"name":"duration","description":"The new duration of archive","type":"Enum","enum":["OneHour","OneDay","ThreeDays","OneWeek"],"rest":false,"required":true,"enumName":"ThreadAutoArchiveDuration"},{"name":"reason","description":"The reason for modifying archive duration","rest":false,"type":"String"}],"category":"channel"},{"name":"$setChannelCategory","version":"1.5.0","aliases":["$setChannelParent"],"description":"Sets a channel's category, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to set its category","rest":false,"type":"Channel","required":true},{"name":"category ID","description":"The category to set","rest":false,"type":"Channel"}],"category":"channel"},{"name":"$setChannelNSFW","version":"1.0.0","description":"Sets a channel nsfw state, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to set its nsfw state","rest":false,"type":"Channel","required":true},{"name":"state","description":"The state to set","rest":false,"type":"Boolean"}],"category":"channel"},{"name":"$setChannelName","version":"1.0.0","description":"Sets a channel name, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to set its name","rest":false,"type":"Channel","required":true},{"name":"name","description":"The name to set","rest":false,"required":true,"type":"String"}],"category":"channel"},{"name":"$setChannelSlowmode","version":"1.0.0","description":"Sets a channel slowmode, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to set its nsfw state","rest":false,"type":"Channel","required":true},{"name":"seconds","description":"The number of seconds per message","rest":false,"type":"Number"}],"category":"channel"},{"name":"$setChannelTopic","version":"1.0.0","description":"Sets a channel topic, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to set its topic","rest":false,"type":"Channel","required":true},{"name":"topic","description":"The topic to set","rest":false,"type":"String"}],"category":"channel"},{"name":"$setDefaultForumLayout","version":"2.2.0","description":"Sets a forum's default layout of posts","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The forum to modify","rest":false,"required":true,"type":"Channel"},{"name":"layout","description":"The new default layout","rest":false,"required":true,"type":"Enum","enum":["NotSet","ListView","GalleryView"],"enumName":"ForumLayoutType"},{"name":"reason","description":"The reason for modifying default layout","rest":false,"type":"String"}],"output":["Boolean"],"category":"channel"},{"name":"$setDefaultReactionEmoji","version":"2.2.0","description":"Sets a forum's default reaction emoji for posts","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The forum to modify","rest":false,"required":true,"type":"Channel"},{"name":"emoji","description":"The new default reaction emoji","rest":false,"type":"String"},{"name":"reason","description":"The reason for modifying default emoji","rest":false,"type":"String"}],"output":["Boolean"],"category":"channel"},{"name":"$setDefaultSortOrder","version":"2.2.0","description":"Sets a forum's default sort order of posts","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The forum to modify","rest":false,"required":true,"type":"Channel"},{"name":"layout","description":"The new default sort order, leave empty to reset","rest":false,"type":"Enum","enum":["LatestActivity","CreationDate"],"enumName":"SortOrderType"},{"name":"reason","description":"The reason for modifying default sort order","rest":false,"type":"String"}],"output":["Boolean"],"category":"channel"},{"name":"$setDefaultThreadArchiveDuration","version":"1.5.0","description":"Sets a forum's default auto archive duration of posts","unwrap":true,"output":["Boolean"],"aliases":["$setDefaultThreadAutoArchiveDuration"],"brackets":true,"args":[{"name":"channel ID","description":"The forum to modify","type":"Channel","rest":false,"required":true},{"name":"duration","description":"The new duration of auto archive","type":"Enum","enum":["OneHour","OneDay","ThreeDays","OneWeek"],"rest":false,"required":true,"enumName":"ThreadAutoArchiveDuration"},{"name":"reason","description":"The reason for modifying archive duration","rest":false,"type":"String"}],"category":"channel"},{"name":"$setDefaultThreadSlowmode","version":"2.2.0","description":"Sets a forum's default slowmode for posts","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The forum to modify","rest":false,"required":true,"type":"Channel"},{"name":"seconds","description":"The new default slowmode","rest":false,"required":true,"type":"Number"},{"name":"reason","description":"The reason for modifying default slowmode","rest":false,"type":"String"}],"output":["Boolean"],"category":"channel"},{"name":"$setPostTags","version":"2.5.0","description":"Sets tags to a forum post, returns bool","unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","rest":false,"required":true,"type":"Channel","description":"The post to set tags on"},{"name":"reason","description":"The reason for setting post tags","rest":false,"type":"String"},{"name":"tags","description":"The tags for the post","rest":true,"type":"String"}],"brackets":true,"category":"channel"},{"name":"$setThreadArchiveDuration","version":"1.5.0","description":"Sets a thread's auto archive duration","unwrap":true,"output":["Boolean"],"aliases":["$setThreadAutoArchiveDuration"],"brackets":true,"args":[{"name":"channel ID","description":"The thread to modify","type":"Channel","rest":false,"required":true},{"name":"duration","description":"The new duration of auto archive","type":"Enum","enum":["OneHour","OneDay","ThreeDays","OneWeek"],"rest":false,"required":true,"enumName":"ThreadAutoArchiveDuration"},{"name":"reason","description":"The reason for modifying archive duration","rest":false,"type":"String"}],"category":"channel"},{"name":"$setVoiceBitrate","version":"1.4.0","description":"Sets the bitrate quality of a voice channel, returns bool","brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to edit bitrate","rest":false,"required":true,"type":"Channel"},{"name":"bitrate","rest":false,"type":"Number","required":true,"description":"The new bitrate"},{"name":"reason","description":"The reason to change the bitrate","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$setVoiceDeaf","version":"1.4.0","description":"Deafens a member from voice channel","brackets":true,"aliases":["$voiceDeaf"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","rest":false,"required":true,"type":"Member","pointer":0,"description":"The user to deafen"},{"name":"reason","description":"The reason to deafen this user","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$setVoiceMute","version":"1.4.0","description":"Mutes a member from voice channel","brackets":true,"aliases":["$voiceMute"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","rest":false,"required":true,"type":"Member","pointer":0,"description":"The user to mute"},{"name":"reason","description":"The reason to mute this user","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$setVoiceRegion","version":"1.5.0","description":"Sets the region of a voice channel, returns bool","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to set region","rest":false,"required":true,"type":"Channel"},{"name":"region","description":"The region to set, leave empty to remove a fixed region","rest":false,"required":false,"type":"Enum","enum":["brazil","hongkong","india","japan","rotterdam","russia","singapore","south-korea","southafrica","sydney","us-central","us-east","us-south","us-west"],"enumName":"VoiceRegionType"},{"name":"reason","description":"The reason to set the voice region","rest":false,"required":false,"type":"String"}],"output":["Boolean"],"category":"channel"},{"name":"$setVoiceUndeaf","version":"1.4.0","description":"Undeafens a member from voice channel","brackets":true,"aliases":["$voiceUndeaf"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","rest":false,"required":true,"type":"Member","pointer":0,"description":"The user to undeafen"},{"name":"reason","description":"The reason to undeafen this user","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$setVoiceUnmute","version":"1.4.0","description":"Unmutes a member from voice channel","brackets":true,"aliases":["$voiceUnmute"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","rest":false,"required":true,"type":"Member","pointer":0,"description":"The user to unmute"},{"name":"reason","description":"The reason to unmute this user","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$setVoiceUserLimit","version":"1.4.0","description":"Sets the limit of users that can connect to this voice channel","brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to edit user limit","rest":false,"required":true,"type":"Channel"},{"name":"limit","rest":false,"type":"Number","required":true,"description":"The new user limit"},{"name":"reason","description":"The reason to change the user limit","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$setVoiceVideoQuality","version":"1.5.0","description":"Sets the video quality of a voice channel, returns bool","brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to edit video quality","rest":false,"required":true,"type":"Channel"},{"name":"quality","rest":false,"required":true,"type":"Enum","enum":["Auto","Full"],"description":"The new video quality","enumName":"VideoQualityMode"},{"name":"reason","description":"The reason to change the video quality","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"channel"},{"name":"$startTyping","version":"1.0.0","description":"Starts typing in a channel","unwrap":true,"aliases":["$channelStartTyping"],"brackets":false,"args":[{"name":"channel ID","description":"The channel to start typing at","required":true,"rest":false,"type":"Channel"}],"category":"channel"},{"name":"$threadIsArchived","version":"1.5.0","aliases":["$isArchived","$threadArchived"],"description":"Returns whether a thread is archived","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The thread to check if its archived","rest":false,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$threadOwnerID","version":"2.2.0","description":"Returns the owner of the thread","brackets":false,"unwrap":true,"output":["Member"],"args":[{"name":"channel ID","description":"The thread to retrieve owner of","rest":false,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$threadStarterMessageID","version":"1.5.0","description":"Returns the id of the message that started this thread","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The thread to get its starter message id","rest":false,"required":true,"type":"Channel"}],"output":["Message"],"category":"channel"},{"name":"$threadTotalMessagesSent","version":"1.5.0","description":"Returns the total count of sent messages in a thread","aliases":["$threadTotalMessagesCount"],"brackets":false,"unwrap":true,"output":["Number"],"args":[{"name":"channel ID","description":"The thread to pull data from","rest":false,"required":true,"type":"Channel"}],"category":"channel"},{"name":"$transcript","version":"1.4.0","aliases":["$channelTranscript","$createTranscript"],"description":"Creates a channel transcript","brackets":true,"output":["String[]"],"unwrap":false,"args":[{"name":"channel ID","description":"The channel to create transcript of","rest":false,"required":true,"type":"TextChannel"},{"name":"variable","description":"The $env variable name to load the message id to","rest":false,"required":true,"type":"String"},{"name":"code","description":"The code to use for every message, make sure to use $return","rest":false,"required":true,"type":"String"},{"name":"separator","description":"The separator to use for every result","rest":false,"type":"String"},{"name":"full","description":"Whether to load entire message object to the variable","rest":false,"required":false,"type":"Boolean"}],"category":"channel"},{"name":"$unarchiveThread","version":"1.0.0","aliases":["$unarchivePost"],"description":"Unarchives a thread, returns bool","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The thread to unarchive","rest":false,"required":true,"type":"Channel"},{"name":"reason","description":"The reason to unarchive this thread","rest":false,"type":"String"}],"category":"channel"},{"name":"$unlockThread","version":"1.5.0","aliases":["$unlockPost"],"description":"Unlocks a thread, returns bool","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The thread to unlock","rest":false,"required":true,"type":"Channel"},{"name":"reason","description":"The reason to unlock this thread","rest":false,"type":"String"}],"category":"channel"},{"name":"$commandCount","version":"1.0.0","description":"Returns the command count","brackets":false,"output":["Number"],"args":[{"name":"categories","rest":true,"required":true,"description":"The event types to filter by","type":"String"}],"unwrap":true,"category":"command"},{"name":"$commandInfo","version":"1.0.3","description":"Retrieves command info","unwrap":true,"brackets":true,"output":["Unknown"],"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":true,"type":"String"}],"category":"command"},{"name":"$commandName","version":"1.0.3","description":"Returns the current command name","unwrap":false,"output":["String"],"category":"command"},{"name":"$commandNames","version":"1.0.6","description":"Return commands with given type","brackets":true,"output":["String[]"],"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,"category":"command"},{"name":"$deleteCommand","version":"1.2.0","description":"Deletes the author's message","unwrap":false,"category":"command"},{"name":"$addActionRow","version":"1.0.0","description":"Adds an action row","unwrap":false,"category":"component"},{"name":"$addActionRowTo","version":"1.5.0","brackets":true,"description":"Adds an action row (or rows) to a message","unwrap":false,"aliases":["$addActionRowsTo"],"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add row to","rest":false,"required":true,"type":"Message","pointer":0},{"name":"components","description":"Components for this row","rest":false,"required":true,"type":"String"},{"name":"keep existing rows","description":"Whether to keep or remove existing rows of given message","rest":false,"required":false,"type":"Boolean"}],"output":["Boolean"],"category":"component"},{"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","Premium"],"type":"Enum","required":true,"rest":false,"enumName":"ButtonStyle"},{"name":"emoji","rest":false,"type":"String","description":"The emoji for this button"},{"name":"disabled","rest":false,"type":"Boolean","description":"Whether to disable the button"}],"category":"component"},{"name":"$addButtonTo","version":"1.5.0","description":"Adds a button component to the newest row in a message","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add button to","rest":false,"required":true,"type":"Message","pointer":0},{"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","Premium"],"type":"Enum","required":true,"rest":false,"enumName":"ButtonStyle"},{"name":"emoji","rest":false,"type":"String","description":"The emoji for this button"},{"name":"disabled","rest":false,"type":"Boolean","description":"Whether to disable the button"}],"output":["Boolean"],"category":"component"},{"name":"$addChannelSelectMenu","version":"1.4.0","description":"Creates a channel 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,"type":"Boolean"},{"name":"default channels","rest":true,"type":"String","description":"The default selected channels to use"}],"category":"component"},{"name":"$addChannelSelectMenuTo","version":"2.4.0","description":"Creates a channel select menu on a message","output":["Boolean"],"brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add select menu to","rest":false,"required":true,"type":"Message","pointer":0},{"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 channels","rest":true,"type":"String","description":"The default selected channels to use"}],"category":"component"},{"name":"$addChannelType","version":"1.4.0","aliases":["$addChannelTypes"],"description":"Adds channel types to the last select menu","unwrap":true,"brackets":true,"args":[{"name":"types","description":"The channel types to add","rest":true,"enum":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"required":true,"type":"Enum","enumName":"ChannelType"}],"category":"component"},{"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"}],"category":"component"},{"name":"$addContainer","version":"2.4.0","description":"Adds a new container component","unwrap":false,"brackets":true,"args":[{"name":"components","description":"The components to add","rest":false,"required":true,"type":"String"},{"name":"color","description":"The color to set","rest":false,"type":"Color"},{"name":"spoiler","description":"Whether to set a spoiler","rest":false,"type":"Boolean"}],"category":"component"},{"name":"$addDefaultChannelOption","version":"1.4.0","aliases":["$addDefaultChannels","$addDefaultChannelOptions"],"description":"Adds default channel options to the last select menu","unwrap":true,"brackets":true,"args":[{"name":"channel IDs","description":"The channel ids","rest":true,"required":true,"type":"String"}],"category":"component"},{"name":"$addDefaultRoleOption","version":"1.4.0","aliases":["$addDefaultRoles","$addDefaultRoleOptions"],"description":"Adds default role options to the last select menu","unwrap":true,"brackets":true,"args":[{"name":"role IDs","description":"The role ids","rest":true,"required":true,"type":"String"}],"category":"component"},{"name":"$addDefaultUserOption","version":"1.4.0","aliases":["$addDefaultUsers","$addDefaultUserOptions"],"description":"Adds default user options to the last select menu","unwrap":true,"brackets":true,"args":[{"name":"user IDs","description":"The user ids","rest":true,"required":true,"type":"String"}],"category":"component"},{"name":"$addFile","version":"2.4.0","description":"Adds a new file component","unwrap":true,"brackets":true,"args":[{"name":"url","description":"The url of the file (must use attachment://)","rest":false,"required":true,"type":"String"},{"name":"spoiler","description":"Whether to set a spoiler","rest":false,"type":"Boolean"}],"category":"component"},{"name":"$addMediaGallery","version":"2.4.0","description":"Adds a new media gallery component","unwrap":false,"brackets":true,"args":[{"name":"items","description":"The media items to add","rest":false,"required":true,"type":"String"}],"category":"component"},{"name":"$addMediaItem","version":"2.4.0","description":"Adds a new media gallery item","aliases":["$addItem"],"unwrap":true,"brackets":true,"args":[{"name":"url","description":"The url for the media item","rest":false,"required":true,"type":"String"},{"name":"description","description":"The description of the media item","rest":false,"type":"String"},{"name":"spoiler","description":"Whether to set a spoiler","rest":false,"type":"Boolean"}],"category":"component"},{"name":"$addMentionableSelectMenu","version":"1.4.0","description":"Creates a mentionable 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/users","rest":true,"type":"RoleOrUser","description":"The default selected roles or users to use"}],"category":"component"},{"name":"$addMentionableSelectMenuTo","version":"1.5.0","description":"Creates a mentionable select menu on a message","brackets":true,"output":["Boolean"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add row to","rest":false,"required":true,"type":"Message","pointer":0},{"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/users","rest":true,"type":"RoleOrUser","description":"The default selected roles or users to use","pointer":0,"pointerProperty":"guild"}],"category":"component"},{"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"}],"category":"component"},{"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"}],"category":"component"},{"name":"$addRoleSelectMenuTo","version":"1.5.0","description":"Creates a role select menu on a message","output":["Boolean"],"brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add select menu to","rest":false,"required":true,"type":"Message","pointer":0},{"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"}],"category":"component"},{"name":"$addSection","version":"2.4.0","description":"Adds a new section component","unwrap":false,"brackets":true,"args":[{"name":"components","description":"The components and accessory to add","rest":false,"required":true,"type":"String"}],"category":"component"},{"name":"$addSeparator","version":"2.4.0","description":"Adds a new separator component","unwrap":true,"brackets":false,"args":[{"name":"spacing","description":"The spacing of this separator","rest":false,"required":true,"type":"Enum","enum":["Small","Large"],"enumName":"SeparatorSpacingSize"},{"name":"divider","description":"Whether to show a divider line","rest":false,"type":"Boolean"}],"category":"component"},{"name":"$addStringSelectMenu","version":"1.0.0","description":"Creates 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"}],"category":"component"},{"name":"$addStringSelectMenuTo","version":"1.5.0","description":"Creates a string select menu on a message","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add select menu to","rest":false,"required":true,"type":"Message","pointer":0},{"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"}],"output":["Boolean"],"category":"component"},{"name":"$addTextDisplay","version":"2.4.0","description":"Adds a new text display component","unwrap":true,"brackets":true,"args":[{"name":"content","description":"The content of this text display","rest":false,"required":true,"type":"String"}],"category":"component"},{"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"],"enumName":"TextInputStyle"},{"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"}],"category":"component"},{"name":"$addThumbnail","version":"2.4.0","description":"Adds a new thumbnail accessory","unwrap":true,"brackets":true,"args":[{"name":"url","description":"The url for the thumbnail","rest":false,"required":true,"type":"String"},{"name":"description","description":"The description of the thumbnail","rest":false,"type":"String"},{"name":"spoiler","description":"Whether to set a spoiler","rest":false,"type":"Boolean"}],"category":"component"},{"name":"$addUserSelectMenu","version":"1.4.0","description":"Creates a user 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 users","rest":true,"type":"String","description":"The default selected users to use"}],"category":"component"},{"name":"$addUserSelectMenuTo","version":"1.5.0","output":["Boolean"],"description":"Creates a user select menu on a message","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to add select menu to","rest":false,"required":true,"type":"Message","pointer":0},{"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 users","rest":true,"type":"String","description":"The default selected users to use"}],"category":"component"},{"name":"$deleteActionRow","version":"1.0.0","description":"Deletes an action row or top level component at given index","brackets":true,"args":[{"name":"index","description":"The row index to delete","rest":false,"required":true,"type":"Number"}],"unwrap":true,"category":"component"},{"name":"$deleteActionRowFrom","version":"1.5.0","description":"Deletes an action row or top level component at given index","brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to remove row from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"index","description":"The row index to delete","rest":false,"required":true,"type":"Number"}],"output":["Boolean"],"unwrap":true,"category":"component"},{"name":"$deleteComponent","version":"1.0.0","description":"Deletes a message component with given custom id","brackets":true,"args":[{"name":"custom ID","description":"The component's custom id to delete","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"component"},{"name":"$deleteComponentFrom","version":"1.5.0","description":"Deletes a message component with given custom id from a message","brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to remove component from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"custom ID","description":"The component's custom id to delete","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"unwrap":true,"category":"component"},{"name":"$disableButtons","version":"2.2.0","description":"Disables all buttons on the current message","aliases":["$disableAllButtons"],"unwrap":true,"args":[{"name":"index","description":"The index of the row to disable","rest":false,"required":true,"type":"Number"}],"brackets":false,"category":"component"},{"name":"$disableButtonsOf","version":"2.2.0","description":"Disables all buttons of a message, returns bool","aliases":["$disableAllButtonsOf"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to disable buttons on","rest":false,"required":true,"type":"Message","pointer":0},{"name":"index","description":"The index of the row to disable","rest":false,"type":"Number"}],"brackets":true,"output":["Boolean"],"category":"component"},{"name":"$disableComponents","version":"2.2.0","description":"Disables all components on the current message","aliases":["$disableAllComponents"],"unwrap":false,"category":"component"},{"name":"$disableComponentsOf","version":"2.2.0","description":"Disables all components of a message, returns bool","aliases":["$disableAllComponentsOf"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to disable components on","rest":false,"required":true,"type":"Message","pointer":0}],"brackets":true,"output":["Boolean"],"category":"component"},{"name":"$editButton","version":"1.0.7","description":"Edits a button component","unwrap":true,"brackets":true,"args":[{"name":"custom ID","description":"The custom id to find the component","rest":false,"type":"String","required":true},{"name":"new custom ID","description":"The new 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","Premium"],"type":"Enum","required":true,"rest":false,"enumName":"ButtonStyle"},{"name":"emoji","rest":false,"type":"String","description":"The emoji for this button"},{"name":"disabled","rest":false,"type":"Boolean","description":"Whether to disable the button"}],"category":"component"},{"name":"$editButtonOf","version":"1.5.0","description":"Edits a button component of a message","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to edit button for","rest":false,"required":true,"type":"Message","pointer":0},{"name":"custom ID","description":"The custom id to find the component","rest":false,"type":"String","required":true},{"name":"new custom ID","description":"The new 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","Premium"],"type":"Enum","required":true,"rest":false,"enumName":"ButtonStyle"},{"name":"emoji","rest":false,"type":"String","description":"The emoji for this button"},{"name":"disabled","rest":false,"type":"Boolean","description":"Whether to disable the button"}],"output":["Boolean"],"category":"component"},{"name":"$editChannelSelectMenu","version":"2.2.0","description":"Edits a channel select menu","unwrap":true,"brackets":true,"args":[{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default channels","rest":true,"type":"String","description":"The default selected channels of the menu"}],"category":"component"},{"name":"$editChannelSelectMenuOf","version":"2.2.0","description":"Edits a channel select menu of a message, returns bool","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to edit select menu for","rest":false,"required":true,"type":"Message","pointer":0},{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default channels","rest":true,"type":"String","description":"The default selected channels of the menu"}],"output":["Boolean"],"category":"component"},{"name":"$editMentionableSelectMenu","version":"2.2.0","description":"Edits a mentionable select menu","brackets":true,"unwrap":true,"args":[{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default roles/users","rest":true,"type":"RoleOrUser","description":"The default selected roles or users to use"}],"category":"component"},{"name":"$editMentionableSelectMenuOf","version":"2.2.0","description":"Edits a mentionable select menu of a message, returns bool","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to edit select menu for","rest":false,"required":true,"type":"Message","pointer":0},{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default roles/users","rest":true,"type":"RoleOrUser","description":"The default selected roles or users to use","pointer":0,"pointerProperty":"guild"}],"output":["Boolean"],"category":"component"},{"name":"$editOption","version":"1.4.0","description":"Edits a select menu option","unwrap":true,"brackets":true,"args":[{"name":"name","description":"The option name","rest":false,"required":true,"type":"String"},{"name":"new name","description":"The new 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"}],"category":"component"},{"name":"$editRoleSelectMenu","version":"2.2.0","description":"Edits a role select menu","unwrap":true,"brackets":true,"args":[{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default roles","rest":true,"type":"String","description":"The default selected roles of the menu"}],"category":"component"},{"name":"$editRoleSelectMenuOf","version":"2.2.0","description":"Edits a role select menu of a message, returns bool","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to edit select menu for","rest":false,"required":true,"type":"Message","pointer":0},{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default roles","rest":true,"type":"String","description":"The default selected roles of the menu"}],"output":["Boolean"],"category":"component"},{"name":"$editStringSelectMenu","version":"1.4.0","description":"Edits a string select menu","unwrap":true,"brackets":true,"args":[{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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"}],"category":"component"},{"name":"$editStringSelectMenuOf","version":"1.5.0","description":"Edits a string select menu of a message","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to edit select menu for","rest":false,"required":true,"type":"Message","pointer":0},{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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"}],"output":["Boolean"],"category":"component"},{"name":"$editUserSelectMenu","version":"2.2.0","description":"Edits a user select menu","unwrap":true,"brackets":true,"args":[{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default users","rest":true,"type":"String","description":"The default selected users of the menu"}],"category":"component"},{"name":"$editUserSelectMenuOf","version":"2.2.0","description":"Edits a user select menu of a message, returns bool","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to edit select menu for","rest":false,"required":true,"type":"Message","pointer":0},{"name":"old custom ID","description":"The custom id of the menu to edit","rest":false,"required":true,"type":"String"},{"name":"new custom ID","description":"The new 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":"default users","rest":true,"type":"String","description":"The default selected users of the menu"}],"output":["Boolean"],"category":"component"},{"name":"$enableButtons","version":"2.2.0","description":"Enables all buttons on the current message","aliases":["$enableAllButtons"],"unwrap":true,"args":[{"name":"index","description":"The index of the row to enable","rest":false,"required":true,"type":"Number"}],"brackets":false,"category":"component"},{"name":"$enableButtonsOf","version":"2.2.0","description":"Enables all buttons of a message, returns bool","aliases":["$enableAllButtonsOf"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to enable buttons on","rest":false,"required":true,"type":"Message","pointer":0},{"name":"index","description":"The index of the row to enable","rest":false,"type":"Number"}],"brackets":true,"output":["Boolean"],"category":"component"},{"name":"$enableComponents","version":"2.2.0","description":"Enables all components on the current message","aliases":["$enableAllComponents"],"unwrap":false,"category":"component"},{"name":"$enableComponentsOf","version":"2.2.0","description":"Enables all components of a message, returns bool","aliases":["$enableAllComponentsOf"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel id to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to enable components on","rest":false,"required":true,"type":"Message","pointer":0}],"brackets":true,"output":["Boolean"],"category":"component"},{"name":"$setChannelType","version":"1.5.0","aliases":["$setChannelTypes"],"description":"Sets channel types for the last select menu","unwrap":true,"brackets":true,"args":[{"name":"types","description":"The channel types to set","rest":true,"enum":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"required":true,"type":"Enum","enumName":"ChannelType"}],"category":"component"},{"name":"$and","version":"1.0.0","description":"Validates multiple conditions","unwrap":false,"brackets":true,"output":["Boolean"],"args":[{"name":"conditions","rest":true,"required":true,"type":"String","condition":true,"description":"The conditions that must match"}],"category":"condition"},{"name":"$checkCondition","version":"1.0.0","description":"Checks whether a condition is valid","brackets":true,"unwrap":false,"output":["Boolean"],"args":[{"name":"condition","description":"The condition to use","rest":false,"condition":true,"type":"String","required":true}],"category":"condition"},{"name":"$isBoolean","version":"1.0.6","description":"Checks whether given value is bool like","aliases":["$isBool"],"brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"value","description":"Value to check if its a valid bool","rest":false,"required":true,"type":"String"}],"category":"condition"},{"name":"$isValidHex","version":"1.3.0","description":"Checks whether given hex is a valid integer number between 0x00000 and 0xffffff","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"hex","rest":false,"required":true,"type":"String","description":"The hex to check for"}],"category":"condition"},{"name":"$isValidLink","version":"1.0.0","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"link","description":"The link to check","rest":false,"required":true,"type":"String"}],"description":"Checks whether a link is valid, this will not make sure that a site actually exists or returns success HTTP responses","category":"condition"},{"name":"$or","version":"1.0.0","description":"Validates one condition","unwrap":false,"brackets":true,"output":["Boolean"],"args":[{"name":"conditions","rest":true,"required":true,"type":"String","condition":true,"description":"The conditions that must match one"}],"category":"condition"},{"name":"$channelCooldown","version":"1.5.0","description":"Adds a cooldown binded to a channel and command","brackets":true,"unwrap":false,"args":[{"name":"channel ID","rest":false,"description":"The channel id to assign the cooldown to","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"}],"experimental":true,"category":"cooldown"},{"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,"category":"cooldown"},{"name":"$deleteChannelCooldown","version":"1.5.0","description":"Deletes cooldown for given channel id, binded to current command","brackets":true,"unwrap":true,"args":[{"name":"channel ID","description":"The id to delete its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$deleteCooldown","version":"1.0.3","description":"Deletes cooldown of given id","brackets":true,"unwrap":true,"args":[{"name":"id","description":"The id to delete its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$deleteGuildCooldown","version":"1.5.0","description":"Deletes cooldown for given guild id, binded to current command","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The id to delete its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$deleteMemberCooldown","version":"1.5.0","description":"Deletes cooldown for given guild and user id, binded to current command","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The id to delete its cooldown","rest":false,"type":"String","required":true},{"name":"user ID","description":"The id to delete its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$deleteUserCooldown","version":"1.5.0","description":"Deletes cooldown for given user id, binded to current command","brackets":true,"unwrap":true,"args":[{"name":"user ID","description":"The id to delete its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$getCooldownTime","version":"1.0.3","description":"Retrieves current cooldown time in ms for given id","brackets":true,"output":["Number"],"unwrap":true,"args":[{"name":"id","description":"The id to get its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$getGuildCooldownTime","version":"1.5.0","description":"Retrieves current cooldown time in ms for given guild id, binded to current command","brackets":true,"aliases":["$getServerCooldownTime"],"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild id to get its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$getMemberCooldownTime","version":"1.5.0","description":"Retrieves current cooldown time in ms for given guild and user id, binded to current command","brackets":true,"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild id to get its cooldown","rest":false,"type":"String","required":true},{"name":"user ID","description":"The user id to get its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$getUserCooldownTime","version":"1.5.0","description":"Retrieves current cooldown time in ms for given user id, binded to current command","brackets":true,"output":["Number"],"unwrap":true,"args":[{"name":"user ID","description":"The user id to get its cooldown","rest":false,"type":"String","required":true}],"category":"cooldown"},{"name":"$guildCooldown","version":"1.5.0","description":"Adds a cooldown binded to a guild and command","brackets":true,"unwrap":false,"aliases":["$serverCooldown"],"args":[{"name":"guild ID","rest":false,"description":"The guild id to assign the cooldown to","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"}],"experimental":true,"category":"cooldown"},{"name":"$memberCooldown","version":"1.5.0","description":"Adds a cooldown binded to a guild member and command","brackets":true,"unwrap":false,"args":[{"name":"guild ID","rest":false,"description":"The guild id to assign the cooldown to","type":"String","required":true},{"name":"user ID","rest":false,"description":"The user id to assign the cooldown to","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"}],"experimental":true,"category":"cooldown"},{"name":"$userCooldown","version":"1.5.0","description":"Adds a cooldown binded to a user and command","brackets":true,"unwrap":false,"args":[{"name":"user ID","rest":false,"description":"The user id to assign the cooldown to","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"}],"experimental":true,"category":"cooldown"},{"name":"$createQueryParams","version":"1.0.7","description":"Creates query params with given fields","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"param name;param value","description":"The param name followed by the value, (param1;value1)","rest":true,"required":true,"type":"String"}],"category":"crypto"},{"name":"$decodeURI","version":"1.0.0","description":"Decodes text from a url","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to decode","rest":false,"required":true,"type":"String"}],"category":"crypto"},{"name":"$decodeURIComponent","version":"1.0.0","description":"Decodes text from a url","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to decode","rest":false,"required":true,"type":"String"}],"category":"crypto"},{"name":"$decrypt","version":"1.5.0","description":"Decrypts given text with a key","brackets":true,"output":["String"],"args":[{"name":"text","description":"The text to decrypt","rest":false,"required":true,"type":"String"},{"name":"key","description":"The key to use to decrypt the text","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"crypto"},{"name":"$deflate","version":"1.2.0","description":"Compresses given input","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"input","description":"The text to compress","type":"String","rest":false,"required":true},{"name":"encoding","rest":false,"required":false,"description":"The output encoding to use","type":"String"}],"category":"crypto"},{"name":"$encodeURI","version":"1.0.0","description":"Encodes text for a url","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to encode","rest":false,"required":true,"type":"String"}],"category":"crypto"},{"name":"$encodeURIComponent","version":"1.0.0","description":"Encodes text for a url","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to encode","rest":false,"required":true,"type":"String"}],"category":"crypto"},{"name":"$encrypt","version":"1.5.0","description":"Encrypts given text with a key","brackets":true,"output":["String"],"args":[{"name":"text","description":"The text to encrypt","rest":false,"required":true,"type":"String"},{"name":"key","description":"The key to use to encrypt text","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"crypto"},{"name":"$inflate","version":"1.2.0","description":"Decompresses given input","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"input","description":"The text to decompress","type":"String","rest":false,"required":true},{"name":"encoding","rest":false,"required":false,"description":"The input encoding to use","type":"String"}],"category":"crypto"},{"name":"$md5","version":"1.2.0","description":"Creates a md5 key from given input","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"input","description":"Input to use for feeding","rest":false,"required":true,"type":"String"},{"name":"encoding","type":"String","description":"The output encoding","rest":false,"required":false}],"category":"crypto"},{"name":"$randomBytes","version":"1.5.0","description":"Generates a string of random bytes, in hex","brackets":true,"output":["String"],"args":[{"name":"length","description":"The length of the hex string","rest":false,"required":true,"type":"Number"}],"unwrap":true,"category":"crypto"},{"name":"$sha256","version":"1.2.0","description":"Creates a sha256 key from given input","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"input","description":"Input to use for feeding","rest":false,"required":true,"type":"String"},{"name":"encoding","type":"String","description":"The output encoding","rest":false,"required":false}],"category":"crypto"},{"name":"$sha512","version":"1.2.0","description":"Creates a sha512 key from given input","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"input","description":"Input to use for feeding","rest":false,"required":true,"type":"String"},{"name":"encoding","type":"String","description":"The output encoding","rest":false,"required":false}],"category":"crypto"},{"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,"category":"embed"},{"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,"category":"embed"},{"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,"enumName":"Colors"},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$deleteField","version":"2.1.0","description":"Deletes an embed field","unwrap":true,"args":[{"name":"field index","description":"The index field to delete","rest":false,"required":true,"type":"Number"},{"name":"index","description":"The index to delete this field on","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$description","version":"1.0.0","description":"Adds an embed description","unwrap":true,"args":[{"name":"description","description":"The description for the embed","required":true,"type":"String","rest":false},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$editField","version":"1.4.0","description":"Edits an embed field","unwrap":true,"args":[{"name":"field index","description":"The index field to edit","rest":false,"required":true,"type":"Number"},{"name":"name","description":"The name for the field","type":"String","rest":false},{"name":"value","description":"The value for the field","type":"String","rest":false},{"name":"inline","description":"Whether this field will be inline","type":"Boolean","rest":false},{"name":"index","description":"The index to edit this data on","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$footer","version":"1.0.0","description":"Adds an embed footer","unwrap":true,"args":[{"name":"text","description":"The text for the embed footer","required":true,"type":"String","rest":false},{"name":"icon","description":"The icon url for the embed footer","type":"String","rest":false},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$image","version":"1.0.0","description":"Adds an embed image","unwrap":true,"args":[{"name":"url","description":"The url for the embed image","required":true,"type":"String","rest":false},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$thumbnail","version":"1.0.0","description":"Adds an embed thumbnail","unwrap":true,"args":[{"name":"url","description":"The url for the embed thumbnail","required":true,"type":"String","rest":false},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":true,"category":"embed"},{"name":"$timestamp","version":"1.0.0","description":"Adds an embed timestamp","unwrap":true,"args":[{"name":"ms","description":"The timestamp time to add","type":"Number","rest":false},{"name":"index","description":"The index to add this data to","rest":false,"type":"Number"}],"brackets":false,"category":"embed"},{"name":"$title","version":"1.0.0","description":"Adds an embed title","unwrap":true,"args":[{"name":"title","description":"Adds a title to the embed","required":true,"type":"String","rest":false},{"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,"category":"embed"},{"name":"$addApplicationEmoji","version":"1.5.0","description":"Adds an application emoji, returns the emoji id","brackets":true,"unwrap":true,"args":[{"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"}],"output":["ApplicationEmoji"],"category":"emoji"},{"name":"$addEmoji","version":"1.0.7","description":"Adds an emoji to a guild, returns the emoji id","brackets":true,"unwrap":true,"output":["GuildEmoji"],"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,"type":"Role","pointer":0}],"category":"emoji"},{"name":"$deleteApplicationEmojis","version":"1.5.0","description":"Deletes application emojis, returns the count of emojis deleted","brackets":true,"unwrap":true,"args":[{"name":"emojis","description":"The emojis to delete","rest":true,"required":true,"type":"ApplicationEmoji"}],"output":["Number"],"category":"emoji"},{"name":"$deleteEmojiMessageReactions","version":"1.0.0","description":"Deletes all emoji reactions from a message, returns amount of reaction emojis successfully deleted","unwrap":true,"brackets":true,"output":["Number"],"args":[{"name":"channel ID","description":"The channel the message is located","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to remove emoji reactions from","rest":false,"type":"Message","pointer":0,"required":true},{"name":"emojis","description":"The emojis to delete from this message","required":true,"pointer":1,"rest":true,"type":"Reaction"}],"category":"emoji"},{"name":"$deleteEmojis","version":"1.0.0","brackets":true,"unwrap":true,"output":["Number"],"description":"Deletes given emojis from a guild, returns the count of emotes deleted","args":[{"name":"guild ID","description":"The guild to delete emotes from","rest":false,"required":true,"type":"Guild"},{"name":"emojis","description":"The emojis to delete","rest":true,"pointer":0,"required":true,"type":"GuildEmoji"}],"category":"emoji"},{"name":"$editApplicationEmoji","version":"1.5.0","description":"Edits an application emoji, returns bool","brackets":true,"unwrap":true,"args":[{"name":"emoji ID","description":"The emoji to edit","rest":false,"required":true,"type":"ApplicationEmoji"},{"name":"name","description":"The new name for the emoji","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"emoji"},{"name":"$editEmoji","version":"1.5.0","description":"Edits an emoji of a guild, returns bool","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to edit this emoji on","rest":false,"required":true,"type":"Guild"},{"name":"emoji ID","description":"The emoji to edit","rest":false,"required":true,"type":"GuildEmoji","pointer":0},{"name":"name","description":"The new name for the emoji","rest":false,"type":"String"},{"name":"reason","description":"The reason for editing the emoji","rest":false,"type":"String"},{"name":"roles","description":"The new roles to limit usage of this emoji to","rest":true,"type":"Role","pointer":0}],"output":["Boolean"],"category":"emoji"},{"name":"$emoji","version":"1.0.0","description":"Formats given emoji","brackets":false,"unwrap":true,"output":["String"],"args":[{"name":"emoji ID","description":"The emoji id to format","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$emojiAnimated","version":"1.0.0","description":"Returns whether the emoji is animated","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"emoji ID","description":"The emoji id to return its animation state","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$emojiCount","version":"1.0.0","description":"Returns the emoji count of all servers","unwrap":true,"brackets":false,"args":[{"name":"type","description":"The type of the emotes to count","rest":false,"required":true,"type":"Enum","enum":["normal","animated"],"enumName":"EmojiType"}],"output":["Number"],"category":"emoji"},{"name":"$emojiCreatedAt","version":"1.0.0","description":"Returns the emoji creation timestamp","brackets":false,"unwrap":true,"output":["Number"],"args":[{"name":"emoji ID","description":"The emoji id to return its creation timestamp","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$emojiExists","version":"1.0.0","description":"Returns whether an emoji id exists","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"emoji ID","description":"The emoji to check","rest":false,"required":true,"type":"String"}],"category":"emoji"},{"name":"$emojiGuildID","version":"1.0.0","description":"Returns the emoji guild id","brackets":false,"unwrap":true,"output":["Guild"],"args":[{"name":"emoji ID","description":"The emoji id to return its guild id","rest":false,"type":"GuildEmoji","required":true}],"category":"emoji"},{"name":"$emojiID","version":"1.2.0","description":"Returns the emoji id","brackets":false,"unwrap":true,"output":["Emoji"],"args":[{"name":"emoji name","description":"The emoji name to return its id","rest":false,"type":"String","required":true}],"category":"emoji"},{"name":"$emojiIDs","description":"Returns every guild emoji id","version":"1.3.0","unwrap":true,"brackets":false,"output":["GuildEmoji[]"],"args":[{"name":"separator","description":"The separator to use for every emoji","rest":false,"type":"String"}],"category":"emoji"},{"name":"$emojiIdentifier","version":"1.0.0","description":"Returns the emoji identifier","brackets":false,"unwrap":true,"output":["String"],"args":[{"name":"emoji ID","description":"The emoji id to return its identifier","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$emojiName","version":"1.2.0","description":"Returns the emoji name","brackets":false,"unwrap":true,"output":["String"],"args":[{"name":"emoji ID","description":"The emoji id to return its name","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$emojiNames","version":"1.0.0","description":"Returns the emote names of a guild","brackets":false,"output":["String[]"],"args":[{"name":"guild ID","description":"The guild to return the emotes of","rest":false,"type":"Guild","required":true},{"name":"separator","description":"The separator to use for each emoji","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"emoji"},{"name":"$emojiRawData","version":"1.5.0","description":"Returns the raw data of an emoji","unwrap":true,"brackets":true,"args":[{"name":"emoji ID","rest":false,"required":true,"description":"The emoji to get raw data from","type":"Emoji"}],"output":["Json"],"category":"emoji"},{"name":"$emojiRequiresColons","version":"1.0.0","description":"Returns whether the emoji requires colons","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"emoji ID","description":"The emoji id to return its colons state","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$emojiRoles","version":"1.0.0","description":"Returns the role ids that can use this emote","brackets":false,"unwrap":true,"output":["Role[]"],"args":[{"name":"emoji ID","description":"The emoji id to return its roles","rest":false,"type":"GuildEmoji","required":true},{"name":"separator","description":"The separator to use for every role","rest":false,"type":"String"}],"category":"emoji"},{"name":"$emojiURL","version":"1.0.0","description":"Returns the emoji url","brackets":false,"unwrap":true,"output":["URL"],"args":[{"name":"emoji ID","description":"The emoji id to return its url","rest":false,"type":"Emoji","required":true}],"category":"emoji"},{"name":"$fetchApplicationEmojis","version":"2.5.0","description":"Caches all application emojis of the client","unwrap":false,"category":"emoji"},{"name":"$getApplicationEmojis","version":"1.5.0","description":"Gets all application emojis","brackets":false,"unwrap":true,"args":[{"name":"property","description":"The property to return for every emoji","rest":false,"type":"Enum","enum":["authorID","name","id","identifier","requiresColons","managed","timestamp","animated","url","format"],"enumName":"ApplicationEmojiProperty"},{"name":"separator","description":"The separator to use for every emoji property","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"emoji"},{"name":"$randomApplicationEmojiID","version":"1.5.0","description":"Returns a random emoji ID of the application","unwrap":false,"output":["ApplicationEmoji"],"category":"emoji"},{"name":"$randomEmojiID","version":"1.0.3","description":"Returns a random emoji ID","unwrap":false,"output":["GuildEmoji"],"category":"emoji"},{"name":"$randomGuildEmojiID","version":"1.0.3","description":"Returns a random emoji ID of a guild","unwrap":true,"brackets":false,"output":["GuildEmoji"],"args":[{"name":"guild ID","description":"The guild to get emoji from","rest":false,"required":true,"type":"Guild"}],"category":"emoji"},{"name":"$entitlementConsume","version":"1.5.0","description":"Consumes an entitlement from an interaction","unwrap":true,"args":[{"name":"entitlement name","description":"The name of the entitlement to consume","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"entitlement"},{"name":"$entitlementEndTimestamp","version":"1.5.0","description":"Returns the time at which this entitlement ends","output":["Number"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementGuildID","version":"1.5.0","description":"Returns this entitlement's guild id","output":["Guild"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementID","version":"1.5.0","description":"Returns this entitlement's id","output":["String"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementIsActive","version":"1.5.0","description":"Returns whether this entitlement is active","output":["Boolean"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementIsConsumed","version":"1.5.0","description":"Returns whether this entitlement is consumed","output":["Boolean"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementIsDeleted","version":"1.5.0","description":"Returns whether this entitlement is deleted","output":["Boolean"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementIsGuildSubscription","version":"1.5.0","description":"Returns whether this entitlement is for a guild","output":["Boolean"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementIsUserSubscription","version":"1.5.0","description":"Returns whether this entitlement is for a user","output":["Boolean"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementSkuID","version":"1.5.0","description":"Returns this entitlement's sku id","output":["String"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementStartTimestamp","version":"1.5.0","description":"Returns the time at which this entitlement starts","output":["Number"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementType","version":"1.5.0","description":"Returns this entitlement's type","output":["EntitlementType"],"unwrap":false,"category":"entitlement"},{"name":"$entitlementUserID","version":"1.5.0","description":"Returns this entitlement's user id","output":["User"],"unwrap":false,"category":"entitlement"},{"name":"$hasAllEntitlements","version":"1.5.0","aliases":["$interactionHasAllEntitlements"],"description":"Checks whether this interaction user has all of the given entitlements","unwrap":true,"brackets":true,"args":[{"name":"entitlement name","description":"The name of the entitlements to validate","rest":true,"required":true,"type":"String"}],"output":["Boolean"],"category":"entitlement"},{"name":"$hasAnyEntitlement","version":"1.5.0","aliases":["$interactionHasAnyEntitlement"],"description":"Checks whether this interaction user has any of the given entitlements","unwrap":true,"brackets":true,"args":[{"name":"entitlement name","description":"The name of the entitlements to validate","rest":true,"required":true,"type":"String"}],"output":["Boolean"],"category":"entitlement"},{"name":"$hasEntitlement","version":"1.5.0","aliases":["$interactionHasEntitlement"],"description":"Checks whether this interaction user has given entitlement","unwrap":true,"brackets":true,"args":[{"name":"entitlement name","description":"The name of the entitlement to validate","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"entitlement"},{"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"}],"category":"file"},{"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"}],"category":"file"},{"name":"$deleteFile","version":"1.0.0","description":"Deletes a file","unwrap":true,"brackets":true,"args":[{"name":"path","description":"The path to the file","rest":false,"required":true,"type":"String"}],"category":"file"},{"name":"$fileAccessedAt","version":"1.4.0","description":"Gets last time a file was accessed","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileBlockCount","version":"1.4.0","description":"Gets block count of a file or directory","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileBlockSize","version":"1.4.0","description":"Gets block size of a file or directory","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileChangedAt","version":"1.4.0","description":"Gets last time a file was changed","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileCreatedAt","version":"1.4.0","description":"Gets timestamp of a file or directory","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileExists","version":"1.0.0","description":"Checks whether a path exists","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileModifiedAt","version":"1.4.0","description":"Gets timestamp of a file or directory when it was last modified","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$fileSize","version":"1.2.0","description":"Gets size of a file or directory in bytes","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$isDirectory","version":"1.4.0","description":"Checks whether a path is a directory","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$isFile","version":"1.4.0","description":"Checks whether a path is a file","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$isSymbolicLink","version":"1.4.0","description":"Checks whether a path is a symbolic link","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"path","description":"The path to file or directory","required":true,"rest":false,"type":"String"}],"category":"file"},{"name":"$mkdir","version":"1.0.0","description":"Creates a directory","unwrap":true,"brackets":true,"args":[{"name":"path","description":"The path for the dir","rest":false,"required":true,"type":"String"}],"category":"file"},{"name":"$mktdir","version":"1.4.0","description":"Creates a temporary directory","unwrap":true,"brackets":true,"aliases":["$makeTempDir","$createTempDir"],"output":["String"],"args":[{"name":"prefix","description":"The prefix for the temp dir","rest":false,"required":true,"type":"String"}],"category":"file"},{"name":"$moveFile","version":"1.4.0","description":"Moves a path to another","brackets":true,"unwrap":true,"args":[{"name":"path","description":"The path to make to move","rest":false,"required":true,"type":"String"},{"name":"destination","description":"The output path","rest":false,"required":true,"type":"String"}],"category":"file"},{"name":"$pathJoin","version":"2.2.0","description":"Joins paths together","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"paths","description":"The paths to join with","rest":true,"required":true,"type":"String"}],"category":"file"},{"name":"$pathResolve","version":"2.2.0","description":"Resolves paths into an absolute path","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"paths","description":"The paths to resolve","rest":true,"required":true,"type":"String"}],"category":"file"},{"name":"$readDir","version":"1.5.0","description":"Reads the contents of a directory","unwrap":true,"brackets":true,"output":["Json","String[]"],"args":[{"name":"path","description":"The path to the directory","rest":false,"required":true,"type":"String"},{"name":"separator","description":"The separator to use for each result","rest":false,"type":"String"},{"name":"encoding","description":"The encoding to use for the result","rest":false,"type":"String"}],"category":"file"},{"name":"$readFile","version":"1.0.0","description":"Reads text from a file","unwrap":true,"brackets":true,"output":["Unknown"],"args":[{"name":"path","description":"The path to the file","rest":false,"required":true,"type":"String"},{"name":"encoding","description":"The encoding to use for the text","rest":false,"type":"String"}],"category":"file"},{"name":"$renameFile","version":"1.5.0","description":"Renames a file","unwrap":true,"brackets":true,"args":[{"name":"old path","description":"The old path to the file","rest":false,"required":true,"type":"String"},{"name":"new path","description":"The new path to the file","rest":false,"required":true,"type":"String"}],"category":"file"},{"name":"$symlink","version":"1.4.0","description":"Creates a symbolic link to another path","brackets":true,"unwrap":true,"args":[{"name":"path","description":"The path to make to use as reference","rest":false,"required":true,"type":"String"},{"name":"other path","description":"The other path to link","rest":false,"required":true,"type":"String"}],"category":"file"},{"name":"$truncateFile","version":"1.0.0","description":"Truncates text in a file to given length","unwrap":true,"brackets":true,"args":[{"name":"path","description":"The path to the file","rest":false,"required":true,"type":"String"},{"name":"length","description":"The new length for the file","rest":false,"type":"Number","required":true}],"category":"file"},{"name":"$writeFile","version":"1.0.0","description":"Writes 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 write","rest":false,"type":"String","required":true},{"name":"encoding","description":"The encoding to use for text","rest":false,"type":"String"}],"category":"file"},{"name":"$bold","version":"1.3.0","brackets":true,"description":"Makes given text bold","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to make bold, this will attempt to escape all *","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$codeBlock","version":"1.3.0","brackets":true,"description":"Creates a code block with given text","unwrap":true,"output":["String"],"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"}],"category":"formatting"},{"name":"$hyperlink","version":"1.3.0","brackets":true,"description":"Creates a hyperlink text","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to make hyperlink","rest":false,"required":true,"type":"String"},{"name":"url","description":"The url to use for hyperlink","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$inlineCode","aliases":["$inline","$markdown"],"version":"1.3.0","brackets":true,"description":"Adds backticks to text","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to mark down, this will attempt to escape all `","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$italic","version":"1.5.0","brackets":true,"description":"Makes given text italic","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to make italic, this will attempt to escape all _ and *","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$spoiler","version":"1.3.0","brackets":true,"description":"Makes given text a spoiler","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to make spoiler, this will attempt to escape all |","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$strikethrough","version":"1.3.0","brackets":true,"description":"Makes given text strikethrough","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to make strikethrough, this will attempt to escape all ~","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$subtext","version":"2.2.0","description":"Makes given text a subtext","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"text","description":"The text to make subtext","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$underline","version":"1.3.0","brackets":true,"description":"Adds an underline to text","aliases":["$underscore"],"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to add underline to, this will attempt to escape all _","rest":false,"required":true,"type":"String"}],"category":"formatting"},{"name":"$createGuild","version":"1.5.0","description":"Creates a new guild, returns guild id","aliases":["$createServer"],"unwrap":true,"brackets":true,"deprecated":true,"args":[{"name":"name","description":"The name for the guild","rest":false,"required":true,"type":"String"},{"name":"icon","description":"The icon for the guild","rest":false,"type":"URL"},{"name":"template","description":"The template to use for the guild","rest":false,"type":"Template"}],"output":["Guild"],"category":"guild"},{"name":"$createGuildTemplate","version":"1.5.0","description":"Creates template for a guild, returns template code","aliases":["$createServerTemplate"],"unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to create template on","rest":false,"required":true,"type":"Guild"},{"name":"name","description":"The name for the template","rest":false,"required":true,"type":"String"},{"name":"description","description":"The description for the template","rest":false,"type":"String"}],"output":["Template"],"category":"guild"},{"name":"$deleteGuild","version":"1.5.0","description":"Deletes a guild, returns bool","aliases":["$deleteServer"],"unwrap":true,"brackets":true,"deprecated":true,"args":[{"name":"guild ID","description":"The guild to delete","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"category":"guild"},{"name":"$deleteGuildApplicationCommands","version":"1.4.0","description":"Deletes all guild commands of your bot from a guild","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to delete commands from","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"category":"guild"},{"name":"$deleteGuildTemplate","version":"1.5.0","description":"Deletes template from a guild, returns bool","aliases":["$deleteServerTemplate"],"unwrap":true,"brackets":true,"args":[{"name":"template code","description":"The code of the template to delete","rest":false,"required":true,"type":"Template"}],"output":["Boolean"],"category":"guild"},{"name":"$editGuildTemplate","version":"1.5.0","description":"Edits template on a guild, returns bool","aliases":["$editServerTemplate"],"unwrap":true,"brackets":true,"args":[{"name":"template code","description":"The code of the template to edit","rest":false,"required":true,"type":"Template"},{"name":"name","description":"The new name for the template","rest":false,"type":"String"},{"name":"description","description":"The new description for the template","rest":false,"type":"String"}],"output":["Boolean"],"category":"guild"},{"name":"$getGuildInvite","version":"2.2.0","description":"Returns information about a guild invite","brackets":true,"unwrap":true,"output":["Json","Unknown"],"args":[{"name":"guild ID","description":"The guild to fetch invite from","rest":false,"required":true,"type":"Guild"},{"name":"code","description":"The invite code","rest":false,"required":true,"type":"String"},{"name":"property","description":"The property of the invite to return","rest":false,"type":"Enum","enum":["authorID","channelID","guildID","uses","maxUses","maxAge","timestamp","code","url","type","expiresTimestamp","temporary","deletable","memberCount","presenceCount","targetType","targetUser"],"enumName":"InviteProperty"}],"category":"guild"},{"name":"$getGuildPreview","version":"2.5.0","description":"Returns the preview of a guild","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to fetch preview from","rest":false,"required":true,"type":"String"},{"name":"property","description":"The property to return","rest":false,"type":"Enum","enum":["id","name","description","features","timestamp","icon","splash","emojis","stickers","discoverySplash","approximateMemberCount","approximatePresenceCount"],"enumName":"GuildPreviewProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"output":["Json","Unknown"],"category":"guild"},{"name":"$getGuildTemplate","version":"1.5.0","description":"Gets the data of a guild template","aliases":["$getServerTemplate"],"unwrap":true,"brackets":true,"args":[{"name":"template code","description":"The code of the template to get","rest":false,"required":true,"type":"Template"},{"name":"property","description":"The property of the template to return","rest":false,"type":"Enum","enum":["code","name","description","guildID","authorID","timestamp","updatedTimestamp","url","usageCount","unSynced"],"enumName":"TemplateProperty"}],"output":["Json","Unknown"],"category":"guild"},{"name":"$guildAfkChannelID","version":"1.3.0","aliases":["$serverGuildAfkChannelID"],"description":"Returns the server's afk channel ID","brackets":false,"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildAfkTimeout","version":"1.3.0","description":"Returns the server's afk timeout","brackets":false,"aliases":["$serverAfkTimeout"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildApproximateMemberCount","version":"1.3.0","description":"Returns the approximated member count","brackets":false,"aliases":["$serverApproximateMemberCount"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildApproximatePresenceCount","version":"1.3.0","description":"Returns the approximated presence count","brackets":false,"aliases":["$serverApproximatePresenceCount"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildAutomodRules","version":"1.5.0","description":"Returns all automod rules of a guild","aliases":["$getAutomodRules"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get automod rules from","rest":false,"required":true,"type":"Guild"},{"name":"property","description":"The property of each automod rule to return","rest":false,"type":"Enum","enum":["id","name","authorID","enabled","eventType","triggerType","triggerMetadata","exemptRoles","exemptChannels","actions","keywordFilter","regexPatterns","presets","allowList","mentionTotalLimit","mentionRaidProtectionEnabled"],"enumName":"AutomodRuleProperty"},{"name":"separator","description":"The separator to use for each property","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"guild"},{"name":"$guildAvailable","version":"1.3.0","description":"Returns whether the server is available","brackets":false,"aliases":["$serverAvailable"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"unwrap":true,"category":"guild"},{"name":"$guildBanReason","version":"1.4.0","unwrap":true,"brackets":false,"aliases":["$banReason","$serverBanReason","$getBanReason","$getGuildBanReason","$getServerBanReason"],"output":["String"],"description":"Fetches a ban reason of a user","args":[{"name":"guild ID","description":"The guild to pull ban from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to pull ban reason","rest":false,"required":true,"type":"User"}],"category":"guild"},{"name":"$guildBannedMembers","version":"1.4.0","description":"Returns banned member ids of a guild","aliases":["$serverBannedMembers"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to pull banned members from"},{"name":"separator","rest":false,"type":"String","description":"The separator for each id"}],"output":["User[]"],"category":"guild"},{"name":"$guildBanner","version":"1.0.0","description":"Returns the guild banner","brackets":false,"aliases":["$serverBanner"],"args":[{"name":"guild ID","description":"The guild to retrieve the banner","rest":false,"required":true,"type":"Guild"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"output":["URL"],"unwrap":true,"category":"guild"},{"name":"$guildBoostCount","version":"1.0.0","description":"Returns the server boost count","brackets":false,"aliases":["$serverBoostCount"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildBoostLevel","version":"1.0.0","description":"Returns the server boost tier","brackets":false,"aliases":["$serverBoostLevel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildBoostProgressBarEnabled","version":"1.5.0","description":"Returns whether a guild has the boost progress bar enabled","aliases":["$serverBoostProgressBarEnabled"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"category":"guild"},{"name":"$guildBoostRoleID","version":"1.0.0","description":"Returns the server boost role id","brackets":false,"aliases":["$serverBoostRoleID"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Role"],"unwrap":true,"category":"guild"},{"name":"$guildBoosterIDs","version":"1.5.0","description":"Returns all current boosters of a guild","brackets":false,"aliases":["$serverBoosterIDs"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"},{"name":"separator","description":"The separator to use for every member","rest":false,"type":"String"}],"output":["Member[]"],"unwrap":true,"category":"guild"},{"name":"$guildBotCount","version":"1.0.0","description":"Returns the bot count of a guild","brackets":false,"aliases":["$serverBotCount"],"args":[{"name":"guild ID","description":"The guild to retrieve bot count from","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildChannelCount","version":"1.0.0","description":"Returns the server channel count","brackets":false,"aliases":["$serverChannelCount"],"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get channels from","rest":false,"type":"Guild","required":true},{"name":"categories","description":"The categories to filter by","rest":true,"enum":["GuildText","DM","GuildVoice","GroupDM","GuildCategory","GuildAnnouncement","AnnouncementThread","PublicThread","PrivateThread","GuildStageVoice","GuildDirectory","GuildForum","GuildMedia","GuildNews","GuildNewsThread","GuildPublicThread","GuildPrivateThread"],"type":"Enum","enumName":"ChannelType"}],"category":"guild"},{"name":"$guildChannelExists","version":"1.0.0","description":"Returns whether a guild channel id exists","unwrap":true,"aliases":["$serverChannelExists"],"output":["Boolean"],"brackets":true,"args":[{"name":"guild ID","description":"The guild to check for the guild channel","type":"Guild","rest":false,"required":true},{"name":"channel ID","description":"The role to guild channel","rest":false,"required":true,"type":"String"}],"category":"guild"},{"name":"$guildChannelIDs","version":"1.3.0","unwrap":true,"brackets":false,"aliases":["$serverChannelIDs"],"output":["Channel[]"],"description":"Returns every channel id of the guild","args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to get channel ids from"},{"name":"separator","description":"The separator to use for every channel","rest":false,"type":"String"}],"category":"guild"},{"name":"$guildCount","version":"1.0.0","description":"Returns the guild count","unwrap":false,"aliases":["$serverCount","$serversCount"],"output":["Number"],"category":"guild"},{"name":"$guildCreatedAt","version":"1.0.0","description":"Returns the server creation timestamp","brackets":false,"aliases":["$serverCreatedAt"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildDefaultMessageNotifications","version":"1.3.0","description":"Returns the default message notifications for this guild","brackets":false,"aliases":["$serverDefaultMessageNotifications"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["GuildDefaultMessageNotifications"],"unwrap":true,"category":"guild"},{"name":"$guildDescription","version":"1.0.0","description":"Returns the server description","brackets":false,"aliases":["$serverDescription"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["String"],"unwrap":true,"category":"guild"},{"name":"$guildDiscoverySplash","version":"1.3.0","description":"Returns the guild discovery splash","brackets":false,"aliases":["$serverDiscoverySplash"],"output":["URL"],"args":[{"name":"guild ID","description":"The guild to retrieve the discovery splash","rest":false,"required":true,"type":"Guild"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"guild"},{"name":"$guildDmSpamDetectedAt","version":"2.2.0","description":"Returns when a direct message spam was detected on a guild","aliases":["$serverDmSpamDetectedAt"],"brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"category":"guild"},{"name":"$guildDmsDisabledUntil","version":"2.2.0","description":"Returns the direct messages disabled timestamp of a guild","aliases":["$serverDmsDisabledUntil"],"brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"category":"guild"},{"name":"$guildEmojiCount","version":"1.0.0","description":"Returns the emoji count of a guild","brackets":false,"aliases":["$serverEmojiCount"],"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get emotes from","rest":false,"type":"Guild","required":true},{"name":"type","description":"The type of the emotes to count","rest":false,"type":"Enum","enum":["normal","animated"],"enumName":"EmojiType"}],"category":"guild"},{"name":"$guildEmojiExists","version":"2.5.0","description":"Returns whether an emoji id exists on a guild","unwrap":true,"aliases":["$serverEmojiExists"],"brackets":true,"args":[{"name":"guild ID","description":"The guild to pull emoji from","rest":false,"required":true,"type":"Guild"},{"name":"emoji ID","description":"The emoji to check for","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"guild"},{"name":"$guildEmojiIDs","version":"1.3.0","unwrap":true,"aliases":["$serverEmojiIDs"],"output":["GuildEmoji[]"],"brackets":false,"description":"Returns every emoji id of the guild","args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to get emoji ids from"},{"name":"separator","description":"The separator to use for every emoji","rest":false,"type":"String"}],"category":"guild"},{"name":"$guildEmojiLimit","version":"1.5.0","description":"Returns the emoji limit of a guild","brackets":false,"aliases":["$serverEmojiLimit"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildEmojis","version":"1.3.0","unwrap":true,"aliases":["$serverEmojis"],"output":["String[]"],"brackets":false,"description":"Returns every emoji of the guild","args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to get emoji from"},{"name":"separator","description":"The separator to use for every emoji","rest":false,"type":"String"}],"category":"guild"},{"name":"$guildExists","version":"1.0.0","description":"Returns whether a guild id exists","unwrap":true,"aliases":["$serverExists"],"output":["Boolean"],"brackets":true,"args":[{"name":"guild ID","description":"The guild to check","rest":false,"required":true,"type":"String"}],"category":"guild"},{"name":"$guildExplicitContentFilter","version":"1.3.0","description":"Returns the explicit content filter level for this guild","brackets":false,"aliases":["$serverExplicitContentFilter"],"output":["GuildExplicitContentFilter"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildFeatures","version":"1.0.0","description":"Returns the guild features","brackets":false,"aliases":["$serverFeatures"],"output":["GuildFeature[]"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"},{"name":"separator","description":"The separator to use","rest":false,"type":"String"}],"unwrap":true,"category":"guild"},{"name":"$guildHasAnyFeatures","version":"1.4.0","description":"Returns whether this guild has any of the given features","unwrap":true,"brackets":true,"aliases":["$guildHasAnyFeature","$hasAnyGuildFeatures","$hasAnyGuildFeature"],"args":[{"name":"guild ID","description":"The guild to check for features","rest":false,"required":true,"type":"Guild"},{"name":"features","rest":true,"required":true,"type":"Enum","enum":["AnimatedBanner","AnimatedIcon","ApplicationCommandPermissionsV2","AutoModeration","Banner","Community","CreatorMonetizableProvisional","CreatorStorePage","DeveloperSupportServer","Discoverable","Featurable","HasDirectoryEntry","Hub","InvitesDisabled","InviteSplash","LinkedToHub","MemberVerificationGateEnabled","MoreSoundboard","MonetizationEnabled","MoreStickers","News","Partnered","PreviewEnabled","PrivateThreads","RaidAlertsDisabled","RelayEnabled","RoleIcons","RoleSubscriptionsAvailableForPurchase","RoleSubscriptionsEnabled","Soundboard","TicketedEventsEnabled","VanityURL","Verified","VIPRegions","WelcomeScreenEnabled","GuildTags","EnhancedRoleColors","GuestsEnabled"],"description":"The features to check for","enumName":"GuildFeature"}],"output":["Boolean"],"category":"guild"},{"name":"$guildHasFeatures","version":"1.4.0","description":"Returns whether this guild has all the given features","unwrap":true,"brackets":true,"aliases":["$hasGuildFeatures"],"args":[{"name":"guild ID","description":"The guild to check for features","rest":false,"required":true,"type":"Guild"},{"name":"features","rest":true,"required":true,"type":"Enum","enum":["AnimatedBanner","AnimatedIcon","ApplicationCommandPermissionsV2","AutoModeration","Banner","Community","CreatorMonetizableProvisional","CreatorStorePage","DeveloperSupportServer","Discoverable","Featurable","HasDirectoryEntry","Hub","InvitesDisabled","InviteSplash","LinkedToHub","MemberVerificationGateEnabled","MoreSoundboard","MonetizationEnabled","MoreStickers","News","Partnered","PreviewEnabled","PrivateThreads","RaidAlertsDisabled","RelayEnabled","RoleIcons","RoleSubscriptionsAvailableForPurchase","RoleSubscriptionsEnabled","Soundboard","TicketedEventsEnabled","VanityURL","Verified","VIPRegions","WelcomeScreenEnabled","GuildTags","EnhancedRoleColors","GuestsEnabled"],"description":"The features to check for","enumName":"GuildFeature"}],"output":["Boolean"],"category":"guild"},{"name":"$guildHasTemplate","version":"1.5.0","description":"Returns whether this guild has a template","unwrap":true,"brackets":false,"aliases":["$hasGuildTemplate"],"args":[{"name":"guild ID","description":"The guild to check for template","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"category":"guild"},{"name":"$guildHighestRoleID","version":"1.5.0","description":"Returns the highest role id of a guild","aliases":["$serverHighestRoleID"],"brackets":false,"output":["Role"],"args":[{"name":"guild ID","description":"The guild to retrieve its highest role","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildID","version":"1.0.0","description":"Returns the guild id with given name","unwrap":true,"aliases":["$serverID"],"output":["Guild"],"brackets":false,"args":[{"name":"name","description":"The guild name to return the id","rest":true,"type":"String","required":true}],"category":"guild"},{"name":"$guildIDs","version":"1.0.0","description":"Returns all the guilds this bot is in","unwrap":true,"aliases":["$serverIDs"],"output":["Guild[]"],"brackets":false,"args":[{"name":"separator","description":"The separator for each guild","type":"String","required":true,"rest":false}],"category":"guild"},{"name":"$guildIcon","version":"1.0.0","description":"Returns the server icon","brackets":false,"aliases":["$serverIcon"],"output":["URL"],"args":[{"name":"guild ID","description":"The guild to retrieve the guild icon","rest":false,"required":true,"type":"Guild"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"guild"},{"name":"$guildInviteExists","version":"2.4.0","description":"Returns whether a guild invite code exists","aliases":["$serverInviteExists"],"unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to pull invites from","rest":false,"required":true,"type":"Guild"},{"name":"code","description":"The invite to check","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"guild"},{"name":"$guildInvites","version":"2.5.0","description":"Returns all invites of a guild","aliases":["$serverInvites"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to pull invites from"},{"name":"property","rest":false,"type":"Enum","description":"The property of the invites to return","enum":["authorID","channelID","guildID","uses","maxUses","maxAge","timestamp","code","url","type","expiresTimestamp","temporary","deletable","memberCount","presenceCount","targetType","targetUser"],"enumName":"InviteProperty"},{"name":"separator","rest":false,"type":"String","description":"The separator to use for each property"}],"output":["Json","Unknown[]"],"category":"guild"},{"name":"$guildInvitesDisabledUntil","version":"2.2.0","description":"Returns the invites disabled timestamp of a guild","aliases":["$serverInvitesDisabledUntil"],"brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"category":"guild"},{"name":"$guildLarge","version":"2.4.0","description":"Returns whether a guild is considered as large","unwrap":true,"brackets":false,"aliases":["$serverLarge"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"category":"guild"},{"name":"$guildLeave","version":"1.0.0","description":"Leaves a guild","brackets":false,"aliases":["$serverLeave"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to leave","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildLowestRoleID","version":"1.5.0","description":"Returns the lowest role id of a guild","aliases":["$serverLowestRoleID"],"brackets":false,"output":["Role"],"args":[{"name":"guild ID","description":"The guild to retrieve its lowest role","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMFALevel","version":"1.3.0","description":"Returns the mfa level for this guild","brackets":false,"aliases":["$serverMFALevel"],"output":["GuildMFALevel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMaxStageVideoChannelUsers","version":"1.3.0","description":"Returns the maximum video channel users for stage channels of this guild","brackets":false,"aliases":["$serverMaxStageVideoChannelUsers"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMaxVideoChannelUsers","version":"1.3.0","description":"Returns the maximum video channel users for this guild","brackets":false,"aliases":["$serverMaxVideoChannelUsers"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMaximumBitrate","version":"1.3.0","aliases":["$serverMaximumBitrate"],"output":["Number"],"description":"Returns the maximum bitrate for voice channels of this guild","brackets":false,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMaximumMembers","version":"1.3.0","description":"Returns the maximum members for this guild","brackets":false,"aliases":["$serverMaximumMembers"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMaximumPresences","version":"1.3.0","description":"Returns the maximum presences for this guild","brackets":false,"aliases":["$serverMaximumPresences"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildMemberCount","version":"1.0.0","description":"Returns the user count of a guild","brackets":false,"aliases":["$serverMemberCount","$serverMembersCount"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve member count from","rest":false,"required":true,"type":"Guild"},{"name":"presence","description":"The presence of the users to count","rest":false,"type":"Enum","enum":["online","idle","dnd","offline"],"enumName":"PresenceStatus"},{"name":"count bots","description":"Whether to count bots","rest":false,"type":"Boolean"}],"unwrap":true,"category":"guild"},{"name":"$guildMemberIDs","version":"1.4.0","aliases":["$memberIDs","$serverMemberIDs"],"output":["Member[]"],"description":"Returns all cached member ids of a guild","brackets":false,"unwrap":true,"args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to pull members from"},{"name":"separator","description":"The separator to use for each member","rest":false,"type":"String"}],"category":"guild"},{"name":"$guildNSFWLevel","version":"1.3.0","description":"Returns the nsfw level for this guild","brackets":false,"aliases":["$serverNSFWLevel"],"output":["GuildNSFWLevel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildName","version":"1.0.0","description":"Returns the server name","brackets":false,"aliases":["$serverName"],"output":["String"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildNameAcronym","version":"1.3.0","description":"Returns the server name acronym","brackets":false,"aliases":["$serverNameAcronym"],"output":["String"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildNames","version":"1.0.0","description":"Returns the server names of the bot","brackets":false,"aliases":["$serverNames"],"output":["String[]"],"args":[{"name":"separator","description":"The separator to use for each guild","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"guild"},{"name":"$guildOwnerID","version":"1.0.0","description":"Returns the server owner id","brackets":false,"aliases":["$serverOwnerID"],"output":["User"],"args":[{"name":"guild ID","description":"The guild to retrieve the owner from","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildPartnered","version":"1.3.0","description":"Returns whether the server is partnered","brackets":false,"aliases":["$serverPartnered"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildPreferredLocale","version":"1.3.0","description":"Returns the server's preferred locale","brackets":false,"aliases":["$serverPreferredLocale"],"output":["Locale"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildPublicUpdatesChannelID","version":"1.3.0","description":"Returns the server's public updates channel ID","brackets":false,"aliases":["$serverPublicUpdatesChannelID"],"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildRaidDetectedAt","version":"2.2.0","description":"Returns when a raid was detected on a guild","aliases":["$serverRaidDetectedAt"],"brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"category":"guild"},{"name":"$guildRawData","version":"1.5.0","description":"Returns the raw data of a guild","aliases":["$serverRawData"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get raw data from","rest":false,"type":"Guild","required":true}],"output":["Json"],"category":"guild"},{"name":"$guildRoleCount","version":"1.0.0","description":"Returns the role count of a guild","brackets":false,"aliases":["$serverRoleCount"],"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get roles from","rest":false,"type":"Guild","required":true}],"category":"guild"},{"name":"$guildRoleIDs","version":"1.3.0","unwrap":true,"aliases":["$serverRoleIDs"],"output":["Role[]"],"brackets":false,"description":"Returns every role id of the guild","args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to get role ids from"},{"name":"separator","description":"The separator to use for every role","rest":false,"type":"String"}],"category":"guild"},{"name":"$guildRulesChannelID","version":"1.3.0","description":"Returns the server's rules channel ID","brackets":false,"aliases":["$serverRulesChannelID"],"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildSafetyAlertsChannelID","version":"1.3.0","description":"Returns the server's safety alerts channel ID","brackets":false,"aliases":["$serverSafetyAlertsChannelID"],"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildShardID","version":"1.0.0","description":"Returns the server shard ID","brackets":false,"aliases":["$serverShardID"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildSoundboardLimit","version":"2.5.0","description":"Returns the soundboard sound limit of a guild","brackets":false,"unwrap":true,"aliases":["$serverSoundboardLimit"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"category":"guild"},{"name":"$guildSoundboardSounds","version":"2.4.0","description":"Returns all soundboard sounds of a guild","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get soundboard sounds from","rest":false,"required":true,"type":"Guild"},{"name":"property","description":"The property of each sound to return","rest":false,"type":"Enum","enum":["name","id","guildID","userID","emoji","volume","timestamp","available","url"],"enumName":"SoundboardSoundProperty"},{"name":"separator","description":"The separator to use for each property","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"guild"},{"name":"$guildSplashURL","version":"1.0.0","aliases":["$serverSplashURL"],"output":["URL"],"description":"Returns the guild splash url","brackets":false,"args":[{"name":"guild ID","description":"The guild to retrieve the splash","rest":false,"required":true,"type":"Guild"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"guild"},{"name":"$guildStageInstances","version":"2.3.0","description":"Returns all active stage instances of a guild","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get stage instances from","rest":false,"required":true,"type":"Guild"},{"name":"property","description":"The property of each stage instance to return","rest":false,"type":"Enum","enum":["channelID","id","topic","timestamp","guildID","privacyLevel","eventId"],"enumName":"StageProperty"},{"name":"separator","description":"The separator to use for each property","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"guild"},{"name":"$guildStickerExists","version":"2.5.0","description":"Returns whether a sticker id exists on a guild","unwrap":true,"aliases":["$serverStickerExists"],"brackets":true,"args":[{"name":"guild ID","description":"The guild to pull sticker from","rest":false,"required":true,"type":"Guild"},{"name":"sticker ID","description":"The sticker to check for","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"guild"},{"name":"$guildStickerIDs","version":"1.3.0","unwrap":true,"aliases":["$serverStickerIDs"],"output":["Sticker[]"],"brackets":false,"description":"Returns every sticker id of the guild","args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to get sticker ids from"},{"name":"separator","description":"The separator to use for every sticker","rest":false,"type":"String"}],"category":"guild"},{"name":"$guildStickerLimit","version":"1.5.0","description":"Returns the sticker limit of a guild","brackets":false,"aliases":["$serverStickerLimit"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"output":["Number"],"unwrap":true,"category":"guild"},{"name":"$guildSystemChannelID","version":"1.0.0","description":"Returns the server's system channel ID","brackets":false,"aliases":["$serverSystemChannelID"],"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildTemplateCode","version":"2.4.0","description":"Returns the template code of a guild","unwrap":true,"brackets":false,"aliases":["$serverTemplateCode"],"args":[{"name":"guild ID","description":"The guild to get template from","rest":false,"required":true,"type":"Guild"}],"output":["Template"],"category":"guild"},{"name":"$guildTimedOutMembers","version":"1.5.0","description":"Returns all current timed out members of a guild","unwrap":true,"brackets":false,"aliases":["$serverTimedOutMembers"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"},{"name":"separator","description":"The separator to use for every member","rest":false,"type":"String"}],"output":["Member[]"],"category":"guild"},{"name":"$guildVanityCode","version":"1.0.0","description":"Returns the guilds vanity code","unwrap":true,"aliases":["$serverVanityCode"],"output":["Invite"],"args":[{"name":"guild ID","description":"The guild to return its vanity code","rest":false,"type":"Guild","required":true}],"brackets":false,"category":"guild"},{"name":"$guildVanityUses","version":"1.0.0","description":"Returns the guilds vanity uses","unwrap":true,"aliases":["$serverVanityUses"],"output":["Number"],"args":[{"name":"guild ID","description":"The guild to return its vanity uses","rest":false,"type":"Guild","required":true}],"brackets":false,"category":"guild"},{"name":"$guildVerificationLevel","version":"1.3.0","description":"Returns the server verification level","brackets":false,"aliases":["$serverVerificationLevel"],"output":["GuildVerificationLevel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildVerified","version":"1.3.0","description":"Returns whether the server is verified","brackets":false,"aliases":["$serverVerified"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildWebhooks","version":"2.3.0","description":"Returns all webhooks of a guild","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"type":"Guild","required":true},{"name":"property","description":"The property to return","rest":false,"type":"Enum","enum":["id","name","type","avatar","ownerID","channelID","guildID","sourceChannelID","sourceGuildID","timestamp","token","url"],"enumName":"WebhookProperty"},{"name":"separator","description":"The separator to use for every property","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"guild"},{"name":"$guildWidgetChannelEnabled","version":"1.3.0","description":"Returns whether widget channel is enabled for this guild","brackets":false,"aliases":["$serverWidgetChannelEnabled"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$guildWidgetChannelID","version":"1.3.0","description":"Returns the widget channel for this guild","brackets":false,"aliases":["$serverWidgetChannelID"],"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to retrieve the data","rest":false,"required":true,"type":"Guild"}],"unwrap":true,"category":"guild"},{"name":"$randomGuildID","version":"1.0.3","description":"Returns a random guild ID","unwrap":false,"aliases":["$randomServerID"],"output":["Guild"],"category":"guild"},{"name":"$registerGuildApplicationCommands","version":"1.4.0","description":"Registers all application commands with type: 1 to a guild","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to register commands to","rest":false,"required":true,"type":"Guild"}],"output":["Boolean"],"category":"guild"},{"name":"$setGuildAFKChannel","version":"2.1.0","description":"Sets the AFK channel for a guild, returns bool","unwrap":true,"aliases":["$setServerAFKChannel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set AFK channel for","rest":false,"type":"Guild","required":true},{"name":"channel ID","description":"The new AFK channel","rest":false,"type":"Channel","pointer":0},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildAFKTimeout","version":"2.1.0","description":"Sets the AFK timeout for a guild, returns bool","unwrap":true,"aliases":["$setServerAFKTimeout"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set AFK timeout for","rest":false,"type":"Guild","required":true},{"name":"seconds","description":"The new AFK timeout in seconds (60, 300, 900, 1800, 3600)","rest":false,"required":true,"type":"Number"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildBanner","version":"1.0.0","description":"Sets a guild banner, returns boolean","unwrap":true,"aliases":["$setServerBanner"],"output":["Boolean"],"args":[{"name":"guild ID","rest":false,"type":"Guild","required":true,"description":"The guild to set banner on"},{"name":"url","description":"The new banner","rest":false,"type":"String"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildBoostProgressBar","version":"1.5.0","description":"Sets a guild boost progress bar, returns bool","aliases":["$setServerBoostProgressBar"],"unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to set boost progress bar for","rest":false,"required":true,"type":"Guild"},{"name":"enabled","description":"Whether to enable the boost progress bar","rest":false,"required":true,"type":"Boolean"},{"name":"reason","description":"The reason for enabling/disabling boost progress bar","rest":false,"type":"String"}],"output":["Boolean"],"category":"guild"},{"name":"$setGuildDefaultMessageNotifications","version":"2.1.0","description":"Sets the default message notifications setting for a guild, returns bool","unwrap":true,"aliases":["$setServerDefaultMessageNotifications"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set default message notifications for","rest":false,"type":"Guild","required":true},{"name":"setting","description":"The new default message notifications setting","rest":false,"type":"Enum","enum":["AllMessages","OnlyMentions"],"enumName":"GuildDefaultMessageNotifications"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildDiscoverySplash","version":"2.1.0","description":"Sets the discovery splash for a guild, returns bool","unwrap":true,"aliases":["$setServerDiscoverySplash"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set discovery splash for","rest":false,"type":"Guild","required":true},{"name":"url","description":"The new discovery splash","rest":false,"type":"String"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildExplicitContentFilter","version":"2.1.0","description":"Sets the explicit content filter for a guild, returns bool","unwrap":true,"aliases":["$setServerExplicitContentFilter"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set explicit content filter for","rest":false,"type":"Guild","required":true},{"name":"filter","description":"The new explicit content filter","rest":false,"type":"Enum","enum":["Disabled","MembersWithoutRoles","AllMembers"],"enumName":"GuildExplicitContentFilter"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildIcon","version":"1.0.0","description":"Sets a guild icon, returns boolean","unwrap":true,"aliases":["$setServerIcon"],"output":["Boolean"],"args":[{"name":"guild ID","rest":false,"type":"Guild","required":true,"description":"The guild to set icon on"},{"name":"url","description":"The new icon","rest":false,"type":"String"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildMFALevel","version":"2.1.0","description":"Sets the MFA level for a guild, returns bool","unwrap":true,"deprecated":true,"aliases":["$setServerMFALevel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set MFA level for","rest":false,"type":"Guild","required":true},{"name":"level","description":"The new MFA level","rest":false,"required":true,"type":"Enum","enum":["None","Elevated"],"enumName":"GuildMFALevel"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildName","version":"1.0.0","description":"Sets a guild name, returns boolean","unwrap":true,"aliases":["$setServerName"],"output":["Boolean"],"args":[{"name":"guild ID","rest":false,"type":"Guild","required":true,"description":"The guild to set name"},{"name":"name","description":"The new name","rest":false,"required":true,"type":"String"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildOwner","version":"2.1.0","description":"Sets the owner of a guild, returns bool","unwrap":true,"deprecated":true,"aliases":["$setServerOwner"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set owner on","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The new owner","rest":false,"required":true,"type":"Member","pointer":0},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildPausedInvites","version":"1.5.0","description":"Sets a guild paused invite status, returns bool","aliases":["$setServerPausedInvites"],"unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to set paused invites for","rest":false,"required":true,"type":"Guild"},{"name":"disabled","description":"Whether to disable the invites","rest":false,"required":true,"type":"Boolean"}],"output":["Boolean"],"category":"guild"},{"name":"$setGuildPreferredLocale","version":"2.1.0","description":"Sets the preferred locale of a guild, returns bool","unwrap":true,"aliases":["$setServerPreferredLocale"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set preferred locale on","rest":false,"type":"Guild","required":true},{"name":"locale","description":"The new preferred locale","rest":false,"type":"Enum","enum":["Indonesian","EnglishUS","EnglishGB","Bulgarian","ChineseCN","ChineseTW","Croatian","Czech","Danish","Dutch","Finnish","French","German","Greek","Hindi","Hungarian","Italian","Japanese","Korean","Lithuanian","Norwegian","Polish","PortugueseBR","Romanian","Russian","SpanishES","SpanishLATAM","Swedish","Thai","Turkish","Ukrainian","Vietnamese"],"enumName":"Locale"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildPublicUpdatesChannel","version":"2.1.0","description":"Sets the public updates channel for a guild, returns bool","unwrap":true,"aliases":["$setServerPublicUpdatesChannel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set public updates channel for","rest":false,"type":"Guild","required":true},{"name":"channel ID","description":"The new public updates channel","rest":false,"type":"Channel","pointer":0},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildRulesChannel","version":"2.1.0","description":"Sets the rules channel for a guild, returns bool","unwrap":true,"aliases":["$setServerRulesChannel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set rules channel for","rest":false,"type":"Guild","required":true},{"name":"channel ID","description":"The new rules channel","rest":false,"type":"Channel","pointer":0},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildSafetyAlertsChannel","version":"2.1.0","description":"Sets the safety alerts channel for a guild, returns bool","unwrap":true,"aliases":["$setServerSafetyAlertsChannel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set safety alerts channel for","rest":false,"type":"Guild","required":true},{"name":"channel ID","description":"The new safety alerts channel","rest":false,"type":"Channel","pointer":0},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildSplash","version":"1.0.0","description":"Sets a guild splash, returns boolean","unwrap":true,"aliases":["$setServerSplash"],"output":["Boolean"],"args":[{"name":"guild ID","rest":false,"type":"Guild","required":true,"description":"The guild to set splash on"},{"name":"url","description":"The new splash","rest":false,"type":"String"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildSystemChannel","version":"2.1.0","description":"Sets the system channel for a guild, returns bool","unwrap":true,"aliases":["$setServerSystemChannel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set system channel for","rest":false,"type":"Guild","required":true},{"name":"channel ID","description":"The new system channel","rest":false,"type":"Channel","pointer":0},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildVerificationLevel","version":"2.1.0","description":"Sets the verification level of a guild, returns bool","unwrap":true,"aliases":["$setServerVerificationLevel"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set verification level on","rest":false,"type":"Guild","required":true},{"name":"level","description":"The new verification level","rest":false,"type":"Enum","enum":["None","Low","Medium","High","VeryHigh"],"enumName":"GuildVerificationLevel"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$setGuildWidgetSettings","version":"2.1.0","description":"Sets the widget settings of a guild, returns bool","unwrap":true,"aliases":["$setServerWidgetSettings"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to set widget settings on","rest":false,"type":"Guild","required":true},{"name":"channel ID","description":"The invite channel for the widget","rest":false,"type":"Channel"},{"name":"enabled","description":"Whether to enable the widget","rest":false,"type":"Boolean"},{"name":"reason","description":"The reason for this action","rest":false,"type":"String"}],"brackets":true,"category":"guild"},{"name":"$syncGuildTemplate","version":"2.4.0","description":"Syncs this template to the current state of the guild, returns bool","aliases":["$syncServerTemplate"],"unwrap":true,"brackets":true,"args":[{"name":"template code","description":"The code of the template to sync","rest":false,"required":true,"type":"Template"}],"output":["Boolean"],"category":"guild"},{"name":"$httpAddForm","version":"1.4.0","description":"Adds form data to request","unwrap":false,"category":"http"},{"name":"$httpAddHeader","version":"1.0.0","description":"Adds an HTTP header","unwrap":true,"args":[{"name":"name","description":"The header name","rest":false,"type":"String","required":true},{"name":"value","description":"The header value","rest":true,"type":"String","required":true}],"brackets":true,"category":"http"},{"name":"$httpAppendFile","version":"1.4.0","description":"Appends a file to form data","brackets":true,"unwrap":true,"args":[{"name":"key","description":"The key name to add this value to","rest":false,"required":true,"type":"String"},{"name":"url / path","type":"Attachment","rest":false,"required":true,"description":"The path or url to use"}],"category":"http"},{"name":"$httpAppendValue","version":"1.4.0","description":"Appends a key-value to form data","brackets":true,"unwrap":true,"args":[{"name":"key","description":"The key name to add this value to","rest":false,"required":true,"type":"String"},{"name":"value","type":"String","rest":false,"required":true,"description":"The value to set"}],"category":"http"},{"name":"$httpGetHeader","version":"1.5.0","description":"Gets an HTTP header","unwrap":true,"brackets":true,"args":[{"name":"name","description":"The header name","rest":false,"type":"String","required":true}],"output":["String"],"category":"http"},{"name":"$httpPing","version":"1.5.0","description":"Returns the response time of the HTTP request","aliases":["$httpResponseTime"],"unwrap":false,"experimental":true,"output":["Number"],"category":"http"},{"name":"$httpRemoveHeader","version":"1.0.0","description":"Removes an HTTP header","unwrap":true,"args":[{"name":"name","description":"The header name","rest":false,"type":"String","required":true}],"brackets":true,"category":"http"},{"name":"$httpRequest","version":"1.0.0","description":"Performs an http request, returns the status code","output":["Number"],"args":[{"name":"url","description":"The url to perform this request to","type":"String","rest":false,"required":true},{"name":"method","description":"The method to use","rest":false,"required":true,"type":"String"},{"name":"variable","description":"Environment variable name to load the response to","rest":false,"required":false,"type":"String"}],"brackets":true,"unwrap":true,"category":"http"},{"name":"$httpResult","version":"1.2.0","description":"Retrieve an http result value","brackets":false,"unwrap":true,"args":[{"name":"key","description":"The key to return its value","required":true,"type":"String","rest":true}],"output":["Json","Unknown"],"category":"http"},{"name":"$httpSetBody","version":"1.0.0","description":"Sets a JSON body for the request","args":[{"name":"body","description":"The JSON body","rest":false,"required":true,"type":"String"}],"unwrap":true,"brackets":true,"category":"http"},{"name":"$httpSetContentType","version":"1.4.0","description":"Forces the http request to be decoded using given content type","args":[{"name":"type","description":"The content type of the result","required":true,"type":"Enum","enum":["Json","Text"],"rest":false,"enumName":"HTTPContentType"}],"brackets":true,"unwrap":true,"category":"http"},{"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"}],"output":["String"],"unwrap":true,"category":"interaction"},{"name":"$applicationCommandDisplay","version":"1.4.0","description":"Gets the full command interaction with all options","unwrap":true,"brackets":false,"args":[{"name":"hide option name","description":"Whether to suppress option names from being displayed","rest":false,"required":true,"type":"Boolean"}],"output":["String"],"category":"interaction"},{"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"}],"output":["String"],"unwrap":true,"category":"interaction"},{"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"}],"output":["String"],"unwrap":true,"category":"interaction"},{"name":"$applicationCommandOptions","version":"1.5.0","description":"Returns an application command options in JSON format","brackets":false,"args":[{"name":"id","description":"The id of the command to pull its options","rest":false,"required":true,"type":"String"}],"output":["Json"],"unwrap":true,"category":"interaction"},{"name":"$applicationSubCommandGroupName","version":"1.5.0","description":"Returns the application sub command group name of this interaction","unwrap":false,"output":["String"],"category":"interaction"},{"name":"$applicationSubCommandName","version":"1.5.0","description":"Returns the application sub command name of this interaction","unwrap":false,"output":["String"],"category":"interaction"},{"name":"$authorizingIntegrationOwners","version":"1.5.0","description":"Returns the authorizing integration owners of this interaction","unwrap":true,"brackets":false,"args":[{"name":"type","description":"The type of authorizing integration owners to return","rest":false,"required":true,"type":"Enum","enum":["Guild","User"],"enumName":"AuthorizingIntegrationOwnersType"}],"output":["Json","User","Guild"],"category":"interaction"},{"name":"$autocomplete","version":"1.0.6","description":"Forces autocomplete response","unwrap":false,"category":"interaction"},{"name":"$context","version":"1.5.0","description":"Returns the context of this interaction","aliases":["$interactionContext"],"unwrap":false,"output":["InteractionContextType"],"category":"interaction"},{"name":"$customID","version":"1.0.0","description":"Retrieves the custom id of the interaction","unwrap":false,"output":["String"],"category":"interaction"},{"name":"$defer","version":"1.0.0","description":"Defers this interaction","unwrap":false,"category":"interaction"},{"name":"$deferUpdate","version":"1.3.0","description":"Defers this interaction as an update","unwrap":false,"category":"interaction"},{"name":"$ephemeral","version":"1.0.0","description":"Marks this reply as ephemeral","unwrap":false,"category":"interaction"},{"name":"$focusedOptionName","version":"1.0.6","description":"Returns the focused option of the command","unwrap":false,"output":["String"],"category":"interaction"},{"name":"$focusedOptionValue","version":"1.0.6","description":"Returns the focused option value of the command","unwrap":false,"output":["Unknown"],"category":"interaction"},{"name":"$input","version":"1.0.0","description":"Returns a value from a text field","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"custom ID","description":"The custom id to get the input field value","rest":false,"type":"String","required":true}],"category":"interaction"},{"name":"$interactionDelete","version":"1.4.0","description":"Deletes this interaction's reply","unwrap":false,"category":"interaction"},{"name":"$interactionFollowUp","version":"1.2.0","description":"Forces an interaction follow up","unwrap":true,"brackets":false,"output":["Message"],"args":[{"name":"content","description":"The content to use for this follow up","required":true,"type":"String","rest":false},{"name":"return message ID","description":"Whether to fetch and return the message id of the follow up","rest":false,"type":"Boolean","required":false}],"category":"interaction"},{"name":"$interactionRawData","version":"1.5.0","description":"Returns the raw data of this interaction","unwrap":false,"output":["Json"],"category":"interaction"},{"name":"$interactionReply","version":"1.0.0","description":"Forces an interaction reply","unwrap":true,"brackets":false,"output":["Message"],"args":[{"name":"content","description":"The content to use for this response","required":true,"type":"String","rest":false},{"name":"return message ID","description":"Whether to fetch and return the message id of the reply","rest":false,"type":"Boolean","required":false}],"category":"interaction"},{"name":"$interactionRequirePremium","version":"1.5.0","description":"Requires premium to use this interaction","unwrap":false,"deprecated":true,"category":"interaction"},{"name":"$interactionUpdate","version":"1.0.3","description":"Forces an interaction update","unwrap":true,"brackets":false,"args":[{"name":"content","description":"The content to use for this response","required":true,"type":"String","rest":false}],"category":"interaction"},{"name":"$isActivityCommand","version":"2.4.0","description":"Returns whether the interaction is an activity command","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isAnySelectMenu","version":"1.0.0","output":["Boolean"],"description":"Returns whether the context is a select menu","unwrap":false,"category":"interaction"},{"name":"$isAutocomplete","version":"1.0.6","description":"Returns whether the interaction is autocomplete","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isButton","version":"1.0.0","description":"Returns whether the interaction is a button","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isChannelSelectMenu","version":"1.0.0","description":"Returns whether the context is a channel select menu","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isCommand","version":"1.0.6","description":"Returns whether the interaction is a command","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isContextMenu","version":"1.0.6","description":"Returns whether the interaction is a context menu","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isMentionableSelectMenu","version":"1.0.0","description":"Returns whether the context is a mentionable select menu","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isModal","version":"1.0.0","description":"Returns whether the context is a modal","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isRepliable","version":"1.5.0","description":"Returns whether this interaction can be replied to","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isRoleSelectMenu","version":"1.0.0","description":"Returns whether the context is a role select menu","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isSlashCommand","version":"1.4.0","description":"Returns whether the interaction is a slash command","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isStringSelectMenu","version":"1.0.0","description":"Returns whether the context is a string select menu","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$isUserSelectMenu","version":"1.0.0","description":"Returns whether the context is a user select menu","unwrap":false,"output":["Boolean"],"category":"interaction"},{"name":"$launchActivity","version":"2.4.0","description":"Launches the activity of the client, if enabled","unwrap":false,"category":"interaction"},{"name":"$locale","aliases":["$interactionLocale"],"version":"1.4.0","description":"Retrieves the user locale of the interaction","unwrap":false,"output":["Locale"],"category":"interaction"},{"name":"$modal","version":"1.0.0","description":"Creates a modal","unwrap":true,"brackets":true,"args":[{"name":"custom ID","description":"The custom id for this modal","rest":false,"type":"String","required":true},{"name":"title","description":"The title for the modal","rest":false,"required":true,"type":"String"}],"category":"interaction"},{"name":"$option","version":"1.0.6","description":"Returns an option value with given name (interaction command)","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"option name","description":"The option name to retrieve its value","rest":false,"required":true,"type":"String"}],"category":"interaction"},{"name":"$selectMenuValues","version":"1.0.0","description":"Returns select menu values","brackets":false,"args":[{"name":"index","description":"The index of the value","type":"Number","rest":false},{"name":"separator","description":"The separator to use for each value","type":"String","rest":false}],"output":["String[]"],"unwrap":true,"category":"interaction"},{"name":"$showModal","version":"1.4.0","description":"Submits the modal","unwrap":false,"category":"interaction"},{"name":"$targetMember","version":"2.3.0","description":"Retrieves data of the target member","unwrap":true,"brackets":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["nickname","displayName","displayColor","roles","flags","mention","avatar","banner","bannable","kickable","guildID","id","manageable","timeout","timedOutUntil","status","addedRoles","roleCount","removedRoles","platform","timestamp","boosting","boostingSince","permissions","avatarDecoration"],"required":true,"enumName":"MemberProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"output":["Unknown"],"category":"interaction"},{"name":"$targetMessage","version":"1.5.0","description":"Retrieves data of the target message","unwrap":true,"brackets":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","content","flags","username","type","channelID","guildID","authorID","timestamp","editTimestamp","hasPoll","system","pinned","url","attachments","stickers"],"required":true,"enumName":"MessageProperty"},{"name":"separator","description":"Separator to use in case of array","rest":false,"type":"String"}],"output":["Unknown"],"category":"interaction"},{"name":"$targetMessageEmbeds","version":"1.5.0","description":"Retrieves data of embeds from the target message","aliases":["$targetMessageEmbed"],"unwrap":true,"brackets":false,"args":[{"name":"embed index","description":"The embed index to get data from","rest":false,"required":false,"type":"Number"},{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["title","titleURL","authorName","authorIcon","footerText","image","thumbnail","footerIcon","description","timestamp","authorURL","color","fieldName","fieldInline","fieldValue"],"required":false,"enumName":"EmbedProperty"},{"name":"field index","description":"The index of the field to get","rest":false,"type":"Number"}],"output":["Json","Unknown"],"category":"interaction"},{"name":"$deleteInvite","version":"1.0.0","brackets":true,"description":"Deletes an invite, returns bool","unwrap":true,"output":["Boolean"],"args":[{"name":"code","description":"The invite code","rest":false,"required":true,"type":"String"},{"name":"reason","description":"The reason for deleting the invite","rest":false,"type":"String"}],"category":"invite"},{"name":"$getInvite","version":"2.2.0","description":"Returns information about an invite","brackets":true,"unwrap":true,"output":["Json","Unknown"],"args":[{"name":"code","description":"The invite code","rest":false,"required":true,"type":"String"},{"name":"property","description":"The property of the invite to return","rest":false,"type":"Enum","enum":["authorID","channelID","guildID","uses","maxUses","maxAge","timestamp","code","url","type","expiresTimestamp","temporary","deletable","memberCount","presenceCount","targetType","targetUser"],"enumName":"InviteProperty"}],"category":"invite"},{"name":"$inviteExists","version":"1.0.0","description":"Returns whether an invite code exists","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"code","description":"The invite to check","rest":false,"required":true,"type":"String"}],"category":"invite"},{"name":"$inviterCode","version":"1.0.3","description":"Returns the invite code that was used by this person","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to get its invite code","rest":false,"required":true,"type":"Member","pointer":0}],"output":["Invite"],"category":"invite"},{"name":"$inviterID","version":"1.0.3","description":"Returns the user who invited this person","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to get its inviter","rest":false,"required":true,"type":"Member","pointer":0}],"output":["User"],"category":"invite"},{"name":"$isJSON","version":"1.4.0","aliases":["$isValidJSON"],"description":"Checks whether given json is valid","unwrap":true,"brackets":true,"args":[{"name":"json","description":"The json to check for","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"json"},{"name":"$jsonDelete","version":"1.4.0","description":"Delete a key from a traversed json","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"keys","description":"The keys to use to traverse the object","rest":true,"required":true,"type":"String"}],"category":"json"},{"name":"$jsonEntries","version":"1.4.0","description":"Gets entries from a json var","brackets":true,"args":[{"name":"variable","description":"The variable to get entries from","rest":false,"type":"String","required":true}],"output":["Json"],"unwrap":true,"category":"json"},{"name":"$jsonHas","version":"2.2.0","description":"Returns whether a key exists in a JSON object","brackets":true,"unwrap":true,"args":[{"name":"variable","description":"The variable that holds json","required":true,"type":"String","rest":false},{"name":"key","description":"The key to check for","type":"String","required":true,"rest":false}],"output":["Boolean"],"category":"json"},{"name":"$jsonKeys","version":"1.4.0","description":"Gets keys from a json var","brackets":true,"args":[{"name":"variable","description":"The variable to get keys from","rest":false,"type":"String","required":true}],"output":["Json"],"unwrap":true,"category":"json"},{"name":"$jsonLoad","version":"1.0.0","description":"Loads JSON to an env variable","brackets":true,"args":[{"name":"variable","description":"The variable to load it to","rest":false,"type":"String","required":true},{"name":"json","description":"The json data","type":"Json","required":true,"rest":false}],"unwrap":true,"category":"json"},{"name":"$jsonSet","version":"1.2.0","description":"Adds a json key with a value","unwrap":true,"brackets":true,"args":[{"name":"keys;value","description":"The keys to traverse, with the value to use at the end","type":"String","rest":true,"required":true}],"output":["Boolean"],"category":"json"},{"name":"$jsonStringify","version":"1.5.0","output":["Json"],"description":"Returns the JSON in stringified format","args":[{"name":"variable","description":"The variable to stringify","required":true,"type":"String","rest":false},{"name":"space","description":"The space to use","type":"Number","rest":false}],"brackets":true,"unwrap":true,"category":"json"},{"name":"$jsonValues","version":"1.4.0","description":"Gets values from a json var","brackets":true,"args":[{"name":"variable","description":"The variable to get values from","rest":false,"type":"String","required":true},{"name":"separator","description":"The separator to use for each value","type":"String","rest":false}],"output":["Json","Unknown[]"],"unwrap":true,"category":"json"},{"name":"$onlyForCategories","version":"1.5.0","description":"Only executes code if given ids match the current category","brackets":true,"unwrap":false,"args":[{"name":"code","description":"The code to execute if category is not whitelisted","rest":false,"required":true,"type":"String"},{"name":"channels","pointer":0,"description":"The categories to check for","rest":true,"required":true,"type":"Channel"}],"category":"limiter"},{"name":"$onlyForChannels","version":"1.5.0","description":"Only executes code if given ids match the current channel","brackets":true,"unwrap":false,"args":[{"name":"code","description":"The code to execute if channel is not whitelisted","rest":false,"required":true,"type":"String"},{"name":"channels","pointer":0,"description":"The channels to check for","rest":true,"required":true,"type":"Channel"}],"category":"limiter"},{"name":"$onlyForGuilds","version":"1.1.0","description":"Only executes code if given ids match the guild","brackets":true,"unwrap":false,"args":[{"name":"code","description":"The code to execute if guild is not whitelisted","rest":false,"required":true,"type":"String"},{"name":"guilds","description":"The guilds to check for","rest":true,"required":true,"type":"Guild"}],"category":"limiter"},{"name":"$onlyForRoles","version":"1.1.0","description":"Only executes code if user has given roles","brackets":true,"unwrap":false,"args":[{"name":"code","description":"The code to execute if user does not meet the roles","rest":false,"required":true,"type":"String"},{"name":"roles","pointer":0,"description":"The roles to check for","rest":true,"required":true,"type":"Role"}],"category":"limiter"},{"name":"$onlyForUsers","version":"1.1.0","description":"Only executes code if given ids match the author","brackets":true,"unwrap":false,"args":[{"name":"code","description":"The code to execute if user is not whitelisted","rest":false,"required":true,"type":"String"},{"name":"users","description":"The users to check for","rest":true,"required":true,"type":"User"}],"category":"limiter"},{"name":"$onlyIf","version":"1.0.0","description":"Stop execution if condition is not matched","unwrap":false,"brackets":true,"args":[{"name":"condition","condition":true,"description":"The condition to use","rest":false,"type":"String","required":true},{"name":"code","description":"The code to execute if error","rest":false,"type":"String"}],"category":"limiter"},{"name":"$stop","version":"1.0.0","description":"Stops code execution","unwrap":false,"category":"limiter"},{"name":"$chalkLog","version":"2.3.0","description":"Logs styled text to the console using Chalk","unwrap":true,"brackets":true,"args":[{"name":"text","description":"The text to log","type":"String","required":true,"rest":false},{"name":"styles","description":"The styles to apply to the text","type":"String","required":true,"rest":true}],"category":"logging"},{"name":"$log","version":"1.0.0","description":"Log something to console","unwrap":true,"args":[{"name":"message","description":"The message to log to console","rest":true,"type":"String","required":true}],"brackets":true,"category":"logging"},{"name":"$logger","version":"1.3.0","description":"Implements Logger API of ForgeScript","unwrap":true,"brackets":true,"args":[{"name":"log type","description":"The log type","enum":["Warn","Deprecated","Debug","Info","Error"],"type":"Enum","required":true,"rest":false,"enumName":"LogType"},{"name":"text","description":"The text to log","rest":false,"required":true,"type":"String"}],"category":"logging"},{"name":"$findApplicationEmoji","version":"2.2.0","description":"Finds an application emoji of the client","brackets":true,"output":["ApplicationEmoji"],"args":[{"name":"query","description":"The id, format or emoji name to find","rest":false,"type":"String","required":true}],"unwrap":true,"category":"lookup"},{"name":"$findChannel","version":"1.0.0","description":"Finds a channel","brackets":true,"output":["Channel"],"args":[{"name":"query","description":"The id, mention or channel name to find","rest":false,"type":"String","required":true},{"name":"return channel","description":"Returns the current channel id if none found","rest":false,"type":"Boolean"}],"unwrap":true,"category":"lookup"},{"name":"$findChannels","version":"1.5.0","description":"Finds channels of a guild using a query","brackets":true,"output":["Unknown[]"],"args":[{"name":"guild ID","description":"The guild to find the channels on","type":"Guild","rest":false,"required":true},{"name":"query","description":"The id, mention or channel name to find","rest":false,"type":"String","required":true},{"name":"limit","description":"The limit of results","rest":false,"type":"Number"},{"name":"property","description":"The property to return","rest":false,"type":"Enum","enum":["id","name","type","topic","bitrate","members","timestamp","nsfw","flags","parentID","position","rawPosition","slowmode","appliedTags","availableTags","archived","locked"],"enumName":"ChannelProperty"},{"name":"separator","description":"The separator to use for every result","rest":false,"type":"String"},{"name":"method","description":"The method to use for searching","rest":false,"type":"Enum","enum":["startsWith","endsWith","includes"],"enumName":"SearchMethodType"}],"unwrap":true,"category":"lookup"},{"name":"$findEmoji","version":"1.0.0","description":"Finds an emoji","brackets":true,"output":["Emoji"],"args":[{"name":"query","description":"The id, format or emoji name to find","rest":false,"type":"String","required":true}],"unwrap":true,"category":"lookup"},{"name":"$findGuild","version":"2.2.0","description":"Finds a guild","brackets":true,"output":["Guild"],"args":[{"name":"query","description":"The id or guild name to find","rest":false,"type":"String","required":true},{"name":"return guild","description":"Returns the current guild id if none found","rest":false,"type":"Boolean"}],"unwrap":true,"category":"lookup"},{"name":"$findGuildChannel","version":"1.0.0","description":"Finds a channel of a guild","brackets":true,"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to find the channel on","type":"Guild","rest":false,"required":true},{"name":"query","description":"The id, mention or channel name to find","rest":false,"type":"String","required":true},{"name":"return channel","description":"Returns the current channel id if none found","rest":false,"type":"Boolean"}],"unwrap":true,"category":"lookup"},{"name":"$findGuildEmoji","version":"1.0.0","description":"Finds an emoji of a guild","brackets":true,"output":["GuildEmoji"],"args":[{"name":"guild ID","description":"The guild to find the emoji on","type":"Guild","rest":false,"required":true},{"name":"query","description":"The id, format or emoji name to find","rest":false,"type":"String","required":true}],"unwrap":true,"category":"lookup"},{"name":"$findMember","version":"1.0.0","description":"Finds a member of a guild","brackets":true,"output":["Member"],"args":[{"name":"guild ID","description":"The guild to find the member on","type":"Guild","rest":false,"required":true},{"name":"query","description":"The id, mention or name to find","rest":false,"type":"String","required":true},{"name":"return author","description":"Returns the current author id if none found","rest":false,"type":"Boolean"}],"unwrap":true,"category":"lookup"},{"name":"$findMembers","version":"1.4.0","description":"Finds member of a guild using a query","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to use","rest":false,"required":true,"type":"Guild"},{"name":"query","description":"The query to use","rest":false,"required":true,"type":"String"},{"name":"limit","description":"The limit of results","rest":false,"type":"Number"},{"name":"enum value","description":"The enum value to use","rest":false,"type":"Enum","enum":["nickname","displayName","displayColor","roles","flags","mention","avatar","banner","bannable","kickable","guildID","id","manageable","timeout","timedOutUntil","status","addedRoles","roleCount","removedRoles","platform","timestamp","boosting","boostingSince","permissions","avatarDecoration"],"enumName":"MemberProperty"},{"name":"separator","description":"The separator to use for every result","rest":false,"type":"String"}],"output":["Unknown[]"],"category":"lookup"},{"name":"$findRole","version":"1.0.0","description":"Finds a role of a guild","brackets":true,"output":["Role"],"args":[{"name":"guild ID","description":"The guild to find the role on","type":"Guild","rest":false,"required":true},{"name":"query","description":"The id, mention or role name to find","rest":false,"type":"String","required":true}],"unwrap":true,"category":"lookup"},{"name":"$findRoles","version":"1.5.0","description":"Finds roles of a guild using a query","brackets":true,"output":["Unknown[]"],"args":[{"name":"guild ID","description":"The guild to find the roles on","type":"Guild","rest":false,"required":true},{"name":"query","description":"The id, mention or role name to find","rest":false,"type":"String","required":true},{"name":"limit","description":"The limit of results","rest":false,"type":"Number"},{"name":"property","description":"The property to return","rest":false,"type":"Enum","enum":["id","name","icon","color","hoisted","managed","mentionable","rawPosition","position","timestamp","permissions","tags","members","unicodeEmoji","secondaryColor","tertiaryColor"],"enumName":"RoleProperty"},{"name":"separator","description":"The separator to use for every result","rest":false,"type":"String"},{"name":"method","description":"The method to use for searching","rest":false,"type":"Enum","enum":["startsWith","endsWith","includes"],"enumName":"SearchMethodType"}],"unwrap":true,"category":"lookup"},{"name":"$findUser","version":"1.0.0","description":"Finds a user","brackets":true,"output":["User"],"args":[{"name":"query","description":"The id, mention or user name to find","rest":false,"type":"String","required":true},{"name":"return author","description":"Returns the current author id if none found","rest":false,"type":"Boolean"}],"unwrap":true,"category":"lookup"},{"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,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$base","version":"1.1.0","description":"Convert number from one base to another","brackets":true,"unwrap":true,"output":["Number"],"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}],"category":"math"},{"name":"$bigintDivide","version":"1.3.0","description":"Divides multiple numbers","brackets":true,"unwrap":true,"output":["BigInt"],"args":[{"name":"numbers","description":"Numbers to divide","rest":true,"type":"BigInt","required":true}],"category":"math"},{"name":"$bigintMulti","version":"1.3.0","description":"Multiplies multiple numbers","brackets":true,"unwrap":true,"output":["BigInt"],"args":[{"name":"numbers","description":"Numbers to multiply","rest":true,"type":"BigInt","required":true}],"category":"math"},{"name":"$bigintSub","version":"1.3.0","description":"Subtracts multiple numbers","brackets":true,"unwrap":true,"output":["BigInt"],"args":[{"name":"numbers","description":"Numbers to sub","rest":true,"type":"BigInt","required":true}],"category":"math"},{"name":"$bigintSum","version":"1.3.0","description":"Adds multiple numbers","brackets":true,"unwrap":true,"output":["BigInt"],"args":[{"name":"numbers","description":"Numbers to add","rest":true,"type":"BigInt","required":true}],"category":"math"},{"name":"$ceil","version":"1.5.0","description":"Returns the smallest integer greater than or equal to its numeric argument","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$divide","version":"1.0.0","description":"Divides multiple numbers","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers to divide","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$floor","version":"1.0.0","description":"Returns the greatest integer less than or equal to its numeric argument","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$logn","version":"1.0.0","description":"Returns the natural logarithm (base e) of a number","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"Number to get its logarithm","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$math","version":"1.0.0","description":"Runs math expression, returns nothing if incorrect expression","brackets":true,"output":["Number"],"unwrap":true,"args":[{"name":"expr","description":"The math expression to run","rest":false,"type":"String","required":true}],"category":"math"},{"name":"$max","version":"1.0.7","description":"Returns the largest number of the ones given","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers among which to find the largest","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$min","version":"1.0.7","description":"Returns the smallest number of the ones given","brackets":true,"output":["Number"],"unwrap":true,"args":[{"name":"numbers","description":"Numbers among which to find the smallest","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$modulo","version":"1.0.0","description":"Returns the remainder of multiple numbers","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers to get their remainders","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$multi","version":"1.0.0","description":"Multiplies multiple numbers","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers to multiply","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$pi","version":"2.2.0","description":"Returns the constant pi","unwrap":false,"output":["Number"],"category":"math"},{"name":"$pow","version":"1.0.0","aliases":["$power"],"description":"Exponentially multiply multiple numbers","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers to power by","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$round","version":"1.0.0","description":"Rounds provided number to a certain number of decimal places","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true},{"name":"decimal places","description":"The number of decimal places to round to","rest":false,"type":"Number"}],"category":"math"},{"name":"$sign","version":"2.2.0","description":"Returns the sign of the x, indicating whether x is positive, negative or zero","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$sqrt","version":"1.0.0","description":"Returns the square root of a number","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$sub","version":"1.0.0","description":"Subtracts multiple numbers","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers to sub","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$sum","version":"1.0.0","description":"Adds multiple numbers","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"numbers","description":"Numbers to add","rest":true,"type":"Number","required":true}],"category":"math"},{"name":"$trunc","version":"1.0.0","description":"Returns the integer part of the a numeric expression, x, removing any fractional digits. If x is already an integer, the result is x","aliases":["$truncate"],"brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"number","description":"The number to use","rest":false,"type":"Number","required":true}],"category":"math"},{"name":"$ban","version":"1.0.0","aliases":["$memberBan","$banMember"],"description":"Bans a member from the guild, returns true or false depending on whether the action was successfully performed","unwrap":true,"brackets":true,"output":["Boolean"],"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"}],"category":"member"},{"name":"$fetchMembers","version":"1.0.0","description":"Caches all members of a guild","aliases":["$fetchMember"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to cache members of","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to fetch","rest":false,"type":"Member","pointer":0}],"category":"member"},{"name":"$hasAnyPerms","version":"1.4.0","description":"Returns whether given member has any of the provided perms","unwrap":true,"aliases":["$memberHasAnyPerms"],"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check for perms","rest":false,"type":"Member","required":true,"pointer":0},{"name":"perms","description":"The perms to check for","rest":true,"type":"Enum","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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps","PinMessages"],"required":true,"enumName":"PermissionFlagsBits"}],"category":"member"},{"name":"$hasAnyRole","version":"1.1.0","description":"Returns whether given member has any role","unwrap":true,"aliases":["$memberHasAnyRole"],"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check for roles","rest":false,"type":"Member","required":true,"pointer":0},{"name":"roles","description":"The roles to check for","rest":true,"type":"Role","required":true,"pointer":0}],"category":"member"},{"name":"$hasPerms","version":"1.0.0","description":"Returns whether given member has X perms","unwrap":true,"aliases":["$memberHasPerms"],"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check for perms","rest":false,"type":"Member","required":true,"pointer":0},{"name":"perms","description":"The perms to check for","rest":true,"type":"Enum","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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps","PinMessages"],"required":true,"enumName":"PermissionFlagsBits"}],"category":"member"},{"name":"$hasRoles","version":"1.1.0","description":"Returns whether given member has all roles","unwrap":true,"aliases":["$memberHasRoles"],"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check for roles","rest":false,"type":"Member","required":true,"pointer":0},{"name":"roles","description":"The roles to check for","rest":true,"type":"Role","required":true,"pointer":0}],"category":"member"},{"name":"$isBanned","version":"1.0.0","brackets":true,"unwrap":true,"aliases":["$memberIsBanned"],"output":["Boolean"],"description":"Returns whether this user is banned","args":[{"name":"guild ID","description":"The guild to check bans on","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check ban","rest":false,"type":"User","required":true}],"category":"member"},{"name":"$isBoosting","description":"Returns whether this member is boosting","version":"1.5.0","aliases":["$isBooster","$memberIsBooster","$memberIsBoosting"],"brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check boost status for","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isDeaf","version":"1.0.0","description":"Whether a member is deafened","brackets":false,"unwrap":true,"aliases":["$memberIsDeaf"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isGuildDeaf","version":"1.0.0","description":"Whether a member is server deafened","brackets":false,"aliases":["$memberIsGuildDeaf"],"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isGuildMuted","version":"1.0.0","description":"Whether a member is server muted","brackets":false,"aliases":["$memberIsGuildMuted"],"output":["Boolean"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isMuted","version":"1.0.0","description":"Whether a member is muted","brackets":false,"unwrap":true,"aliases":["$memberIsMuted"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isSelfDeaf","version":"1.0.0","description":"Whether a member is self deafened","brackets":false,"unwrap":true,"aliases":["$memberIsSelfDeaf"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isSelfMuted","version":"1.0.0","description":"Whether a member is self muted","brackets":false,"unwrap":true,"aliases":["$memberIsSelfMuted"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isTimedOut","version":"1.0.0","description":"Whether an member is timed out","unwrap":true,"brackets":false,"aliases":["$memberIsTimedOut"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to check for timeout","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$isVerified","version":"1.0.0","aliases":["$memberIsVerified"],"description":"Whether a member is verified","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get its voice state","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$kickMember","version":"1.0.0","description":"Kicks a member from the guild, returns true or false depending on whether the action was successfully performed","unwrap":true,"brackets":true,"aliases":["$memberKick"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to kick a member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to kick","rest":false,"type":"Member","pointer":0,"required":true},{"name":"reason","description":"The reason to kick for","rest":false,"type":"String"}],"category":"member"},{"name":"$memberActivity","version":"1.5.0","description":"Returns the activity of a member","aliases":["$activity","$userActivity","$memberActivities"],"unwrap":true,"output":["Unknown[]"],"args":[{"name":"guild ID","description":"The guild to pull the member from","required":true,"rest":false,"type":"Guild"},{"name":"user ID","description":"The member to return its activity","required":true,"rest":false,"type":"Member","pointer":0},{"name":"property","description":"The property of the activity to return","rest":false,"type":"Enum","enum":["name","type","details","buttons","flags","timestamp","endTimestamp","startTimestamp","partyID","partySize","syncID","url","largeText","largeImage","smallText","smallImage"],"enumName":"ActivityProperty"},{"name":"separator","description":"The separator to use for every property","rest":false,"type":"String"}],"brackets":false,"category":"member"},{"name":"$memberAddRoles","version":"1.0.0","description":"Adds roles to a member, returns bool","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to add roles to","rest":false,"type":"Member","required":true,"pointer":0},{"name":"roles","description":"The roles to add","rest":true,"type":"Role","pointer":0}],"category":"member"},{"name":"$memberAvatar","version":"1.0.0","description":"Returns the member avatar","brackets":false,"output":["URL"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to retrieve the avatar","rest":false,"required":true,"pointer":0,"type":"Member"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"member"},{"name":"$memberAvatarDecoration","version":"2.4.0","description":"Returns the member's avatar decoration","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to get its avatar decoration","pointer":0,"rest":false,"type":"Member","required":true}],"output":["URL"],"category":"member"},{"name":"$memberBanner","version":"2.1.0","description":"Returns the member banner","brackets":false,"output":["URL"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to retrieve the banner","rest":false,"required":true,"pointer":0,"type":"Member"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"member"},{"name":"$memberBoostingSince","version":"1.5.0","aliases":["$boostingSince","$boosterSince","$memberBoosterSince"],"brackets":false,"unwrap":true,"output":["Number"],"description":"Returns when the member started boosting the guild","args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to check boost status for","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$memberCustomStatus","version":"1.5.0","aliases":["$customStatus","$userCustomStatus"],"description":"Returns the custom status of a member","unwrap":true,"output":["String"],"args":[{"name":"guild ID","description":"The guild to pull the user from","required":true,"rest":false,"type":"Guild"},{"name":"user ID","description":"The user to return its custom status","required":true,"rest":false,"type":"Member"},{"name":"type","description":"The type of the custom status to fetch","rest":false,"type":"Enum","enum":["state","emoji"],"enumName":"CustomStatusType"}],"brackets":false,"category":"member"},{"name":"$memberDisplayColor","version":"1.0.0","description":"Returns the display color of a member","unwrap":true,"brackets":false,"output":["Color"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","pointer":0,"description":"The user to get its color","rest":false,"type":"Member","required":true}],"category":"member"},{"name":"$memberDisplayName","version":"2.3.0","description":"Returns the display name of a member","unwrap":true,"brackets":false,"output":["String"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","pointer":0,"description":"The user to get its display name","rest":false,"type":"Member","required":true}],"category":"member"},{"name":"$memberExists","version":"1.0.0","description":"Returns whether an member id exists","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to check for the member","type":"Guild","rest":false,"required":true},{"name":"member ID","description":"The member to check for","rest":false,"required":true,"type":"String"}],"category":"member"},{"name":"$memberFlags","version":"1.5.0","description":"Returns the flags of a member","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","pointer":0,"description":"The user to get its flags","rest":false,"type":"Member","required":true},{"name":"separator","description":"The separator to use for every flag","type":"String","required":false,"rest":false}],"output":["GuildMemberFlags[]"],"category":"member"},{"name":"$memberHighestRoleID","version":"1.0.0","description":"Returns the highest role id of a member","unwrap":true,"output":["Role"],"brackets":false,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","pointer":0,"description":"The user to get its highest role id","rest":false,"type":"Member","required":true}],"category":"member"},{"name":"$memberJoinPosition","version":"1.5.0","description":"Returns the position at which the member joined the guild","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to get its join position","rest":false,"pointer":0,"type":"Member","required":true}],"category":"member"},{"name":"$memberJoinedAt","version":"1.0.0","description":"Returns the timestamp the member joined at","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to get its join date","rest":false,"pointer":0,"type":"Member","required":true}],"category":"member"},{"name":"$memberLowestRoleID","version":"1.5.0","description":"Returns the lowest role id of a member","unwrap":true,"output":["Role"],"brackets":false,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","pointer":0,"description":"The user to get its lowest role id","rest":false,"type":"Member","required":true}],"category":"member"},{"name":"$memberPerms","version":"1.0.0","description":"Returns the member perms","brackets":false,"unwrap":true,"output":["PermissionFlagsBits[]"],"args":[{"name":"guild ID","description":"The guild to pull the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to return its perms","rest":false,"type":"Member","pointer":0,"required":true},{"name":"separator","description":"The separator to use for every perm","type":"String","required":false,"rest":false},{"name":"return int","description":"Whether to return the perms as bitfield int","type":"Boolean","rest":false}],"category":"member"},{"name":"$memberRawData","version":"1.5.0","description":"Returns the raw data of a member","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to get raw data from","rest":false,"type":"Member","pointer":0,"required":true}],"output":["Json"],"category":"member"},{"name":"$memberRemoveRoles","version":"1.0.0","description":"Removes roles from a member, returns bool","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","pointer":0,"description":"The user to remove roles from","rest":false,"type":"Member","required":true},{"name":"roles","description":"The roles to remove","rest":true,"type":"Role","pointer":0}],"category":"member"},{"name":"$memberRoles","version":"1.0.0","description":"Returns the role ids of a member","unwrap":true,"brackets":false,"output":["Role[]"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to get roles from","rest":false,"pointer":0,"type":"Member","required":true},{"name":"separator","description":"The separator to use for each role","rest":false,"type":"String"}],"category":"member"},{"name":"$memberSetNickname","version":"1.0.7","description":"Edits a member's nickname, returns bool","brackets":true,"output":["Boolean"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to edit its nickname","rest":false,"required":true,"pointer":0,"type":"Member"},{"name":"nickname","description":"The new nickname, leave empty to reset","rest":false,"type":"String"}],"category":"member"},{"name":"$memberSetRoles","version":"1.0.0","description":"Sets roles to a member, returns bool","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The user to set roles to","rest":false,"type":"Member","pointer":0,"required":true},{"name":"roles","description":"The roles to set","rest":true,"type":"Role","pointer":0}],"category":"member"},{"name":"$memberTimeoutDuration","version":"1.5.0","aliases":["$timeoutDuration","$getTimeoutDuration","$timedOutUntil","$memberTimedOutUntil"],"description":"Returns the timeout duration of a member","unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to get duration for","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$nickname","version":"1.0.0","description":"Returns the member nickname","brackets":false,"aliases":["$memberNickname"],"unwrap":true,"output":["String"],"args":[{"name":"guild ID","description":"The guild to return the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to return its nickname","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$platform","version":"1.0.0","description":"Returns the member platforms","brackets":false,"aliases":["$memberPlatforms","$platforms","$memberPlatform"],"unwrap":true,"output":["String[]"],"args":[{"name":"guild ID","description":"The guild id to return the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member id return its platform","rest":false,"type":"Member","pointer":0,"required":true},{"name":"separator","description":"The separator for each platform","rest":false,"type":"String"}],"category":"member"},{"name":"$pruneMembers","version":"1.5.0","aliases":["$prune","$membersPrune"],"description":"Prunes inactive members from the guild, returns number of kicked members","unwrap":true,"brackets":true,"output":["Number"],"args":[{"name":"guild ID","description":"The guild to prune members from","rest":false,"required":true,"type":"Guild"},{"name":"days","description":"The days of inactivity required to kick","rest":false,"type":"Number"},{"name":"dry","description":"Whether to perform a dry prune","rest":false,"type":"Boolean"},{"name":"reason","description":"The reason for pruning members","rest":false,"type":"String"},{"name":"roles","description":"The roles to include when pruning","rest":true,"type":"Role"}],"category":"member"},{"name":"$randomMemberID","version":"1.0.3","description":"Returns a random member ID of a guild","unwrap":true,"output":["Member"],"brackets":false,"args":[{"name":"guild ID","description":"The guild to get member from","rest":false,"required":true,"type":"Guild"}],"category":"member"},{"name":"$status","version":"1.0.0","description":"Returns the member status","brackets":false,"unwrap":true,"aliases":["$memberStatus","$statuses","$memberStatuses"],"output":["String"],"args":[{"name":"guild ID","description":"The guild to return the member from","rest":false,"type":"Guild","required":true},{"name":"user ID","description":"The member to return its status","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$timeout","version":"1.0.0","description":"Times a member out for X milliseconds, returns bool","unwrap":true,"aliases":["$memberTimeout","$timeoutMember"],"output":["Boolean"],"brackets":true,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The member to timeout","rest":false,"required":true,"type":"Member","pointer":0},{"name":"duration","description":"The duration to timeout for","rest":false,"type":"Time"},{"name":"reason","description":"The reason to timeout the member","rest":false,"type":"String"}],"category":"member"},{"name":"$unban","version":"1.0.0","brackets":true,"unwrap":true,"aliases":["$memberUnban","$unbanMember"],"output":["Boolean"],"description":"Unbans a user from a guild, returns bool","args":[{"name":"guild ID","description":"The guild to unban user from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","description":"The user to unban","rest":false,"type":"User","required":true},{"name":"reason","description":"The unban reason","rest":false,"type":"String"}],"category":"member"},{"name":"$voiceID","version":"1.0.3","description":"Returns the voice channel id a member is connected to","unwrap":true,"aliases":["$memberVoiceID"],"brackets":false,"output":["Channel"],"args":[{"name":"guild ID","description":"The guild to pull member from","required":true,"rest":false,"type":"Guild"},{"name":"user ID","description":"The member to get its voice channel","rest":false,"type":"Member","pointer":0,"required":true}],"category":"member"},{"name":"$voiceKick","version":"1.4.0","description":"Kicks a member from a voice channel, returns bool","brackets":true,"aliases":["$memberVoiceKick"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","rest":false,"required":true,"type":"Member","pointer":0,"description":"The user to kick"},{"name":"reason","description":"The reason to kick this user","rest":false,"required":false,"type":"String"}],"unwrap":true,"category":"member"},{"name":"$voiceMove","version":"1.4.0","description":"Moves a member from a voice channel, returns bool","brackets":true,"aliases":["$memberVoiceMove"],"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"user ID","rest":false,"required":true,"type":"Member","pointer":0,"description":"The user to move"},{"name":"channel ID","description":"The voice channel to move this user to","rest":false,"required":false,"type":"Channel"},{"name":"reason","description":"The reason for moving the user","rest":false,"type":"String"}],"unwrap":true,"category":"member"},{"name":"$disableAllMentions","version":"1.3.0","description":"Disables every possible mention","unwrap":false,"category":"mention"},{"name":"$disableEveryoneMention","version":"1.3.0","description":"Disables everyone mention","unwrap":false,"category":"mention"},{"name":"$disableRoleMentions","version":"1.3.0","description":"Disables all role mentions","unwrap":false,"category":"mention"},{"name":"$disableUserMentions","version":"1.3.0","description":"Disables all user mentions","unwrap":false,"category":"mention"},{"name":"$enableRoleMentions","version":"1.3.0","description":"Only parses these roles for mentions","unwrap":true,"brackets":true,"args":[{"name":"guild ID","rest":false,"required":true,"type":"Guild","description":"The guild to retrieve roles from"},{"name":"roles","rest":true,"required":true,"pointer":0,"type":"Role","description":"The roles to parse mentions for"}],"category":"mention"},{"name":"$enableUserMentions","version":"1.3.0","description":"Only parses these users for mentions","unwrap":true,"brackets":true,"args":[{"name":"users","rest":true,"required":true,"type":"User","description":"The users to parse mentions for"}],"category":"mention"},{"name":"$isChannelMentioned","version":"1.3.0","description":"Returns whether a channel was mentioned in this message","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","rest":false,"description":"Channel to pull the message from","required":true,"type":"Channel"},{"name":"message ID","rest":false,"required":true,"type":"Message","pointer":0,"description":"The message to get mentions from"},{"name":"channel ID","rest":false,"required":true,"type":"Channel","description":"The entity to check for mentions"}],"category":"mention"},{"name":"$isRoleMentioned","version":"1.3.0","description":"Returns whether a role was mentioned in this message","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","rest":false,"description":"Channel to pull the message from","required":true,"type":"Channel"},{"name":"message ID","rest":false,"required":true,"type":"Message","pointer":0,"description":"The message to get mentions from"},{"name":"role ID","rest":false,"required":true,"type":"String","description":"The entity to check for mentions"}],"category":"mention"},{"name":"$isUserMentioned","version":"1.3.0","description":"Returns whether a user was mentioned in this message","unwrap":true,"output":["Boolean"],"brackets":true,"args":[{"name":"channel ID","rest":false,"description":"Channel to pull the message from","required":true,"type":"Channel"},{"name":"message ID","rest":false,"required":true,"type":"Message","pointer":0,"description":"The message to get mentions from"},{"name":"user ID","rest":false,"required":true,"type":"User","description":"The entity to check for mentions"}],"category":"mention"},{"name":"$mentioned","version":"1.0.0","brackets":false,"description":"Returns the mentioned users","unwrap":true,"output":["User[]"],"args":[{"name":"index","description":"The index of the user","rest":false,"type":"Number","required":true},{"name":"return author","description":"Return author ID if not found","rest":false,"type":"Boolean"}],"category":"mention"},{"name":"$mentionedChannelCount","aliases":["$mentionedChannelsCount"],"output":["Number"],"version":"1.3.0","description":"Returns the mentioned channel count","unwrap":false,"category":"mention"},{"name":"$mentionedChannels","aliases":["$mentionedChannel"],"output":["Channel[]"],"version":"1.0.0","brackets":false,"description":"Returns the mentioned channels","unwrap":true,"args":[{"name":"index","description":"The index of the channel","rest":false,"type":"Number","required":true},{"name":"return channel","description":"Whether to return current channel if not found","rest":false,"type":"Boolean"}],"category":"mention"},{"name":"$mentionedRoleCount","aliases":["$mentionedRolesCount"],"output":["Number"],"version":"1.3.0","description":"Returns the mentioned role count","unwrap":false,"category":"mention"},{"name":"$mentionedRoles","aliases":["$mentionedRole"],"output":["Role[]"],"version":"1.0.0","brackets":false,"description":"Returns the mentioned roles","unwrap":true,"args":[{"name":"index","description":"The index of the role","rest":false,"type":"Number","required":true}],"category":"mention"},{"name":"$mentionedUserCount","aliases":["$mentionedUsersCount"],"output":["Number"],"version":"1.3.0","description":"Returns the mentioned user count","unwrap":false,"category":"mention"},{"name":"$nomention","version":"1.3.0","description":"Disables reply ping","unwrap":false,"category":"mention"},{"name":"$addMessageReactions","version":"1.0.0","description":"Adds reactions to a message, returns amount of emojis successfully reacted","unwrap":true,"output":["Number"],"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}],"category":"message"},{"name":"$attachment","version":"1.0.0","brackets":true,"description":"Adds an attachment to the response","unwrap":true,"aliases":["$addAttachment"],"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":"encoding","description":"Encoding to use for text, utf-8 default","rest":false,"type":"String"},{"name":"description","description":"The description for this attachment","rest":false,"type":"String"}],"category":"message"},{"name":"$deleteAllMessageReactions","version":"1.0.0","description":"Deletes all reactions from a message, returns bool","unwrap":true,"output":["Boolean"],"brackets":false,"args":[{"name":"channel ID","description":"The channel the message is located","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to remove reactions from","rest":false,"type":"Message","pointer":0,"required":true}],"category":"message"},{"name":"$deleteIn","version":"1.5.0","description":"Deletes the response after the given time","unwrap":true,"brackets":true,"args":[{"name":"duration","description":"The duration to wait for until deletion","rest":false,"required":true,"type":"Time"}],"category":"message"},{"name":"$deleteMessage","version":"1.0.0","brackets":true,"unwrap":true,"output":["Number"],"aliases":["$deleteMessages"],"description":"Deletes given messages, returns the count of messages deleted","args":[{"name":"channel ID","description":"The channel to delete this message from","rest":false,"required":true,"type":"Channel"},{"name":"messages","description":"The message ids to delete","rest":true,"required":true,"pointer":0,"type":"String"}],"category":"message"},{"name":"$deleteUserMessageReaction","version":"1.0.6","description":"Deletes user emoji reaction from a message, returns bool","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel the message is located","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to remove user emoji reaction","rest":false,"type":"Message","pointer":0,"required":true},{"name":"emoji","description":"The message reaction to remove user from","rest":false,"required":true,"pointer":1,"type":"Reaction"},{"name":"user ID","description":"The user to delete its reaction","required":true,"rest":false,"type":"User"}],"category":"message"},{"name":"$editMessage","version":"1.0.0","description":"Edits a message in a channel, returns bool","unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to edit this message","required":true,"type":"Channel","rest":false},{"name":"message ID","description":"The message to edit","rest":false,"type":"Message","pointer":0,"required":true},{"name":"content","description":"The content for the message","type":"String","rest":false}],"brackets":true,"category":"message"},{"name":"$fetchComponents","version":"1.0.0","description":"Fetches a message's components, this will override any other component added to the response","aliases":["$fetchRows"],"unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to get the components from","pointer":0,"rest":false,"type":"Message","required":true}],"category":"message"},{"name":"$fetchEmbeds","version":"1.4.0","aliases":["$fetchEmbed","$cloneEmbed","$cloneEmbeds"],"description":"Fetches an embed or all embeds from a message to the next response","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to get embeds from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"index","description":"The embed index to load","rest":false,"type":"Number"}],"category":"message"},{"name":"$fetchMessage","version":"2.2.0","description":"Fetches all data of a message","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to fetch its data","rest":false,"required":true,"pointer":0,"type":"Message"}],"category":"message"},{"name":"$fetchResponse","version":"1.4.0","brackets":false,"unwrap":true,"description":"Fetches all data from the message and loads it to response, this includes: embeds, components, attachments, stickers","args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to fetch its data","rest":false,"required":true,"pointer":0,"type":"Message"}],"category":"message"},{"name":"$forwardMessage","version":"2.2.0","description":"Forwards a message to another channel, returns bool","aliases":["$forward"],"unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to forward","rest":false,"required":true,"type":"Message","pointer":0},{"name":"channel ID","description":"The channel to forward message to","rest":false,"type":"Channel"}],"output":["Boolean"],"category":"message"},{"name":"$getComponents","version":"1.4.0","description":"Retrieves data of a component, not providing any property returns component json","unwrap":true,"brackets":false,"aliases":["$getComponent"],"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to retrieve data from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"row index","description":"The row index to get data from","rest":false,"required":false,"type":"Number"},{"name":"component index","description":"The first component index to get data from","rest":false,"required":false,"type":"Number"},{"name":"property","description":"The first property to pull","rest":false,"type":"Enum","enum":["id","type","customID","label","style","url","disabled","maxValues","minValues","optionCount","options","optionNames","emoji","optionDescriptions","optionValues","content","accentColor","spoiler","divider","spacing","items","itemUrls","fileUrl","accessory","components","thumbnailUrl"],"required":false,"enumName":"ComponentProperty"},{"name":"separator","description":"The separator to use for each value in case of array","rest":false,"type":"String"},{"name":"component index","description":"The second component index to get data from","rest":false,"type":"Number"},{"name":"property","description":"The second property to pull","rest":false,"type":"Enum","enum":["id","type","customID","label","style","url","disabled","maxValues","minValues","optionCount","options","optionNames","emoji","optionDescriptions","optionValues","content","accentColor","spoiler","divider","spacing","items","itemUrls","fileUrl","accessory","components","thumbnailUrl"],"enumName":"ComponentProperty"}],"output":["Json","Unknown"],"category":"message"},{"name":"$getEmbeds","version":"1.0.3","description":"Retrieves data of an embed, not providing any property returns embed json","unwrap":true,"output":["Unknown"],"brackets":false,"aliases":["$getEmbed"],"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to retrieve data from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"embed index","description":"The embed index to get data from","rest":false,"required":false,"type":"Number"},{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["title","titleURL","authorName","authorIcon","footerText","image","thumbnail","footerIcon","description","timestamp","authorURL","color","fieldName","fieldInline","fieldValue"],"required":false,"enumName":"EmbedProperty"},{"name":"field index","description":"Index of field to get","rest":false,"type":"Number"}],"category":"message"},{"name":"$getMessage","version":"1.0.3","description":"Retrieves data of a message","unwrap":true,"output":["Unknown"],"brackets":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to retrieve data from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","content","flags","username","type","channelID","guildID","authorID","timestamp","editTimestamp","hasPoll","system","pinned","url","attachments","stickers"],"required":true,"enumName":"MessageProperty"},{"name":"separator","description":"Separator to use in case of array","rest":false,"type":"String"}],"category":"message"},{"name":"$getMessageReactionCount","version":"1.0.0","description":"Gets the amount of users that have reacted to a specific emoji","unwrap":true,"output":["Number"],"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 get emoji count from","rest":false,"type":"Message","pointer":0,"required":true},{"name":"emoji","description":"The emoji to get its user count","required":true,"pointer":1,"rest":false,"type":"Reaction"},{"name":"type","description":"The type of the reaction to count users for","rest":false,"type":"Enum","enum":["normal","burst"],"enumName":"ReactionType"}],"category":"message"},{"name":"$getMessageReactionUsers","version":"1.0.0","description":"Gets the user ids that have reacted to a specific emoji","unwrap":true,"output":["User[]"],"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 get emoji users from","rest":false,"type":"Message","pointer":0,"required":true},{"name":"emoji","description":"The emoji to get its users","required":true,"pointer":1,"rest":false,"type":"Reaction"},{"name":"separator","description":"The separator to use for every user","rest":false,"type":"String"}],"category":"message"},{"name":"$getMessageReactions","version":"2.2.0","description":"Retrieves all reactions of a message","aliases":["$getReactions"],"unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to retrieve reactions from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"property","description":"The property of the reactions to return","rest":false,"type":"Enum","enum":["emoji","count","burstCount","normalCount","me","meBurst","burstColors"],"enumName":"ReactionProperty"},{"name":"separator","description":"The separator to use for each property","rest":false,"type":"String"}],"output":["Unknown[]"],"category":"message"},{"name":"$getPoll","version":"2.5.0","description":"Retrieves data of a poll from a message","aliases":["$getMessagePoll"],"unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to retrieve data from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["question","layoutType","answers","answerCount","totalVotes","expiresTimestamp","allowMultiselect","resultsFinalized"],"required":true,"enumName":"PollProperty"}],"output":["Unknown"],"category":"message"},{"name":"$getSnapshots","version":"2.4.0","description":"Retrieves data of snapshots from a message","aliases":["$getSnapshot"],"unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to retrieve data from","rest":false,"required":true,"type":"Message","pointer":0},{"name":"index","description":"The index of the snapshot to get","rest":false,"type":"Number"},{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","content","flags","username","type","channelID","guildID","authorID","timestamp","editTimestamp","hasPoll","system","pinned","url","attachments","stickers"],"enumName":"MessageProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"output":["Json","Unknown[]"],"category":"message"},{"name":"$hasComponents","version":"2.5.0","description":"Checks whether given message has components","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get message from","type":"Channel","rest":false,"required":true},{"name":"message ID","pointer":0,"rest":false,"required":true,"type":"Message","description":"The message to check for components"}],"output":["Boolean"],"category":"message"},{"name":"$hasEmbeds","version":"1.2.0","brackets":false,"output":["Boolean"],"description":"Checks whether given message has embeds","unwrap":true,"args":[{"name":"channel ID","description":"The channel to get message from","type":"Channel","rest":false,"required":true},{"name":"message ID","pointer":0,"rest":false,"required":true,"type":"Message","description":"The message to check for embeds"}],"category":"message"},{"name":"$isPinned","version":"1.5.0","description":"Returns whether the message is pinned","aliases":["$isMessagePinned","$messagePinned"],"unwrap":true,"brackets":false,"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 check if its pinned","rest":false,"required":true,"type":"Message"}],"output":["Boolean"],"category":"message"},{"name":"$loadComponents","version":"1.4.0","aliases":["$loadComponent"],"description":"Loads components JSON (or array) to the response","unwrap":true,"brackets":true,"args":[{"name":"component data","type":"Json","rest":false,"required":true,"description":"The components object or array of objects to load"}],"category":"message"},{"name":"$loadEmbeds","version":"1.4.0","aliases":["$loadEmbed"],"description":"Loads embed json (or array) to the response","unwrap":true,"brackets":true,"args":[{"name":"embed data","type":"Json","rest":false,"required":true,"description":"The embed object or array of objects to load"}],"category":"message"},{"name":"$message","version":"1.0.0","output":["String"],"description":"Retrieves arguments from a message command","args":[{"name":"index","description":"Index to get arg","type":"Number","required":true,"rest":false},{"name":"end index","description":"The end index","rest":false,"type":"Number"}],"brackets":false,"unwrap":true,"category":"message"},{"name":"$messageAttachment","version":"1.4.0","output":["URL"],"description":"Retrieves an attachment from this message","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 of the attachment","type":"Number","required":true}],"category":"message"},{"name":"$messageAttachmentCount","version":"1.4.0","output":["Number"],"description":"Retrieve the amount of attachments in this message","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 attachment count","rest":false,"required":true,"type":"Message"}],"category":"message"},{"name":"$messageAttachmentFlags","version":"1.5.0","description":"Returns the flags of an attachment from this message","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 attachment flags","rest":false,"required":true,"type":"Message"},{"name":"index","rest":false,"description":"The index of the attachment","type":"Number","required":true},{"name":"separator","description":"The separator to use for every flag","type":"String","required":false,"rest":false}],"output":["AttachmentFlags[]"],"category":"message"},{"name":"$messageAttachments","version":"1.4.0","output":["Attachment[]"],"description":"Retrieves all attachments of this message","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":"separator","rest":false,"description":"The separator to use for every attachment","type":"String"}],"category":"message"},{"name":"$messageContent","version":"1.4.0","output":["String"],"description":"Retrieves the content of the message","unwrap":false,"category":"message"},{"name":"$messageCreatedAt","version":"1.0.2","output":["Number"],"description":"Returns the timestamp of the message","unwrap":true,"brackets":false,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get the message from","type":"Channel"},{"name":"message ID","description":"The message to get its timestamp","rest":false,"type":"Message","pointer":0,"required":true}],"category":"message"},{"name":"$messageEditedAt","version":"1.5.0","output":["Number"],"description":"Returns the edited timestamp of the message","unwrap":true,"brackets":false,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get the message from","type":"Channel"},{"name":"message ID","description":"The message to get its edited timestamp","rest":false,"type":"Message","pointer":0,"required":true}],"category":"message"},{"name":"$messageEmojis","version":"2.4.0","description":"Retrieves all emojis of this message","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 emojis","rest":false,"required":true,"type":"Message"},{"name":"separator","rest":false,"description":"The separator to use for every emoji","type":"String"},{"name":"return ids","rest":false,"description":"Whether to return the emoji ids, excludes unicode emojis","type":"Boolean"}],"output":["Emoji[]"],"category":"message"},{"name":"$messageExists","version":"1.0.5","description":"Returns whether given message id exists","unwrap":true,"output":["Boolean"],"brackets":true,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get the message from","type":"Channel"},{"name":"message ID","description":"The message to check for","rest":false,"type":"String","required":true}],"category":"message"},{"name":"$messageFlags","version":"1.5.0","description":"Returns the flags of a message","brackets":false,"unwrap":true,"output":["MessageFlags[]"],"args":[{"name":"channel ID","description":"The channel to get the message from","rest":false,"type":"Channel","required":true},{"name":"message ID","description":"The message to return its flags","rest":false,"type":"Message","pointer":0,"required":true},{"name":"separator","description":"The separator to use for every flag","type":"String","required":false,"rest":false}],"category":"message"},{"name":"$messageID","version":"1.0.0","description":"Returns the message id","unwrap":false,"output":["Message"],"category":"message"},{"name":"$messageLink","version":"1.0.0","description":"Retrieves a message url","unwrap":true,"brackets":false,"output":["URL"],"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get the message from","type":"Channel"},{"name":"message ID","description":"The message to get its url","rest":false,"type":"Message","pointer":0,"required":true}],"category":"message"},{"name":"$messageRawData","version":"1.5.0","description":"Returns the raw data of a message","unwrap":true,"brackets":false,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get message from","type":"Channel"},{"name":"message ID","description":"The message to get raw data from","rest":false,"type":"Message","pointer":0,"required":true}],"output":["Json"],"category":"message"},{"name":"$messageReferenceID","version":"1.0.0","description":"Returns the message id that this message replies to","unwrap":true,"output":["Message"],"brackets":false,"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get the message from","type":"Channel"},{"name":"message ID","description":"The message to get its reference","rest":false,"type":"Message","pointer":0,"required":true}],"category":"message"},{"name":"$messageSlice","version":"1.3.0","description":"Slices this message's args","brackets":true,"output":["String"],"args":[{"name":"start","description":"The start index","rest":false,"required":false,"type":"Number"},{"name":"end","description":"The end index","rest":false,"required":false,"type":"Number"}],"unwrap":true,"category":"message"},{"name":"$messageSticker","version":"1.4.0","output":["Sticker"],"description":"Retrieves a sticker url of this message","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 stickers","rest":false,"required":true,"type":"Message"},{"name":"index","rest":false,"required":true,"description":"The index to get sticker","type":"Number"}],"category":"message"},{"name":"$messageStickerCount","version":"1.4.0","output":["Number"],"description":"Retrieves sticker count of this message","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 sticker count","rest":false,"required":true,"type":"Message"}],"category":"message"},{"name":"$messageStickers","version":"1.4.0","aliases":["$stickers"],"output":["Sticker[]"],"description":"Retrieves all stickers of this message","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 stickers","rest":false,"required":true,"type":"Message"},{"name":"separator","rest":false,"description":"The separator to use for every sticker","type":"String"},{"name":"type","rest":false,"description":"The type to return, default is url","type":"Enum","enum":["id","url"],"enumName":"StickerReturnType"}],"category":"message"},{"name":"$messageType","version":"1.0.0","description":"Returns the message type","unwrap":true,"brackets":false,"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 type","rest":false,"required":true,"type":"Message"}],"output":["MessageType"],"category":"message"},{"name":"$messageWebhookID","version":"1.1.0","description":"Returns the message's webhook id","unwrap":true,"brackets":false,"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 webhook id","rest":false,"required":true,"type":"Message"}],"output":["Webhook"],"category":"message"},{"name":"$noMentionMessage","version":"1.0.0","output":["String"],"description":"Retrieves arguments from a message without mentions","args":[{"name":"index","description":"Index to get arg","type":"Number","required":true,"rest":false},{"name":"end index","description":"The end index","rest":false,"type":"Number"}],"brackets":false,"unwrap":true,"category":"message"},{"name":"$pinMessage","version":"1.1.0","description":"Pins a message in a channel, returns bool","brackets":false,"output":["Boolean"],"unwrap":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to pin","rest":false,"required":true,"pointer":0,"type":"Message"}],"category":"message"},{"name":"$publishMessage","version":"1.1.0","description":"Crossposts a message in an announcement channel, returns bool","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to announce","rest":false,"required":true,"pointer":0,"type":"Message"}],"category":"message"},{"name":"$reply","version":"1.0.0","description":"Marks the response as a reply","unwrap":true,"brackets":false,"args":[{"name":"channel ID","description":"The channel the message is at","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to reply to","rest":false,"required":true,"type":"Message","pointer":0},{"name":"disable ping","description":"Whether to disable ping of reply","rest":false,"type":"Boolean"}],"category":"message"},{"name":"$sticker","version":"1.3.0","description":"Attach a sticker to the response","brackets":true,"unwrap":true,"args":[{"name":"sticker ID","rest":false,"required":true,"type":"Sticker","description":"The sticker to use"}],"category":"message"},{"name":"$suppressEmbeds","version":"1.5.0","description":"Suppresses embeds on a message, returns bool","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to suppress embeds on","rest":false,"required":true,"pointer":0,"type":"Message"}],"output":["Boolean"],"category":"message"},{"name":"$tts","version":"1.5.0","description":"Marks the response as Text-To-Speech","unwrap":false,"category":"message"},{"name":"$unpinMessage","version":"1.1.0","output":["Boolean"],"description":"Unpins a message from a channel, returns bool","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to unpin","rest":false,"required":true,"pointer":0,"type":"Message"}],"category":"message"},{"name":"$unsuppressEmbeds","version":"1.5.0","description":"Unsuppresses embeds on a message, returns bool","brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","description":"The message to unsuppress embeds on","rest":false,"required":true,"pointer":0,"type":"Message"}],"output":["Boolean"],"category":"message"},{"name":"$abbreviateNumber","version":"1.0.0","output":["String"],"description":"Abbreviates given number","unwrap":true,"args":[{"name":"number","description":"The number to abbreviate","rest":false,"required":true,"type":"Number"}],"brackets":true,"category":"number"},{"name":"$average","version":"1.5.0","brackets":true,"unwrap":true,"description":"Calculates the average of given numbers","args":[{"name":"separator","description":"The delimiter of each value","rest":false,"required":true,"type":"String"},{"name":"values","description":"Values separated by `separator`","rest":false,"required":true,"type":"String"}],"category":"number"},{"name":"$hexToInt","version":"1.2.0","brackets":true,"output":["Color"],"description":"Turns hex string to number","unwrap":true,"args":[{"name":"hex","description":"The hex to convert","rest":false,"required":true,"type":"String"}],"category":"number"},{"name":"$inRange","version":"1.0.0","description":"Returns whether a number is in range","brackets":true,"output":["Boolean"],"unwrap":true,"args":[{"name":"number","description":"The number to validate","rest":false,"type":"Number","required":true},{"name":"min","description":"The min value","rest":false,"type":"Number"},{"name":"max","description":"The max value","rest":false,"type":"Number"}],"category":"number"},{"name":"$intToHex","version":"1.2.0","brackets":true,"description":"Turns integer to hex","unwrap":true,"output":["Color"],"args":[{"name":"int","description":"The integer to convert","rest":false,"required":true,"type":"Number"}],"category":"number"},{"name":"$isFloat","version":"1.0.0","description":"Returns whether the number is a float","unwrap":true,"output":["Boolean"],"args":[{"name":"number","description":"The number to check","required":true,"rest":false,"type":"String"}],"brackets":true,"category":"number"},{"name":"$isInteger","version":"1.0.0","description":"Returns whether the number is an integer","unwrap":true,"output":["Boolean"],"args":[{"name":"number","description":"The number to check","required":true,"rest":false,"type":"String"}],"brackets":true,"category":"number"},{"name":"$isNumber","version":"1.0.0","description":"Returns whether the number is valid","unwrap":true,"output":["Boolean"],"args":[{"name":"number","description":"The number to check","required":true,"rest":false,"type":"String"}],"brackets":true,"category":"number"},{"name":"$maxSafeInteger","version":"1.0.6","description":"Returns the highest safe integer","unwrap":false,"output":["Number"],"category":"number"},{"name":"$minSafeInteger","version":"1.0.6","description":"Returns the lowest safe integer","unwrap":false,"output":["Number"],"category":"number"},{"name":"$ordinal","version":"1.3.0","description":"Appends a suffix to the number","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"number","description":"The number to append suffix to","rest":false,"required":true,"type":"Number"}],"category":"number"},{"name":"$parseInt","version":"1.2.0","description":"Implements native parseInt's function into ForgeScript","unwrap":true,"brackets":true,"output":["Number"],"args":[{"name":"value","description":"The number to parse","rest":false,"required":true,"type":"String"},{"name":"radix","rest":false,"required":false,"description":"Radix to use for the parser","type":"Number"}],"category":"number"},{"name":"$randomNumber","version":"1.0.0","description":"Returns a random number (no cache)","unwrap":true,"output":["Number"],"brackets":true,"args":[{"name":"min","description":"The minimum possible number","rest":false,"required":true,"type":"Number"},{"name":"max","description":"The max possible number","rest":false,"type":"Number"},{"name":"decimals","description":"Whether to use decimals","rest":false,"type":"Boolean"}],"category":"number"},{"name":"$separateBigint","version":"1.3.0","description":"Separates thousands in the number","unwrap":true,"output":["String"],"args":[{"name":"number","description":"The number to separate","rest":false,"type":"BigInt","required":true},{"name":"separator","description":"The separator to use","type":"String","rest":false}],"brackets":true,"category":"number"},{"name":"$separateNumber","version":"1.0.0","description":"Separates thousands in the number","unwrap":true,"output":["String"],"args":[{"name":"number","description":"The number to separate","rest":false,"type":"Number","required":true},{"name":"separator","description":"The separator to use","type":"String","rest":false}],"brackets":true,"category":"number"},{"name":"$advancedBar","version":"1.5.0","aliases":["$generateAdvancedBar"],"description":"Generates an advanced progress bar","brackets":true,"unwrap":true,"args":[{"name":"current","description":"The current value","rest":false,"required":true,"type":"Number"},{"name":"max","description":"The max value of current","rest":false,"required":true,"type":"Number"},{"name":"length","description":"The length of the bar","rest":false,"type":"Number"},{"name":"values","description":"The values to make the bar with, for example `=;~;#` means `0%;33%;66%`","rest":true,"required":true,"type":"String"}],"output":["String"],"category":"other"},{"name":"$awaitComponent","version":"1.4.0","description":"Awaits a component, executing the code as the interaction context, returns bool depending on whether the interaction was received","unwrap":false,"output":["Boolean"],"brackets":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"Channel"},{"name":"message ID","rest":false,"required":true,"type":"Message","pointer":0,"description":"The message to await component on"},{"name":"filter","description":"The filter to run for every interaction received after this, this is called with interaction context","rest":false,"required":true,"condition":true,"type":"String"},{"name":"success code","description":"The code to execute on success, this is called with interaction context","rest":false,"required":true,"type":"String"},{"name":"time","rest":false,"required":true,"type":"Time","description":"The max time to wait for a component"}],"category":"other"},{"name":"$awaitMessage","version":"1.0.7","description":"Awaits a message, returns message ID or nothing if no valid response","unwrap":false,"output":["Message"],"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 a user, get it with $env[]","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"}],"category":"other"},{"name":"$awaitModalSubmit","version":"1.4.0","description":"Awaits a modal submit, executing the code as the interaction context, returns bool depending on whether the interaction was received","unwrap":false,"output":["Boolean"],"brackets":true,"args":[{"name":"custom ID","description":"The modal's custom id to wait for","rest":false,"required":true,"type":"String"},{"name":"success code","description":"The code to execute on success, this is called with interaction context","rest":false,"required":true,"type":"String"},{"name":"time","rest":false,"required":true,"type":"Time","description":"The max time to wait for a component"}],"category":"other"},{"name":"$bar","version":"1.5.0","description":"Generates a progress bar","aliases":["$generateBar"],"brackets":true,"unwrap":true,"args":[{"name":"current","description":"The current value","rest":false,"required":true,"type":"Number"},{"name":"max","description":"The max value of current","rest":false,"required":true,"type":"Number"},{"name":"length","description":"The length of the bar","rest":false,"type":"Number"},{"name":"fill","description":"The string to use as filled points of the bar","rest":false,"type":"String"},{"name":"empty","description":"The string to use as empty points of the bar","rest":false,"type":"String"},{"name":"trunc","description":"Whether to truncate instead of round","rest":false,"type":"Boolean"},{"name":"fillStart","description":"The string to use as filled start of the bar","rest":false,"type":"String"},{"name":"fillEnd","description":"The string to use as filled end of the bar","rest":false,"type":"String"},{"name":"emptyStart","description":"The string to use as empty start of the bar","rest":false,"type":"String"},{"name":"emptyEnd","description":"The string to use as empty end of the bar","rest":false,"type":"String"}],"output":["String"],"category":"other"},{"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,"category":"other"},{"name":"$callFunction","version":"1.0.0","description":"Calls a forge function made by the user","unwrap":true,"output":["Unknown"],"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"}],"brackets":true,"category":"other"},{"name":"$callLocalFunction","version":"2.3.0","description":"Calls a local function","aliases":["$callFn"],"unwrap":true,"brackets":true,"args":[{"name":"name","description":"The local function name","rest":false,"required":true,"type":"String"},{"name":"args","description":"The args to call this local function with","rest":true,"type":"String"}],"output":["Unknown"],"category":"other"},{"name":"$debug","version":"1.0.0","output":["String"],"description":"Returns the debug message","unwrap":false,"category":"other"},{"name":"$disableConsoleErrors","version":"1.4.0","description":"Disables possible outcoming errors that are output to console","unwrap":false,"category":"other"},{"name":"$djsVersion","version":"2.2.0","description":"Returns the discord.js version used","unwrap":false,"output":["String"],"category":"other"},{"name":"$enableConsoleErrors","version":"1.4.0","description":"Enables possible outcoming errors that are output to console","unwrap":false,"category":"other"},{"name":"$error","version":"1.0.0","description":"Returns the error message","unwrap":false,"output":["Unknown"],"category":"other"},{"name":"$escapeCode","version":"1.4.0","description":"Code inside this function will not be executed","unwrap":false,"brackets":true,"aliases":["$esc"],"args":[{"name":"code","type":"String","description":"The code to ignore","required":true,"rest":false}],"output":["String"],"category":"other"},{"name":"$localFunction","version":"2.3.0","description":"Defines a new local function","aliases":["$fn"],"unwrap":false,"brackets":true,"args":[{"name":"name","description":"The local function name","rest":false,"required":true,"type":"String"},{"name":"code","description":"The local function code","rest":false,"required":true,"type":"String"},{"name":"params","description":"The local function params","rest":true,"type":"String"}],"category":"other"},{"name":"$typeof","version":"2.4.0","description":"Returns the type of the provided argument","unwrap":true,"brackets":true,"args":[{"name":"argument","rest":false,"description":"The argument to get its type","type":"String","required":true}],"output":["String"],"category":"other"},{"name":"$poll","version":"1.5.0","description":"Creates a poll","brackets":true,"args":[{"name":"question","description":"The poll question","rest":false,"required":true,"type":"String"},{"name":"duration","description":"The poll's duration","rest":false,"required":true,"type":"Time"},{"name":"multiselect","description":"Whether to allow multi select","rest":false,"type":"Boolean"},{"name":"layout","description":"The layout for this poll","rest":false,"enum":["Default"],"type":"Enum","enumName":"PollLayoutType"}],"unwrap":true,"category":"poll"},{"name":"$pollAnswer","version":"1.5.0","brackets":true,"unwrap":true,"description":"Add a poll answer","args":[{"name":"text","description":"The answer's text","rest":false,"required":true,"type":"String"},{"name":"emoji","rest":false,"description":"The emoji to use","type":"String"}],"category":"poll"},{"name":"$pollAnswerEmoji","version":"1.5.0","description":"Can only be used in poll events, returns the emoji of the poll answer","unwrap":false,"output":["String"],"category":"poll"},{"name":"$pollAnswerID","version":"1.5.0","description":"Can only be used in poll events, returns the answer id used","unwrap":false,"output":["Number"],"category":"poll"},{"name":"$pollAnswerMessageID","version":"1.5.0","description":"Can only be used in poll events, returns the message id of the poll answer","unwrap":false,"output":["Message"],"category":"poll"},{"name":"$pollAnswerText","version":"1.5.0","description":"Can only be used in poll events, returns the text of the poll answer","unwrap":false,"output":["String"],"category":"poll"},{"name":"$pollAnswerVoteCount","version":"1.5.0","description":"Can only be used in poll events, returns the vote count of this poll answer","unwrap":false,"output":["Number"],"category":"poll"},{"name":"$pollAnswerVoterIDs","version":"1.5.0","description":"Can only be used in poll events, returns the vote user ids of this poll answer","unwrap":true,"brackets":false,"args":[{"name":"separator","description":"The separator to use for every id","rest":false,"type":"String"}],"output":["User[]"],"category":"poll"},{"name":"$pollAnswers","version":"1.5.0","brackets":true,"unwrap":true,"description":"Adds multiple poll answers","args":[{"name":"text;emoji","description":"The answer's text followed by emoji","rest":true,"required":true,"type":"String"}],"category":"poll"},{"name":"$pollEnd","version":"1.5.0","description":"Ends a poll","aliases":["$endPoll"],"brackets":false,"unwrap":true,"args":[{"name":"channel ID","description":"The channel to get the message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to get the poll","rest":false,"required":true,"type":"Message","pointer":0}],"category":"poll"},{"name":"$reactionAuthorID","version":"1.0.0","description":"Returns the reaction author id that reacted","unwrap":false,"output":["User"],"category":"reaction"},{"name":"$reactionCount","version":"1.5.0","description":"Returns the count of reacted users","unwrap":false,"output":["Number"],"category":"reaction"},{"name":"$reactionEmoji","version":"1.0.0","description":"Returns the emoji that was used","unwrap":false,"output":["String"],"category":"reaction"},{"name":"$reactionEmojiID","version":"1.0.0","description":"Returns the reaction id that was used","unwrap":false,"output":["Emoji"],"category":"reaction"},{"name":"$reactionMessageID","version":"1.0.0","description":"Returns the message id of the reacted message","unwrap":false,"output":["Message"],"category":"reaction"},{"name":"$addRole","version":"1.0.0","description":"Adds a role to a guild, returns role id if success","unwrap":true,"brackets":true,"output":["Role"],"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","CreateGuildExpressions","CreateEvents","UseExternalSounds","SendVoiceMessages","SendPolls","UseExternalApps","PinMessages"],"type":"String","enumName":"PermissionFlagsBits"}],"category":"role"},{"name":"$cloneRole","version":"2.4.0","description":"Clones an existing role of a guild, returns role id if success","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to fetch role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to clone","rest":false,"required":true,"type":"Role","pointer":0},{"name":"name","description":"The role name for the cloned role","rest":false,"type":"String"}],"output":["Role"],"category":"role"},{"name":"$deleteRoles","version":"1.0.0","brackets":true,"unwrap":true,"output":["Number"],"description":"Deletes given roles, returns the count of roles deleted","args":[{"name":"guild ID","description":"The guild to delete roles from","rest":false,"required":true,"type":"Guild"},{"name":"roles","description":"The roles to delete","rest":true,"required":true,"pointer":0,"type":"Role"}],"category":"role"},{"name":"$editRole","version":"1.0.7","description":"Edits a role on a guild, returns boolean","unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","pointer":0,"type":"Role","description":"The role to edit data","rest":false,"required":true},{"name":"name","description":"The new role name, leave empty to not modify","rest":false,"type":"String"},{"name":"color","description":"The new role color, leave empty to not modify","rest":false,"type":"String"},{"name":"icon","description":"The new role icon, leave empty to not modify","rest":false,"type":"String"},{"name":"hoisted","description":"Whether the role is hoisted, leave empty to not modify","rest":false,"type":"Boolean"},{"name":"mentionable","description":"Whether the role can be mentioned, leave empty to not modify","rest":false,"type":"Boolean"},{"name":"perms","description":"The new perms for the role","rest":true,"type":"Permission"}],"brackets":true,"category":"role"},{"name":"$editRoleColors","version":"2.5.0","description":"Edits a role's colors, returns boolean","aliases":["$editRoleColor"],"unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","type":"Role","description":"The role to edit colors for","rest":false,"required":true,"pointer":0},{"name":"primary","description":"The new primary color","rest":false,"type":"Color","required":true},{"name":"secondary","description":"The new secondary color","rest":false,"type":"Color"},{"name":"tertiary","description":"The new tertiary color","rest":false,"type":"Color"}],"output":["Boolean"],"category":"role"},{"name":"$editRoleIcon","version":"1.0.7","description":"Edits a role's icon, returns boolean","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","pointer":0,"type":"Role","description":"The role to edit icon for","rest":false,"required":true},{"name":"icon","description":"The new icon for the role, omit to clear","rest":false,"type":"String"}],"category":"role"},{"name":"$editRoleName","version":"1.0.7","description":"Edits a role's name, returns boolean","unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","pointer":0,"type":"Role","description":"The role to edit name for","rest":false,"required":true},{"name":"name","description":"The new name for the role","rest":false,"type":"String","required":true}],"brackets":true,"category":"role"},{"name":"$editRolePerms","version":"1.0.7","description":"Edits a role's permissions, returns boolean","aliases":["$modifyRolePerms"],"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","pointer":0,"type":"Role","description":"The role to edit perms for","rest":false,"required":true},{"name":"perms","description":"The new perms for the role, omit to clear perms","rest":true,"type":"Permission"}],"brackets":true,"category":"role"},{"name":"$editRolePosition","version":"1.0.7","description":"Edits a role's position, returns boolean","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","pointer":0,"type":"Role","description":"The role to edit position for","rest":false,"required":true},{"name":"position","description":"The new position for the role","rest":false,"type":"Number","required":true}],"category":"role"},{"name":"$editRoleUnicodeEmoji","version":"1.5.0","description":"Edits a role's unicode emoji, returns boolean","unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","pointer":0,"type":"Role","description":"The role to edit unicode emoji for","rest":false,"required":true},{"name":"emoji","description":"The new unicode emoji for the role, omit to clear","rest":false,"type":"String"}],"brackets":true,"category":"role"},{"name":"$fetchRoles","version":"2.2.0","description":"Caches all roles of a guild","aliases":["$fetchRole"],"unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to cache roles of","rest":false,"required":true,"type":"Guild"},{"name":"role ID","description":"The role to fetch","rest":false,"type":"Role","pointer":0}],"category":"role"},{"name":"$randomRoleID","version":"1.5.0","description":"Returns a random role ID of a guild","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true}],"output":["Role"],"category":"role"},{"name":"$roleColor","version":"1.0.0","description":"Returns the color of a role","brackets":false,"unwrap":true,"output":["Color"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its color","rest":false,"type":"Role","pointer":0,"required":true},{"name":"color","description":"The role color to return","rest":false,"type":"Enum","enum":["Primary","Secondary","Tertiary"],"enumName":"RoleColor"}],"category":"role"},{"name":"$roleCount","version":"1.0.0","description":"Returns the role count of all servers","unwrap":false,"output":["Number"],"category":"role"},{"name":"$roleCreatedAt","version":"1.0.0","description":"Returns the role creation date","brackets":false,"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its creation date","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleEditable","version":"1.3.0","description":"Returns whether the role is editable by the bot","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its editable state","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleExists","version":"1.0.0","description":"Returns whether an role id exists","unwrap":true,"brackets":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","type":"Guild","rest":false,"required":true},{"name":"role ID","description":"The role to check for","rest":false,"required":true,"type":"String"}],"category":"role"},{"name":"$roleFlags","version":"1.3.0","description":"Returns the role flags","brackets":false,"unwrap":true,"output":["RoleFlags[]"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its flags","rest":false,"type":"Role","pointer":0,"required":true},{"name":"separator","description":"The separator to use for every flag","type":"String","required":false,"rest":false}],"category":"role"},{"name":"$roleHoisted","version":"1.0.0","description":"Returns whether the role is hoisted","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its hoisted state","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleID","version":"1.0.0","description":"Returns a role id with given name","brackets":false,"unwrap":true,"output":["Role"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"name","description":"The role name to return its id","rest":true,"type":"String","pointer":0,"required":true}],"category":"role"},{"name":"$roleIDs","version":"1.0.0","description":"Returns the role ids of a guild","brackets":false,"output":["Role[]"],"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 role","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"role"},{"name":"$roleIcon","version":"1.0.0","description":"Returns the role icon","brackets":false,"output":["URL"],"args":[{"name":"guild ID","description":"The guild to retrieve the role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","description":"The role to use to get its icon","rest":false,"required":true,"pointer":0,"type":"Role"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"role"},{"name":"$roleIntColor","version":"1.3.0","description":"Returns the role color as int","brackets":false,"unwrap":true,"output":["Color"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its color","rest":false,"type":"Role","pointer":0,"required":true},{"name":"color","description":"The role color to return","rest":false,"type":"Enum","enum":["Primary","Secondary","Tertiary"],"enumName":"RoleColor"}],"category":"role"},{"name":"$roleManageable","version":"1.3.0","description":"Returns whether the role is managed by discord","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its managed state","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleMembers","version":"1.0.0","description":"Returns the role member ids","brackets":false,"unwrap":true,"output":["Member[]"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its members","rest":false,"type":"Role","pointer":0,"required":true},{"name":"separator","description":"The separator to use for each member","rest":false,"type":"String"}],"category":"role"},{"name":"$roleMentionable","version":"1.0.0","description":"Returns whether the role is mentionable","brackets":false,"unwrap":true,"output":["Boolean"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its mentionable state","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleName","version":"1.0.0","description":"Returns a role name with given id","brackets":false,"unwrap":true,"output":["String"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its name","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleNames","version":"1.0.0","description":"Returns the role names of a guild","brackets":false,"output":["String[]"],"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 role","rest":false,"required":true,"type":"String"}],"unwrap":true,"category":"role"},{"name":"$rolePerms","version":"1.0.0","description":"Returns the role perms","brackets":false,"unwrap":true,"output":["PermissionFlagsBits[]"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its perms","rest":false,"type":"Role","pointer":0,"required":true},{"name":"separator","description":"The separator to use for every perm","type":"String","required":false,"rest":false},{"name":"return int","description":"Whether to return the perms as bitfield int","type":"Boolean","rest":false}],"category":"role"},{"name":"$rolePosition","version":"1.0.0","description":"Returns the role position","brackets":false,"unwrap":true,"output":["Number"],"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its position","rest":false,"type":"Role","pointer":0,"required":true},{"name":"asc order","description":"Whether to count roles in ascending order (top to bottom)","rest":false,"type":"Boolean"}],"category":"role"},{"name":"$roleRawData","version":"1.5.0","description":"Returns the raw data of a role","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to pull role from","rest":false,"type":"Guild","required":true},{"name":"role ID","rest":false,"required":true,"description":"The role to get raw data from","type":"Role","pointer":0}],"output":["Json"],"category":"role"},{"name":"$roleRawPosition","version":"1.0.0","description":"Returns the role raw position","brackets":false,"output":["Number"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its raw position","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$roleTags","version":"1.3.0","description":"Returns all role tags","brackets":false,"output":["String[]"],"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its perms","rest":false,"type":"Role","pointer":0,"required":true},{"name":"separator","description":"The separator to use for every perm","type":"String","required":false,"rest":false}],"category":"role"},{"name":"$roleUnicodeEmoji","version":"1.3.0","output":["String"],"description":"Returns the unicode emoji used by the role","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to pull the role from","rest":false,"type":"Guild","required":true},{"name":"role ID","description":"The role to return its unicode emote","rest":false,"type":"Role","pointer":0,"required":true}],"category":"role"},{"name":"$createSoundboardSound","version":"2.4.0","description":"Creates a new soundboard sound, returns sound id","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to create soundboard sound on","rest":false,"required":true,"type":"Guild"},{"name":"name","description":"The name for the sound","rest":false,"required":true,"type":"String"},{"name":"file","description":"The file for the sound","rest":false,"required":true,"type":"String"},{"name":"emoji","description":"The emoji for the sound","rest":false,"type":"String"},{"name":"volume","description":"The volume for the sound (from 0 to 1)","rest":false,"type":"Number"},{"name":"reason","description":"The reason for creating the sound","rest":false,"type":"String"}],"output":["SoundboardSound"],"category":"soundboard"},{"name":"$deleteSoundboardSounds","version":"2.4.0","description":"Deletes given soundboard sounds, returns the count of sounds deleted","aliases":["$deleteSoundboardSound"],"brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to delete soundboard sounds from","rest":false,"required":true,"type":"Guild"},{"name":"sounds","description":"The soundboard sounds to delete","rest":true,"required":true,"pointer":0,"type":"SoundboardSound"}],"output":["Number"],"category":"soundboard"},{"name":"$editSoundboardSound","version":"2.4.0","description":"Edits given soundboard sound, returns bool","brackets":true,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to edit soundboard sound on","rest":false,"required":true,"type":"Guild"},{"name":"sound ID","description":"The soundboard sound to edit","rest":false,"required":true,"pointer":0,"type":"SoundboardSound"},{"name":"name","description":"The new name for the sound","rest":false,"type":"String"},{"name":"emoji","description":"The new emoji for the sound","rest":false,"type":"String"},{"name":"volume","description":"The new volume for the sound (from 0 to 1)","rest":false,"type":"Number"},{"name":"reason","description":"The reason for editing the sound","rest":false,"type":"String"}],"output":["Boolean"],"category":"soundboard"},{"name":"$getSoundboardSound","version":"2.4.0","description":"Returns a soundboard sound of a guild","unwrap":true,"brackets":false,"args":[{"name":"guild ID","description":"The guild to get soundboard sound from","rest":false,"required":true,"type":"Guild"},{"name":"sound ID","description":"The soundboard sound to get","rest":false,"required":true,"type":"SoundboardSound","pointer":0},{"name":"property","description":"The property of the sound to return","rest":false,"type":"Enum","enum":["name","id","guildID","userID","emoji","volume","timestamp","available","url"],"enumName":"SoundboardSoundProperty"}],"output":["Json","Unknown"],"category":"soundboard"},{"name":"$soundAvailable","version":"2.4.0","description":"Returns whether a sound is available","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its available status","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["Boolean"],"category":"soundboard"},{"name":"$soundCreatedAt","version":"2.4.0","description":"Returns the creation timestamp of a sound","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its creation timestamp","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["Number"],"category":"soundboard"},{"name":"$soundEmoji","version":"2.4.0","description":"Returns the emoji of a sound","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its emoji","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["String"],"category":"soundboard"},{"name":"$soundGuildID","version":"2.4.0","description":"Returns the guild id of a sound","unwrap":false,"output":["Guild"],"category":"soundboard"},{"name":"$soundID","version":"2.4.0","description":"Returns a sound id with given name","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"name","description":"The sound name to return its id","rest":true,"required":true,"type":"String"}],"output":["SoundboardSound"],"category":"soundboard"},{"name":"$soundName","version":"2.4.0","description":"Returns the name of a sound","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its name","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["String"],"category":"soundboard"},{"name":"$soundURL","version":"2.4.0","description":"Returns the url of a sound","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its url","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["URL"],"category":"soundboard"},{"name":"$soundUserID","version":"2.4.0","description":"Returns the user who created the sound","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its creator","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["User"],"category":"soundboard"},{"name":"$soundVolume","version":"2.4.0","description":"Returns the volume of a sound","brackets":false,"unwrap":true,"args":[{"name":"guild ID","description":"The guild to get sound from","rest":false,"type":"Guild","required":true},{"name":"sound ID","description":"The sound to return its volume","rest":false,"required":true,"type":"SoundboardSound","pointer":0}],"output":["Number"],"category":"soundboard"},{"name":"$auditLog","version":"1.0.3","description":"Retrieves new data from an event whose context was an audit log instance","brackets":true,"unwrap":true,"output":["Unknown"],"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,"enumName":"AuditProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$bulk","version":"1.4.0","description":"Retrieves data from an event whose context was a bulk delete event","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["messages","contents","timestamps","attachments","stickers","users","count"],"required":true,"enumName":"BulkProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$effect","version":"2.3.0","description":"Retrieves data from an event whose context was a voice channel effect event","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["emoji","channelID","guildID","userID","soundID","soundVolume","animationID","animationType"],"required":true,"enumName":"VoiceEffectProperty"}],"category":"state"},{"name":"$newAutomodRule","version":"1.5.0","description":"Retrieves new data from an event whose context was an automod rule instance","brackets":true,"output":["Unknown"],"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","name","authorID","enabled","eventType","triggerType","triggerMetadata","exemptRoles","exemptChannels","actions","keywordFilter","regexPatterns","presets","allowList","mentionTotalLimit","mentionRaidProtectionEnabled"],"required":true,"enumName":"AutomodRuleProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newChannel","version":"1.0.0","description":"Retrieves new data from an event whose context was a channel instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","name","type","topic","bitrate","members","timestamp","nsfw","flags","parentID","position","rawPosition","slowmode","appliedTags","availableTags","archived","locked"],"required":true,"enumName":"ChannelProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newEmoji","version":"1.0.0","description":"Retrieves new data from an event whose context was an emoji instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["guildID","name","id","authorID","identifier","requiresColons","roles","managed","timestamp","animated","url","format"],"required":true,"enumName":"EmojiProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newEntitlement","version":"1.5.0","description":"Retrieves new data from an event whose context was an entitlement instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["userID","consumed","guildId","id","skuID","type","endTimestamp","startTimestamp","active","test","guildSubscription","userSubscription"],"required":true,"enumName":"EntitlementProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newGuild","version":"1.0.0","description":"Retrieves new data from an event whose context was a guild instance","brackets":true,"output":["Unknown"],"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","ownerID","name","description","features","afkChannelID","maximumMembers","systemChannelID","afkTimeout","memberCount","boostCount","timestamp","icon","splash","banner","roles","emojis","stickers","boostLevel","discoverySplash","approximateMemberCount","approximatePresenceCount"],"required":true,"enumName":"GuildProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newInvite","version":"1.0.3","description":"Retrieves new data from an event whose context was an invite instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["authorID","channelID","guildID","uses","maxUses","maxAge","timestamp","code","url","type","expiresTimestamp","temporary","deletable","memberCount","presenceCount","targetType","targetUser"],"required":true,"enumName":"InviteProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newMember","version":"1.0.0","description":"Retrieves new data from an event whose context was a guild member instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["nickname","displayName","displayColor","roles","flags","mention","avatar","banner","bannable","kickable","guildID","id","manageable","timeout","timedOutUntil","status","addedRoles","roleCount","removedRoles","platform","timestamp","boosting","boostingSince","permissions","avatarDecoration"],"required":true,"enumName":"MemberProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newMessage","version":"1.0.0","description":"Retrieves new data from an event whose context was a message instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","content","flags","username","type","channelID","guildID","authorID","timestamp","editTimestamp","hasPoll","system","pinned","url","attachments","stickers"],"required":true,"enumName":"MessageProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newPresence","version":"1.1.0","description":"Retrieves new data from an event whose context was a presence instance","brackets":true,"output":["Unknown"],"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","guildID","status","platform"],"required":true,"enumName":"PresenceProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newRole","version":"1.0.0","description":"Retrieves new data from an event whose context was a role instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","name","icon","color","hoisted","managed","mentionable","rawPosition","position","timestamp","permissions","tags","members","unicodeEmoji","secondaryColor","tertiaryColor"],"required":true,"enumName":"RoleProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newScheduledEvent","version":"1.4.0","description":"Retrieves new data from an event whose context was a scheduled event instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","userID","guildID","channelID","name","userCount","description","startTimestamp","endTimestamp","timestamp","url","cover","entityID","location","entityType"],"required":true,"enumName":"ScheduledEventProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newSound","version":"2.4.0","description":"Retrieves new data from an event whose context was a soundboard sound instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["name","id","guildID","userID","emoji","volume","timestamp","available","url"],"required":true,"enumName":"SoundboardSoundProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newStage","version":"1.4.0","description":"Retrieves new data from an event whose context was a stage instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["channelID","id","topic","timestamp","guildID","privacyLevel","eventId"],"required":true,"enumName":"StageProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newState","version":"1.0.0","description":"Retrieves new data from an event whose context was a voice state instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["channelID","guildID","authorID","deaf","selfDeaf","guildDeaf","muted","selfMuted","guildMuted","timestamp","selfVideo","streaming","suppressed"],"required":true,"enumName":"VoiceStateProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newSticker","version":"1.4.0","description":"Retrieves new data from an event whose context was a sticker instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","name","guildID","authorID","timestamp","url","format","available","tags","sortValue","packID","description"],"required":true,"enumName":"StickerProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$newSubscription","version":"2.5.0","description":"Retrieves new data from an event whose context was a subscription instance","brackets":true,"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","userID","status","country","skuIDs","renewalSkuIDs","entitlementIDs","canceledTimestamp","periodEndTimestamp","periodStartTimestamp"],"required":true,"enumName":"SubscriptionProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"output":["Unknown"],"category":"state"},{"name":"$newUser","version":"1.0.0","description":"Retrieves new data from an event whose context was a user instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","username","displayName","globalName","badges","avatar","accentColor","banner","timestamp","dmChannelID","avatarDecoration","primaryGuildTag","primaryGuildBadge","primaryGuildEnabled","primaryGuildID"],"required":true,"enumName":"UserProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldAutomodRule","version":"1.5.0","description":"Retrieves old data from an event whose context was an automod rule instance","brackets":true,"output":["Unknown"],"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","name","authorID","enabled","eventType","triggerType","triggerMetadata","exemptRoles","exemptChannels","actions","keywordFilter","regexPatterns","presets","allowList","mentionTotalLimit","mentionRaidProtectionEnabled"],"required":true,"enumName":"AutomodRuleProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldChannel","version":"1.0.0","description":"Retrieves old data from an event whose context was a channel instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","name","type","topic","bitrate","members","timestamp","nsfw","flags","parentID","position","rawPosition","slowmode","appliedTags","availableTags","archived","locked"],"required":true,"enumName":"ChannelProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldEmoji","version":"1.0.0","description":"Retrieves old data from an event whose context was an emoji instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["guildID","name","id","authorID","identifier","requiresColons","roles","managed","timestamp","animated","url","format"],"required":true,"enumName":"EmojiProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldEntitlement","version":"1.5.0","description":"Retrieves old data from an event whose context was an entitlement instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["userID","consumed","guildId","id","skuID","type","endTimestamp","startTimestamp","active","test","guildSubscription","userSubscription"],"required":true,"enumName":"EntitlementProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldGuild","version":"1.0.0","description":"Retrieves old data from an event whose context was a guild instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","ownerID","name","description","features","afkChannelID","maximumMembers","systemChannelID","afkTimeout","memberCount","boostCount","timestamp","icon","splash","banner","roles","emojis","stickers","boostLevel","discoverySplash","approximateMemberCount","approximatePresenceCount"],"required":true,"enumName":"GuildProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldInvite","version":"1.0.3","description":"Retrieves old data from an event whose context was an invite instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["authorID","channelID","guildID","uses","maxUses","maxAge","timestamp","code","url","type","expiresTimestamp","temporary","deletable","memberCount","presenceCount","targetType","targetUser"],"required":true,"enumName":"InviteProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldMember","version":"1.0.0","description":"Retrieves old data from an event whose context was a guild member instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["nickname","displayName","displayColor","roles","flags","mention","avatar","banner","bannable","kickable","guildID","id","manageable","timeout","timedOutUntil","status","addedRoles","roleCount","removedRoles","platform","timestamp","boosting","boostingSince","permissions","avatarDecoration"],"required":true,"enumName":"MemberProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldMessage","version":"1.0.0","description":"Retrieves old data from an event whose context was a message instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","content","flags","username","type","channelID","guildID","authorID","timestamp","editTimestamp","hasPoll","system","pinned","url","attachments","stickers"],"required":true,"enumName":"MessageProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldPresence","version":"1.1.0","description":"Retrieves old data from an event whose context was a presence instance","brackets":true,"output":["Unknown"],"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","guildID","status","platform"],"required":true,"enumName":"PresenceProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldRole","version":"1.0.0","description":"Retrieves old data from an event whose context was a role instance","brackets":true,"output":["Unknown"],"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","name","icon","color","hoisted","managed","mentionable","rawPosition","position","timestamp","permissions","tags","members","unicodeEmoji","secondaryColor","tertiaryColor"],"required":true,"enumName":"RoleProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldScheduledEvent","version":"1.4.0","description":"Retrieves old data from an event whose context was a scheduled event instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","userID","guildID","channelID","name","userCount","description","startTimestamp","endTimestamp","timestamp","url","cover","entityID","location","entityType"],"required":true,"enumName":"ScheduledEventProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldSound","version":"2.4.0","description":"Retrieves old data from an event whose context was a soundboard sound instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["name","id","guildID","userID","emoji","volume","timestamp","available","url"],"required":true,"enumName":"SoundboardSoundProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldStage","version":"1.4.0","description":"Retrieves old data from an event whose context was a stage instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["channelID","id","topic","timestamp","guildID","privacyLevel","eventId"],"required":true,"enumName":"StageProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldState","version":"1.0.0","description":"Retrieves old data from an event whose context was a voice state instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["channelID","guildID","authorID","deaf","selfDeaf","guildDeaf","muted","selfMuted","guildMuted","timestamp","selfVideo","streaming","suppressed"],"required":true,"enumName":"VoiceStateProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldSticker","version":"1.4.0","description":"Retrieves old data from an event whose context was a sticker instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","name","guildID","authorID","timestamp","url","format","available","tags","sortValue","packID","description"],"required":true,"enumName":"StickerProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"name":"$oldSubscription","version":"2.5.0","description":"Retrieves old data from an event whose context was a subscription instance","brackets":true,"unwrap":true,"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","userID","status","country","skuIDs","renewalSkuIDs","entitlementIDs","canceledTimestamp","periodEndTimestamp","periodStartTimestamp"],"required":true,"enumName":"SubscriptionProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"output":["Unknown"],"category":"state"},{"name":"$oldUser","version":"1.0.0","description":"Retrieves old data from an event whose context was a user instance","brackets":true,"unwrap":true,"output":["Unknown"],"args":[{"name":"property","description":"The property to pull","rest":false,"type":"Enum","enum":["id","username","displayName","globalName","badges","avatar","accentColor","banner","timestamp","dmChannelID","avatarDecoration","primaryGuildTag","primaryGuildBadge","primaryGuildEnabled","primaryGuildID"],"required":true,"enumName":"UserProperty"},{"name":"separator","description":"The separator to use in case of array","rest":false,"type":"String"}],"category":"state"},{"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,"category":"statement"},{"name":"$break","version":"1.0.3","description":"Breaks the loop","unwrap":false,"category":"statement"},{"name":"$case","version":"1.0.3","description":"Adds a switch case","brackets":true,"experimental":true,"unwrap":true,"output":["Unknown"],"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"}],"category":"statement"},{"name":"$continue","version":"1.0.3","description":"Skips executing bottom code of the loop","unwrap":false,"category":"statement"},{"name":"$default","version":"1.0.6","brackets":true,"unwrap":true,"description":"Returns right hand value if the left hand value is falsy","args":[{"name":"left hand","description":"Left hand value","rest":false,"required":true,"type":"String"},{"name":"right hand","description":"Right hand value","rest":false,"required":true,"type":"String"}],"output":["String"],"category":"statement"},{"name":"$else","version":"1.2.0","description":"Creates an else statement","unwrap":true,"output":["Unknown"],"args":[{"name":"else","description":"The code to run","required":true,"type":"String","rest":false}],"brackets":true,"category":"statement"},{"name":"$elseIf","version":"1.2.0","description":"Creates an else if statement","unwrap":false,"output":["Unknown"],"args":[{"name":"condition","description":"The condition to check against","rest":false,"type":"String","condition":true},{"name":"if true","description":"The code to run if true","required":true,"type":"String","rest":false}],"brackets":true,"category":"statement"},{"name":"$if","version":"1.0.0","description":"Creates an if statement","unwrap":false,"output":["Unknown"],"args":[{"name":"condition","description":"The condition to check against","rest":false,"type":"String","condition":true},{"name":"if true","description":"The code to run if true","required":true,"type":"String","rest":false},{"name":"if false","description":"The code to run if false","type":"String","rest":false}],"brackets":true,"category":"statement"},{"name":"$ifx","version":"1.2.0","description":"WIP if statements","brackets":true,"unwrap":false,"args":[{"name":"block","description":"The if, elseif, else blocks","rest":false,"required":true,"type":"String"}],"experimental":true,"category":"statement"},{"name":"$loop","version":"1.4.0","description":"Executes given code for N times","unwrap":false,"brackets":true,"experimental":true,"args":[{"name":"times","description":"How many times to run the code","rest":false,"required":true,"type":"Number"},{"name":"code","rest":false,"required":true,"type":"String","description":"The code to execute"},{"name":"variable","description":"The variable to load the current iteration count for $env","rest":false,"type":"String"},{"name":"desc","description":"Whether to use desc order for iteration count","rest":false,"type":"Boolean"}],"category":"statement"},{"name":"$return","version":"1.0.0","description":"Returns a value","unwrap":true,"output":["Unknown"],"args":[{"name":"value","description":"The value to return","rest":false,"required":true,"type":"String"}],"brackets":false,"category":"statement"},{"name":"$scope","version":"1.4.0","description":"Runs functions in a cloned context","brackets":true,"args":[{"name":"code","description":"The code to execute","rest":false,"required":true,"type":"String"},{"name":"sync vars","description":"Whether to pass vars as reference","type":"Boolean","rest":false}],"unwrap":false,"output":["Unknown"],"category":"statement"},{"name":"$switch","version":"1.0.3","description":"Switch-case statement for javascript","unwrap":false,"experimental":true,"output":["Unknown"],"args":[{"name":"value","description":"The value to match with","rest":false,"required":true,"type":"String"},{"name":"cases","rest":false,"description":"The cases to use ($case), use $case[default;...] to add a default case","type":"String","required":true}],"brackets":true,"category":"statement"},{"name":"$try","version":"1.0.0","experimental":true,"description":"Handles a possible error from given code","unwrap":false,"args":[{"name":"code","rest":false,"type":"String","required":true,"description":"The code to safely execute"},{"name":"catch code","description":"The code to run in case of an error","rest":false,"type":"String"},{"name":"variable","description":"Variable to load the error message to","rest":false,"type":"String"}],"brackets":true,"category":"statement"},{"name":"$while","version":"1.0.3","description":"Executes code while a condition is true","unwrap":false,"brackets":true,"experimental":true,"args":[{"name":"condition","condition":true,"description":"The condition to validate","rest":false,"required":true,"type":"String"},{"name":"code","rest":false,"required":true,"type":"String","description":"The code to execute"}],"category":"statement"},{"name":"$addSticker","version":"1.0.0","description":"Adds a sticker to a guild, returns sticker id","unwrap":true,"output":["Sticker"],"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"}],"category":"sticker"},{"name":"$deleteStickers","version":"1.0.0","brackets":true,"unwrap":true,"output":["Number"],"description":"Deletes given stickers, returns the count of stickers deleted","args":[{"name":"guild ID","description":"The guild to delete stickers from","rest":false,"required":true,"type":"Guild"},{"name":"stickers","description":"The stickers to delete","rest":true,"required":true,"pointer":0,"type":"String"}],"category":"sticker"},{"name":"$editSticker","version":"1.4.0","description":"Edits a sticker on a guild, returns bool","brackets":true,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to edit","rest":false,"required":true,"type":"Sticker"},{"name":"name","description":"The new name for the sticker","rest":false,"type":"String"},{"name":"description","description":"The new description for the sticker","rest":false,"type":"String"},{"name":"tags","description":"The new tags for the sticker","rest":true,"type":"String"}],"output":["Boolean"],"category":"sticker"},{"name":"$setStickerDescription","version":"1.4.0","description":"Sets a sticker's description, returns bool","brackets":true,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to edit","rest":false,"required":true,"type":"Sticker"},{"name":"description","description":"The new description for the sticker","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"sticker"},{"name":"$setStickerName","version":"1.4.0","description":"Sets a sticker's name, returns bool","brackets":true,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to edit","rest":false,"required":true,"type":"Sticker"},{"name":"name","description":"The new name for the sticker","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"sticker"},{"name":"$setStickerTags","version":"1.4.0","description":"Sets a sticker's tags, returns bool","brackets":true,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to edit","rest":false,"required":true,"type":"Sticker"},{"name":"tags","description":"The new tags for the sticker","rest":true,"required":true,"type":"String"}],"output":["Boolean"],"category":"sticker"},{"name":"$stickerAvailable","version":"1.4.0","description":"Returns whether a sticker is available","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to get availability of","rest":false,"required":true,"type":"Sticker"}],"output":["Boolean"],"category":"sticker"},{"name":"$stickerCreatedAt","version":"1.4.0","description":"Returns a sticker's creation timestamp","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull timestamp of","rest":false,"required":true,"type":"Sticker"}],"output":["Number"],"category":"sticker"},{"name":"$stickerDescription","version":"1.4.0","description":"Returns a sticker's description","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull description of","rest":false,"required":true,"type":"Sticker"}],"output":["String"],"category":"sticker"},{"name":"$stickerFormat","version":"1.4.0","description":"Returns a sticker's format","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to get format of","rest":false,"required":true,"type":"Sticker"}],"output":["StickerFormatType"],"category":"sticker"},{"name":"$stickerGuildID","version":"1.4.0","description":"Returns a sticker's guild id","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull guild of","rest":false,"required":true,"type":"Sticker"}],"output":["Guild"],"category":"sticker"},{"name":"$stickerID","version":"1.4.0","description":"Returns the sticker id","unwrap":false,"output":["Sticker"],"category":"sticker"},{"name":"$stickerName","version":"1.4.0","description":"Returns a sticker name","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull name of","rest":false,"required":true,"type":"Sticker"}],"output":["String"],"category":"sticker"},{"name":"$stickerOwnerID","version":"1.4.0","description":"Returns the user who added the sticker","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull owner of","rest":false,"required":true,"type":"Sticker"}],"output":["User"],"category":"sticker"},{"name":"$stickerPackID","version":"1.4.0","description":"Returns a sticker's pack id","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull pack of","rest":false,"required":true,"type":"Sticker"}],"output":["String"],"category":"sticker"},{"name":"$stickerRawData","version":"1.5.0","description":"Returns the raw data of a sticker","unwrap":true,"brackets":false,"args":[{"name":"sticker ID","rest":false,"required":true,"description":"The sticker to get raw data from","type":"Sticker"}],"output":["Json"],"category":"sticker"},{"name":"$stickerSortValue","version":"1.4.0","description":"Returns a sticker's sort value","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to get sort value of","rest":false,"required":true,"type":"Sticker"}],"output":["Number"],"category":"sticker"},{"name":"$stickerTags","version":"1.4.0","description":"Returns a sticker's tags","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull tags of","rest":false,"required":true,"type":"Sticker"}],"output":["String"],"category":"sticker"},{"name":"$stickerType","version":"1.4.0","description":"Returns the sticker's type","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to get type of","rest":false,"required":true,"type":"Sticker"}],"output":["StickerType"],"category":"sticker"},{"name":"$stickerURL","version":"2.3.0","description":"Returns a sticker url","brackets":false,"unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to pull url of","rest":false,"required":true,"type":"Sticker"}],"output":["URL"],"category":"sticker"},{"name":"$advancedReplace","version":"1.5.0","aliases":["$advancedReplaceText"],"output":["String"],"description":"Replaces text in a string multiple times","unwrap":true,"args":[{"name":"text","description":"The base text","rest":false,"required":true,"type":"String"},{"name":"match;replacement","description":"The text to match and their replacement","required":true,"rest":true,"type":"String"}],"brackets":true,"category":"string"},{"name":"$argCount","version":"1.0.0","description":"Counts the number of args in a message","aliases":["$argsCount"],"unwrap":true,"brackets":false,"output":["Number"],"args":[{"name":"text","description":"Text to count arguments","required":true,"rest":false,"type":"String"}],"category":"string"},{"name":"$charCodeAt","version":"1.0.6","description":"Returns the char code at given index","brackets":true,"unwrap":true,"output":["Number"],"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}],"category":"string"},{"name":"$charCount","version":"1.0.0","aliases":["$textLength"],"description":"Gets the char count of a text","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"text","description":"The text to get its length","rest":false,"type":"String","required":true},{"name":"char","description":"The character to count in the text","rest":false,"type":"String"}],"category":"string"},{"name":"$checkContains","version":"1.0.0","aliases":["$includes"],"output":["Boolean"],"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,"category":"string"},{"name":"$cropArgs","version":"1.4.0","description":"Crops given args","brackets":true,"output":["String"],"args":[{"name":"args","description":"The args 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,"category":"string"},{"name":"$cropText","version":"1.0.3","description":"Crops given text","brackets":true,"output":["String"],"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"},{"name":"ending","description":"Add extra text to the end","rest":false,"type":"String"}],"unwrap":true,"category":"string"},{"name":"$endsWith","version":"1.0.0","description":"Checks whether given string ends with X string","unwrap":true,"output":["Boolean"],"args":[{"name":"string","description":"The string to check against","type":"String","rest":false,"required":true},{"name":"values","required":true,"description":"The values to match at the end","rest":true,"type":"String"}],"brackets":true,"category":"string"},{"name":"$fromCharCode","version":"1.0.6","description":"Returns the characters from given codes","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"codes","description":"The codes to get its char codes","type":"Number","rest":true,"required":true}],"category":"string"},{"name":"$padEnd","version":"1.0.6","description":"Pads a string at the end","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"message","description":"The string to pad at the end","rest":false,"required":true,"type":"String"},{"name":"max length","description":"The max length of the string","rest":false,"required":true,"type":"Number"},{"name":"filler","description":"The filler to use to pad","rest":false,"type":"String"}],"category":"string"},{"name":"$padStart","version":"1.0.6","description":"Pads a string at the start","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"message","description":"The string to pad at the start","rest":false,"required":true,"type":"String"},{"name":"max length","description":"The max length of the string","rest":false,"required":true,"type":"Number"},{"name":"filler","description":"The filler to use to pad","rest":false,"type":"String"}],"category":"string"},{"name":"$randomString","version":"1.2.0","description":"Creates a random string","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"length","description":"The length of the random string","rest":false,"required":true,"type":"Number"},{"name":"characters","description":"The characters to use for this string","rest":false,"required":false,"type":"String"}],"category":"string"},{"name":"$randomText","version":"1.0.0","description":"Returns a random text (no cache)","unwrap":true,"brackets":true,"output":["String"],"args":[{"name":"texts","description":"The texts to use","rest":true,"required":true,"type":"String"}],"category":"string"},{"name":"$randomUUID","version":"1.2.0","description":"Returns a random uuid","unwrap":false,"output":["String"],"category":"string"},{"name":"$repeat","version":"1.1.0","aliases":["$repeatText"],"description":"Repeats given text for x times","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to repeat","type":"String","rest":false,"required":true},{"name":"amount","rest":false,"required":true,"type":"Number","description":"How many times to repeat this text"}],"category":"string"},{"name":"$replace","version":"1.0.0","aliases":["$replaceText"],"output":["String"],"description":"Replace text in a string","unwrap":true,"args":[{"name":"text","description":"The base text","rest":false,"required":true,"type":"String"},{"name":"match","description":"Text to match in base","rest":false,"required":true,"type":"String"},{"name":"new value","description":"The text to replace matches with","type":"String","rest":false,"required":true},{"name":"amount","description":"How many times to perform this replacement","rest":false,"type":"Number"}],"brackets":true,"category":"string"},{"name":"$replaceRegex","version":"1.0.0","description":"Replace text in a string using regex","unwrap":true,"output":["String"],"args":[{"name":"text","description":"The base text","rest":false,"required":true,"type":"String"},{"name":"match","description":"Regex to match in base","rest":false,"required":true,"type":"String","pointer":2},{"name":"flags","description":"The flags to use for the regex","rest":false,"required":true,"type":"String"},{"name":"new value","description":"The text to replace matches with","type":"String","rest":false,"required":true},{"name":"amount","description":"How many times to perform this replacement","rest":false,"type":"Number"}],"brackets":true,"category":"string"},{"name":"$reverseText","version":"1.5.0","description":"Reverses given text","aliases":["$reverse"],"brackets":true,"unwrap":true,"args":[{"name":"string","description":"The string to use","rest":false,"required":true,"type":"String"}],"output":["String"],"category":"string"},{"name":"$sliceText","version":"1.3.0","description":"Slices given text","brackets":true,"output":["String"],"args":[{"name":"text","description":"The text to slice","rest":false,"required":true,"type":"String"},{"name":"start","description":"The start index","rest":false,"required":false,"type":"Number"},{"name":"end","description":"The end index","rest":false,"required":false,"type":"Number"}],"unwrap":true,"category":"string"},{"name":"$snowflake","version":"1.4.0","description":"Generates a snowflake, this value will never clash","unwrap":false,"output":["String"],"category":"string"},{"name":"$startsWith","version":"1.0.0","description":"Checks whether given string starts with X string","unwrap":true,"output":["Boolean"],"args":[{"name":"string","description":"The string to check against","type":"String","rest":false,"required":true},{"name":"values","required":true,"description":"The values to match at the start","rest":true,"type":"String"}],"brackets":true,"category":"string"},{"name":"$toCamelCase","version":"1.0.6","description":"Converts a string to camel case","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"message","description":"The string to turn camel case","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$toKebabCase","version":"1.0.6","description":"Converts a string to kebab case","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"message","description":"The string to turn kebab case","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$toLowerCase","version":"1.0.0","description":"Makes a string lowercase","unwrap":true,"output":["String"],"args":[{"name":"string","description":"The string to turn lowercase","type":"String","rest":true,"required":true}],"brackets":true,"category":"string"},{"name":"$toSnakeCase","version":"1.0.6","description":"Converts a string to snake case","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"message","description":"The string to turn snake case","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$toTitleCase","version":"1.0.6","description":"Converts a string to title case","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"message","description":"The string to turn title case","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$toUpperCase","version":"1.0.0","description":"Makes a string uppercase","unwrap":true,"output":["String"],"args":[{"name":"string","description":"The string to turn uppercase","type":"String","rest":true,"required":true}],"brackets":true,"category":"string"},{"name":"$trim","version":"1.0.6","aliases":["$trimSpace"],"description":"Trims a string","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to trim","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$trimEnd","version":"1.0.6","description":"Trims at the end of a string","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"text","description":"The text to trim at the end","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$trimLines","version":"1.5.0","description":"Trims empty lines from a string","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to trim empty lines","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$trimStart","version":"1.0.6","description":"Trims at the start of a string","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"text","description":"The text to trim at the start","rest":false,"required":true,"type":"String"}],"category":"string"},{"name":"$cpu","version":"1.0.0","description":"Returns the cpu usage of the host (not accurate)","aliases":["$cpuUsage"],"unwrap":false,"output":["Number"],"category":"system"},{"name":"$cpuArch","version":"1.0.7","output":["String"],"description":"Returns the cpu architecture","unwrap":false,"category":"system"},{"name":"$cpuCores","version":"1.0.7","output":["Number"],"description":"Returns the amount of cpu cores","unwrap":false,"category":"system"},{"name":"$cpuModel","version":"1.0.7","description":"Returns the cpu model","unwrap":false,"output":["String"],"category":"system"},{"name":"$cpuSpeed","version":"1.0.7","description":"Returns the cpu speed in MHz","unwrap":false,"output":["Number"],"category":"system"},{"name":"$networkCardIPs","version":"1.2.0","description":"Returns your network's card ips","unwrap":true,"output":["String[]"],"brackets":false,"args":[{"name":"separator","description":"The separator to use","rest":false,"required":true,"type":"String"}],"category":"system"},{"name":"$networkCardNames","version":"1.2.0","description":"Returns your network's card names","unwrap":true,"output":["String[]"],"brackets":false,"args":[{"name":"separator","description":"The separator to use","rest":false,"required":true,"type":"String"}],"category":"system"},{"name":"$nodeVersion","version":"1.0.0","description":"Returns the node version","unwrap":false,"output":["String"],"category":"system"},{"name":"$os","version":"1.0.7","description":"Returns the operating system name","unwrap":false,"output":["String"],"category":"system"},{"name":"$osUptime","version":"1.0.7","description":"Returns the operating system uptime (seconds)","unwrap":false,"output":["Number"],"category":"system"},{"name":"$ram","version":"1.0.0","description":"Returns the current ram usage in MB","aliases":["$memory","$ramUsage"],"unwrap":false,"output":["Number"],"category":"system"},{"name":"$ramTotal","version":"2.2.0","description":"Returns the maximum total ram capacity of the system in GB","aliases":["$memoryTotal","$maxRam"],"unwrap":false,"output":["Number"],"category":"system"},{"name":"$calendarDay","version":"1.5.0","description":"Returns the calendar day","unwrap":false,"output":["Number"],"category":"time"},{"name":"$calendarWeek","version":"1.5.0","description":"Returns the calendar week","unwrap":false,"output":["Number"],"category":"time"},{"name":"$clearInterval","version":"2.3.0","description":"Clears an active interval, returns bool","aliases":["$stopInterval"],"unwrap":true,"brackets":true,"args":[{"name":"name","description":"The name of the interval","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"time"},{"name":"$clearTimeout","version":"2.3.0","description":"Clears an active timeout, returns bool","aliases":["$stopTimeout"],"unwrap":true,"brackets":true,"args":[{"name":"name","description":"The name of the timeout","rest":false,"required":true,"type":"String"}],"output":["Boolean"],"category":"time"},{"name":"$day","version":"1.2.0","description":"Returns current day of month","aliases":["$dayOfMonth"],"unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the day","rest":false,"type":"Enum","enum":["Numeric","TwoDigit"],"enumName":"BasicTimeFormat"}],"output":["String"],"category":"time"},{"name":"$discordTimestamp","version":"1.4.0","description":"Creates a discord timestamp","unwrap":true,"brackets":true,"args":[{"name":"time","description":"The time to turn into timestamp","rest":false,"required":true,"type":"Time"},{"name":"style","rest":false,"required":true,"enum":["ShortTime","LongTime","ShortDate","LongDate","ShortDateTime","LongDateTime","RelativeTime"],"type":"Enum","description":"The timestamp style","enumName":"TimestampStyles"}],"output":["String"],"category":"time"},{"name":"$executionTime","version":"1.0.3","description":"Returns current execution time","unwrap":false,"output":["Number"],"category":"time"},{"name":"$getTimestamp","version":"1.0.0","description":"Gets the current timestamp","unwrap":false,"output":["Number"],"category":"time"},{"name":"$hour","version":"1.2.0","description":"Returns current hour","unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the hour","rest":false,"type":"Enum","enum":["Numeric","TwoDigit"],"enumName":"BasicTimeFormat"}],"output":["Number"],"category":"time"},{"name":"$minute","version":"1.2.0","description":"Returns current minute","unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the minute","rest":false,"type":"Enum","enum":["Numeric","TwoDigit"],"enumName":"BasicTimeFormat"}],"output":["Number"],"category":"time"},{"name":"$month","version":"1.2.0","description":"Returns current month","unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the month","rest":false,"type":"Enum","enum":["Numeric","TwoDigit","Long","Short","Narrow"],"enumName":"ExtendedTimeFormat"}],"output":["String"],"category":"time"},{"name":"$parseDate","version":"1.0.2","description":"Parses valid ms to a date","brackets":true,"output":["Date"],"args":[{"name":"ms","description":"The ms to convert to date","rest":false,"type":"Number","required":true},{"name":"type","description":"The date type","enum":["LocaleDate","LocaleTime","Locale","Date","ISO","UTC","Time"],"rest":false,"required":true,"type":"Enum","enumName":"DateType"}],"unwrap":true,"category":"time"},{"name":"$parseDigital","version":"1.5.0","description":"Parses given ms to digital format","brackets":true,"unwrap":true,"output":["String"],"args":[{"name":"ms","description":"The ms to convert to digital format","rest":false,"type":"Number","required":true}],"category":"time"},{"name":"$parseMS","version":"1.0.2","description":"Parses valid ms to duration","brackets":true,"output":["String"],"args":[{"name":"ms","description":"The ms to convert to string","rest":false,"type":"Number","required":true},{"name":"limit","description":"Limit of units to use","rest":false,"type":"Number"},{"name":"separator","description":"The separator to use for every unit","rest":false,"type":"String"},{"name":"and","rest":false,"description":"Whether to use and word for last unit","type":"Boolean"}],"unwrap":true,"category":"time"},{"name":"$parseString","version":"1.0.2","description":"Parses valid duration string to ms","brackets":true,"output":["Number"],"args":[{"name":"duration","description":"The valid string to convert to ms","rest":false,"type":"String","required":true}],"unwrap":true,"category":"time"},{"name":"$second","version":"1.2.0","description":"Returns current second","unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the second","rest":false,"type":"Enum","enum":["Numeric","TwoDigit"],"enumName":"BasicTimeFormat"}],"output":["Number"],"category":"time"},{"name":"$setCalendar","version":"1.5.0","aliases":["$calendar"],"description":"Sets the calendar for time functions","unwrap":true,"brackets":true,"args":[{"name":"type","description":"The calendar type to use","rest":false,"type":"Enum","enum":["Buddhist","Chinese","Coptic","Dangi","Ethioaa","Ethiopic","Gregory","Hebrew","Indian","Islamic","IslamicUmalqura","IslamicTbla","IslamicCivil","IslamicRgsa","Iso8601","Japanese","Persian","Roc"],"required":true,"enumName":"CalendarType"}],"category":"time"},{"name":"$setInterval","version":"1.0.2","description":"Executes code after given duration until canceled","unwrap":false,"brackets":true,"args":[{"name":"code","description":"The code to execute","rest":false,"required":true,"type":"String"},{"name":"time","description":"How long to wait for before running this code","rest":false,"type":"Time"},{"name":"name","description":"The name for this interval","rest":false,"type":"String"}],"category":"time"},{"name":"$setTimeout","version":"1.0.2","description":"Executes code after given duration","unwrap":false,"brackets":true,"args":[{"name":"code","description":"The code to execute","rest":false,"required":true,"type":"String"},{"name":"time","description":"How long to wait for before running this code","rest":false,"type":"Time"},{"name":"name","description":"The name for this timeout","rest":false,"type":"String"}],"category":"time"},{"name":"$setTimezone","version":"1.5.0","aliases":["$timezone"],"description":"Sets the timezone for time functions","unwrap":true,"brackets":true,"args":[{"name":"timezone","description":"The timezone to set","rest":false,"type":"String","required":true}],"category":"time"},{"name":"$unparseDate","version":"1.2.0","description":"Unparses given date to ms","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"date","description":"The date to get its ms","type":"Date","rest":false,"required":true}],"category":"time"},{"name":"$unparseDigital","version":"1.5.0","description":"Unparses given digital format to ms","brackets":true,"unwrap":true,"output":["Number"],"args":[{"name":"digital","description":"The digital format to convert to ms","rest":false,"type":"String","required":true}],"category":"time"},{"name":"$wait","version":"1.0.0","description":"Delays the code below for x milliseconds","brackets":true,"unwrap":true,"args":[{"name":"duration","description":"The duration to wait for","rest":false,"type":"Time","required":true}],"category":"time"},{"name":"$week","version":"1.5.0","description":"Returns current week of month","unwrap":false,"output":["Number"],"category":"time"},{"name":"$weekday","version":"2.3.0","description":"Returns current day of week","aliases":["$dayOfWeek"],"unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the day","rest":false,"type":"Enum","enum":["Numeric","TwoDigit","Long","Short","Narrow"],"enumName":"ExtendedTimeFormat"}],"output":["String"],"category":"time"},{"name":"$year","version":"1.2.0","description":"Returns current year","unwrap":true,"brackets":false,"args":[{"name":"format","description":"The format of the year","rest":false,"type":"Enum","enum":["Numeric","TwoDigit"],"enumName":"BasicTimeFormat"}],"output":["Number"],"category":"time"},{"name":"$api","version":"1.5.0","description":"Sends a discord api request, using a discord-api-types route","unwrap":true,"aliases":["$discordAPI"],"args":[{"name":"route name","description":"Route name, like so `channel`","type":"String","rest":false},{"name":"route method","description":"Route method, like so `get`","type":"String","rest":false,"required":true},{"name":"route params;body","description":"Parameters for this route, body has to be json","rest":true,"required":true,"type":"String"}],"output":["Unknown"],"brackets":true,"category":"unsafe"},{"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,"category":"unsafe"},{"name":"$djsEval","version":"1.0.0","aliases":["$js"],"description":"Evaluates JavaScript code","unwrap":true,"output":["Unknown"],"args":[{"name":"code","description":"The code to eval","rest":true,"required":true,"type":"String"}],"brackets":true,"category":"unsafe"},{"name":"$eval","version":"1.0.0","description":"Evaluates given code","unwrap":true,"output":["Unknown"],"brackets":true,"args":[{"name":"code","type":"String","rest":false,"required":true,"description":"The code to eval"},{"name":"send","type":"Boolean","rest":false,"description":"Whether to send as new message"}],"category":"unsafe"},{"name":"$exec","version":"1.0.0","brackets":true,"description":"Runs a command in console","unwrap":true,"output":["Unknown"],"args":[{"name":"command","description":"The command to execute","rest":false,"type":"String","required":true}],"category":"unsafe"},{"name":"$function","version":"1.0.0","description":"Runs a function","unwrap":false,"experimental":true,"output":["Unknown"],"args":[{"name":"code","description":"Code to execute","required":true,"type":"String","rest":true}],"brackets":true,"category":"unsafe"},{"name":"$gc","version":"1.5.0","description":"Triggers JavaScript's garbage collector, only available if passed --expose-gc flag to node","unwrap":false,"output":["Boolean"],"category":"unsafe"},{"name":"$instanceName","version":"1.4.0","aliases":["$instance","$contextInstance"],"description":"Returns the context's instance name","output":["String"],"unwrap":false,"category":"unsafe"},{"name":"$loadChannelContext","version":"1.4.0","aliases":["$useChannelContext","$asChannelContext"],"brackets":true,"description":"Loads a channel instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"args":[{"name":"channel ID","description":"The channel to adapt context with","rest":false,"required":true,"type":"Channel"}],"category":"unsafe"},{"name":"$loadGuildContext","version":"1.4.0","aliases":["$useGuildContext","$asGuildContext"],"brackets":true,"description":"Loads a guild instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"args":[{"name":"guild ID","description":"The guild to adapt context with","rest":false,"required":true,"type":"Guild"}],"category":"unsafe"},{"name":"$loadMemberContext","version":"1.4.0","aliases":["$useMemberContext","$asMemberContext"],"description":"Loads a member instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to pull member from","rest":false,"required":true,"type":"Guild"},{"name":"member ID","description":"The member to adapt context with","rest":false,"required":true,"type":"Member","pointer":0}],"category":"unsafe"},{"name":"$loadMessageContext","version":"1.4.0","aliases":["$useMessageContext","$asMessageContext"],"description":"Loads a message instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"brackets":true,"args":[{"name":"channel ID","description":"The channel to pull message from","rest":false,"required":true,"type":"TextChannel"},{"name":"message ID","description":"The message to adapt context with","rest":false,"required":true,"type":"Message","pointer":0}],"category":"unsafe"},{"name":"$loadRoleContext","version":"1.4.0","aliases":["$useRoleContext","$asRoleContext"],"description":"Loads a role instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"brackets":true,"args":[{"name":"guild ID","description":"The guild to pull role from","rest":false,"required":true,"type":"Guild"},{"name":"role ID","description":"The role to adapt context with","rest":false,"required":true,"type":"Role","pointer":0}],"category":"unsafe"},{"name":"$loadStickerContext","version":"1.4.0","aliases":["$useStickerContext","$asStickerContext"],"brackets":true,"description":"Loads a sticker instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"args":[{"name":"sticker ID","description":"The sticker to adapt context with","rest":false,"required":true,"type":"Sticker"}],"category":"unsafe"},{"name":"$loadUserContext","version":"1.4.0","aliases":["$useUserContext","$asUserContext"],"brackets":true,"description":"Loads a user instance to the current context, this is not reversible and is adviced to use with $scope.","unwrap":true,"args":[{"name":"user ID","description":"The user to adapt context with","rest":false,"required":true,"type":"User"}],"category":"unsafe"},{"name":"$authorID","version":"1.0.0","aliases":["$userID"],"description":"Retrieves a user's id","unwrap":false,"output":["User"],"category":"user"},{"name":"$discriminator","version":"1.4.0","description":"Returns the user discriminator","brackets":false,"unwrap":true,"args":[{"name":"user ID","description":"The user to get its discriminator","rest":false,"required":true,"type":"User"}],"output":["String"],"category":"user"},{"name":"$isBot","version":"1.0.0","description":"Whether the user is a bot","unwrap":true,"output":["Boolean"],"args":[{"name":"user ID","description":"The user to check whether its a bot","required":true,"rest":false,"type":"User"}],"brackets":false,"category":"user"},{"name":"$isBotVerified","version":"1.0.0","description":"Whether the bot is verified","unwrap":true,"output":["Boolean"],"args":[{"name":"user ID","description":"The bot to check whether its verified","required":true,"rest":false,"type":"User"}],"brackets":false,"category":"user"},{"name":"$isUserDMEnabled","version":"1.2.0","description":"Checks whether the given user can be DMed","unwrap":true,"brackets":false,"output":["Boolean"],"args":[{"name":"user","description":"The user to test DMs","rest":false,"required":true,"type":"User"}],"category":"user"},{"name":"$randomUserID","version":"1.0.3","description":"Returns a random user ID","unwrap":false,"output":["User"],"category":"user"},{"name":"$sendDM","version":"1.0.0","description":"Sends a dm to the user","unwrap":true,"brackets":true,"output":["Message"],"args":[{"name":"user ID","description":"The user to dm","rest":false,"type":"User","required":true},{"name":"content","description":"The content to send","rest":false,"type":"String"},{"name":"return message ID","description":"Returns the message id of the newly created message","rest":false,"type":"Boolean"}],"category":"user"},{"name":"$userAccentColor","version":"1.0.0","description":"Returns the user accent color","brackets":false,"output":["Color"],"args":[{"name":"user ID","description":"The user to retrieve the accent color","rest":false,"required":true,"type":"User"}],"unwrap":true,"category":"user"},{"name":"$userAvatar","version":"1.0.0","description":"Returns the user avatar","brackets":false,"output":["URL"],"args":[{"name":"user ID","description":"The user to retrieve the avatar","rest":false,"required":true,"type":"User"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"user"},{"name":"$userAvatarDecoration","version":"1.0.0","description":"Returns the user decoration","brackets":false,"output":["URL"],"args":[{"name":"user ID","description":"The user to retrieve the decoration","rest":false,"required":true,"type":"User"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"user"},{"name":"$userBadges","version":"1.0.0","description":"Returns the public badges of a user","aliases":["$userFlags"],"unwrap":true,"output":["UserFlags[]"],"args":[{"name":"user ID","description":"The user to return its badges","required":true,"rest":false,"type":"User"},{"name":"separator","description":"The separator to use for every badge","rest":false,"type":"String"}],"brackets":false,"category":"user"},{"name":"$userBanner","version":"1.0.0","description":"Returns the user banner","brackets":false,"output":["URL"],"args":[{"name":"user ID","description":"The user to retrieve the banner","rest":false,"required":true,"type":"User"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"unwrap":true,"category":"user"},{"name":"$userCount","version":"1.0.0","description":"Returns the user count of the bot","unwrap":false,"output":["Number"],"category":"user"},{"name":"$userCreatedAt","version":"1.0.2","description":"Returns the timestamp this user created their account","unwrap":true,"output":["Number"],"args":[{"name":"user ID","description":"The user to return its creation date","required":true,"rest":false,"type":"User"}],"brackets":false,"category":"user"},{"name":"$userDefaultAvatar","version":"1.5.0","description":"Returns the default user avatar","brackets":false,"output":["URL"],"args":[{"name":"user ID","description":"The user to retrieve the default avatar","rest":false,"required":true,"type":"User"}],"unwrap":true,"category":"user"},{"name":"$userDisplayName","version":"1.0.0","description":"Returns the display name of a user","unwrap":true,"output":["String"],"args":[{"name":"user ID","description":"The user to return its display name","required":true,"rest":false,"type":"User"}],"brackets":false,"category":"user"},{"name":"$userExists","version":"1.0.0","description":"Returns whether a user id exists","unwrap":true,"output":["Boolean"],"brackets":true,"args":[{"name":"user ID","description":"The user to check","rest":false,"required":true,"type":"String"}],"category":"user"},{"name":"$userGlobalName","version":"1.0.0","description":"Returns the global name of a user","unwrap":true,"output":["String"],"args":[{"name":"user ID","description":"The user to return its global name","required":true,"rest":false,"type":"User"}],"brackets":false,"category":"user"},{"name":"$userGuildBadge","version":"2.5.0","description":"Returns the primary guild tag badge of a user","unwrap":true,"brackets":false,"args":[{"name":"user ID","description":"The user to get its primary guild","required":true,"rest":false,"type":"User"},{"name":"size","description":"The size to use for the image","rest":false,"type":"Number"},{"name":"extension","description":"The extension to use for the image","rest":false,"type":"String"}],"output":["URL"],"category":"user"},{"name":"$userGuildEnabled","version":"2.5.0","description":"Returns whether the primary guild of a user is enabled","unwrap":true,"brackets":false,"args":[{"name":"user ID","description":"The user to get its primary guild","required":true,"rest":false,"type":"User"}],"output":["Boolean"],"category":"user"},{"name":"$userGuildID","version":"2.5.0","description":"Returns the primary guild id of a user","unwrap":true,"brackets":false,"args":[{"name":"user ID","description":"The user to get its primary guild","required":true,"rest":false,"type":"User"}],"output":["Guild"],"category":"user"},{"name":"$userGuildTag","version":"2.5.0","description":"Returns the primary guild tag name of a user","unwrap":true,"brackets":false,"args":[{"name":"user ID","description":"The user to get its primary guild","required":true,"rest":false,"type":"User"}],"output":["String"],"category":"user"},{"name":"$userIDs","version":"1.4.0","description":"Returns all the users that are currently cached","unwrap":true,"brackets":false,"args":[{"name":"separator","description":"The separator to use for every id","rest":false,"type":"String"}],"output":["User[]"],"category":"user"},{"name":"$userRawData","version":"1.5.0","description":"Returns the raw data of a user","unwrap":true,"brackets":false,"args":[{"name":"user ID","description":"The user to get raw data from","rest":false,"type":"User","required":true}],"output":["Json"],"category":"user"},{"name":"$userReferenceID","version":"1.5.0","description":"Returns the id of the user this message replies to","unwrap":true,"output":["User"],"args":[{"name":"channel ID","rest":false,"required":true,"description":"The channel to get the message from","type":"Channel"},{"name":"message ID","description":"The message to get its reference user","rest":false,"type":"Message","pointer":0,"required":true}],"brackets":false,"category":"user"},{"name":"$userTag","version":"1.4.0","description":"Returns the user tag","brackets":false,"unwrap":true,"args":[{"name":"user ID","description":"The user to get its tag","rest":false,"required":true,"type":"User"}],"output":["String"],"category":"user"},{"name":"$username","version":"1.0.0","description":"Retrieves a user's username","brackets":false,"output":["String"],"args":[{"name":"id","description":"The user id to get the username of","type":"User","rest":false}],"unwrap":true,"category":"user"},{"name":"$delete","version":"1.0.0","description":"Deletes a keyword","unwrap":true,"output":["Boolean"],"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true}],"brackets":true,"category":"variable"},{"name":"$env","version":"1.0.0","aliases":["$jsonDump"],"output":["Unknown"],"description":"Retrieves an environment value","args":[{"name":"key","description":"The key to return its value","required":true,"type":"String","rest":true}],"brackets":true,"unwrap":true,"category":"variable"},{"name":"$get","version":"1.0.0","output":["Unknown"],"description":"Get a keyword value","unwrap":true,"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true}],"brackets":true,"category":"variable"},{"name":"$has","version":"1.0.0","description":"Checks whether a keyword exists","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"name","description":"The name of the keyword","rest":false,"type":"String","required":true}],"category":"variable"},{"name":"$let","version":"1.0.0","description":"Create a keyword","unwrap":true,"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true},{"name":"value","description":"The key value","rest":false,"required":true,"type":"String"}],"brackets":true,"category":"variable"},{"name":"$letDivide","version":"1.3.0","description":"Short-hand for $let[...;$divide[$get[...];...]]","unwrap":true,"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true},{"name":"value","description":"The value to divide with","rest":false,"required":true,"type":"Number"}],"brackets":true,"category":"variable"},{"name":"$letMulti","version":"1.3.0","description":"Short-hand for $let[...;$multi[$get[...];...]]","unwrap":true,"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true},{"name":"value","description":"The value to multiply with","rest":false,"required":true,"type":"Number"}],"brackets":true,"category":"variable"},{"name":"$letSub","version":"1.3.0","description":"Short-hand for $let[...;$sub[$get[...];...]]","unwrap":true,"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true},{"name":"value","description":"The value to sub with","rest":false,"required":true,"type":"Number"}],"brackets":true,"category":"variable"},{"name":"$letSum","version":"1.3.0","description":"Short-hand for $let[...;$sum[$get[...];...]]","unwrap":true,"args":[{"name":"key","description":"The key name","rest":false,"type":"String","required":true},{"name":"value","description":"The value to sum with","rest":false,"required":true,"type":"Number"}],"brackets":true,"category":"variable"},{"name":"$webhookCreate","version":"1.0.0","description":"Creates a webhook in a channel, returns the webhook id","brackets":true,"unwrap":true,"output":["Webhook"],"args":[{"name":"channel ID","description":"The channel to create the webhook","type":"Channel","rest":false,"required":true},{"name":"name","description":"The webhook name","rest":false,"required":true,"type":"String"},{"name":"url","description":"The avatar url","rest":false,"type":"String"}],"category":"webhook"},{"name":"$webhookDelete","version":"1.0.0","description":"Deletes webhook with given id","brackets":true,"unwrap":true,"args":[{"name":"id","description":"The webhook id","rest":false,"type":"Webhook","required":true}],"category":"webhook"},{"name":"$webhookEdit","version":"1.0.0","description":"Edits webhook with given id, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"id","description":"The webhook id","rest":false,"type":"Webhook","required":true},{"name":"name","description":"The new name for the webhook","rest":false,"type":"String"},{"name":"url","description":"The new avatar for the webhook","rest":false,"type":"String"}],"category":"webhook"},{"name":"$webhookEditMessage","version":"1.5.0","description":"Edits a webhook message, returns bool","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"url","description":"The webhook url","rest":false,"required":true,"type":"String"},{"name":"message ID","description":"The message to edit","rest":false,"required":true,"type":"String"},{"name":"content","description":"The new content for the message","rest":false,"type":"String"},{"name":"thread ID","description":"The thread this message belongs to","rest":false,"type":"Channel"}],"category":"webhook"},{"name":"$webhookExists","version":"1.0.0","description":"Checks whether given webhook id eixsts","brackets":true,"unwrap":true,"output":["Boolean"],"args":[{"name":"id","description":"The webhook id","rest":false,"type":"String","required":true}],"category":"webhook"},{"name":"$webhookIsUserCreated","version":"2.3.0","description":"Checks whether given webhook is user created","brackets":true,"unwrap":true,"args":[{"name":"id","description":"The webhook id","rest":false,"type":"Webhook","required":true}],"output":["Boolean"],"category":"webhook"},{"name":"$webhookSend","version":"1.0.0","description":"Sends a message with a webhook","brackets":true,"unwrap":true,"output":["Message"],"args":[{"name":"url","description":"The webhook url","rest":false,"required":true,"type":"String"},{"name":"content","description":"The content for the message","rest":false,"type":"String"},{"name":"return message ID","description":"Return the message id of the sent message","rest":false,"type":"Boolean"},{"name":"username","description":"The username for the message","rest":false,"type":"String"},{"name":"avatar","description":"The avatar for the message","rest":false,"type":"String"},{"name":"thread ID","description":"The thread to send message to","rest":false,"type":"Channel"},{"name":"post name","description":"The name for the created forum post","rest":false,"type":"String"},{"name":"tags","description":"The tags for the created forum post","rest":true,"type":"String"}],"category":"webhook"},{"name":"$webhookToken","version":"1.0.0","description":"Gets webhook token of given id","brackets":true,"output":["String"],"unwrap":true,"args":[{"name":"id","description":"The webhook id","rest":false,"type":"String","required":true}],"category":"webhook"},{"name":"$webhookType","version":"2.3.0","description":"Returns the type of a webhook","brackets":true,"unwrap":true,"args":[{"name":"id","description":"The webhook id","rest":false,"type":"Webhook","required":true}],"output":["WebhookType"],"category":"webhook"},{"name":"$webhookURL","version":"1.0.0","description":"Gets webhook url with given id","brackets":true,"output":["URL"],"unwrap":true,"args":[{"name":"id","description":"The webhook id","rest":false,"type":"String","required":true}],"category":"webhook"},{"name":"$ws","version":"1.5.0","description":"Creates a WebSocket connection to a server","aliases":["$websocket"],"brackets":true,"unwrap":true,"args":[{"name":"host","description":"The WS host, formatted as wss://hostname:port","rest":false,"required":true,"type":"String"}],"output":["Number"],"category":"websocket"},{"name":"$wsClose","version":"1.5.0","description":"Closes a websocket connection and removes all listeners of it","aliases":["$websocketClose"],"brackets":true,"unwrap":true,"args":[{"name":"websocket ID","description":"The id of the websocket to attach this listener to","rest":false,"required":true,"type":"Number"},{"name":"code","description":"The status code to send","rest":false,"type":"Number"}],"category":"websocket"},{"name":"$wsOn","version":"1.5.0","description":"Attach a listener to a websocket","unwrap":false,"aliases":["$websocketOn"],"brackets":true,"args":[{"name":"websocket ID","description":"The id of the websocket to attach this listener to","rest":false,"required":true,"type":"Number"},{"name":"listener name","description":"The name of the event to listen to","rest":false,"required":true,"type":"String"},{"name":"callback","description":"The code to execute every time this event is fired","rest":false,"required":true,"type":"String"},{"name":"params","description":"The arguments that will contain the data of the event that was sent","rest":true,"required":true,"type":"String"}],"category":"websocket"},{"name":"$wsSend","version":"1.5.0","description":"Sends a websocket message","aliases":["$websocketSend"],"brackets":true,"unwrap":false,"args":[{"name":"websocket ID","description":"The id of the websocket to attach this listener to","rest":false,"required":true,"type":"Number"},{"name":"value","description":"The json value to send over","rest":false,"required":true,"type":"Json"},{"name":"callback","description":"Code to execute on completion of request","rest":false,"type":"String"},{"name":"variable name","description":"Variable to store error on if callback was called for an error","rest":false,"required":false,"type":"String"}],"category":"websocket"},{"name":"$wsState","version":"1.5.0","output":["ConnectionState"],"description":"Returns a websocket's connection state","unwrap":true,"brackets":true,"args":[{"name":"websocket ID","description":"The websocket to get its state","rest":false,"required":true,"type":"Number"}],"category":"websocket"}] \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a26097d448..73fcb02a82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "@tryforge/forgescript", - "version": "2.4.0", + "version": "2.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@tryforge/forgescript", - "version": "2.4.0", + "version": "2.5.0", "license": "GPL-3.0", "dependencies": { "chalk": "^4.1.2", - "discord.js": "^14.21.0", + "discord.js": "^14.22.1", "ms-utility": "^3.3.0", "tiny-typed-emitter": "^2.1.0", "undici": "^5.23.0" @@ -89,9 +89,9 @@ } }, "node_modules/@discordjs/rest": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.5.1.tgz", - "integrity": "sha512-Tg9840IneBcbrAjcGaQzHUJWFNq1MMWZjTdjJ0WS/89IffaNKc++iOvffucPxQTF/gviO9+9r8kEPea1X5J2Dw==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.6.0.tgz", + "integrity": "sha512-RDYrhmpB7mTvmCKcpj+pc5k7POKszS4E2O9TYc+U+Y4iaCP+r910QdO43qmpOja8LRr1RJ0b3U+CqVsnPqzf4w==", "license": "Apache-2.0", "dependencies": { "@discordjs/collection": "^2.1.1", @@ -99,7 +99,7 @@ "@sapphire/async-queue": "^1.5.3", "@sapphire/snowflake": "^3.5.3", "@vladfrangu/async_event_emitter": "^2.4.6", - "discord-api-types": "^0.38.1", + "discord-api-types": "^0.38.16", "magic-bytes.js": "^1.10.0", "tslib": "^2.6.3", "undici": "6.21.3" @@ -1091,25 +1091,28 @@ } }, "node_modules/discord-api-types": { - "version": "0.38.1", - "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.1.tgz", - "integrity": "sha512-vsjsqjAuxsPhiwbPjTBeGQaDPlizFmSkU0mTzFGMgRxqCDIRBR7iTY74HacpzrDV0QtERHRKQEk1tq7drZUtHg==", - "license": "MIT" + "version": "0.38.21", + "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.21.tgz", + "integrity": "sha512-E6KtXUNjZVIYP1GMjmeRdAC1xRql9xtSahRwJYpP74/hJ6Q2i2oTp6ZbFG/FUN0WqtdW2igHDsJyF2u9hV8pHQ==", + "license": "MIT", + "workspaces": [ + "scripts/actions/documentation" + ] }, "node_modules/discord.js": { - "version": "14.21.0", - "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.21.0.tgz", - "integrity": "sha512-U5w41cEmcnSfwKYlLv5RJjB8Joa+QJyRwIJz5i/eg+v2Qvv6EYpCRhN9I2Rlf0900LuqSDg8edakUATrDZQncQ==", + "version": "14.22.1", + "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.22.1.tgz", + "integrity": "sha512-3k+Kisd/v570Jr68A1kNs7qVhNehDwDJAPe4DZ2Syt+/zobf9zEcuYFvsfIaAOgCa0BiHMfOOKQY4eYINl0z7w==", "license": "Apache-2.0", "dependencies": { "@discordjs/builders": "^1.11.2", "@discordjs/collection": "1.5.3", "@discordjs/formatters": "^0.6.1", - "@discordjs/rest": "^2.5.1", + "@discordjs/rest": "^2.6.0", "@discordjs/util": "^1.1.1", "@discordjs/ws": "^1.2.3", "@sapphire/snowflake": "3.5.3", - "discord-api-types": "^0.38.1", + "discord-api-types": "^0.38.16", "fast-deep-equal": "3.1.3", "lodash.snakecase": "4.1.1", "magic-bytes.js": "^1.10.0", diff --git a/package.json b/package.json index e448b9e205..214b30c0d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tryforge/forgescript", - "version": "2.4.1", + "version": "2.5.0", "description": "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.", "types": "dist/index.d.ts", "main": "dist/index.js", @@ -51,7 +51,7 @@ }, "dependencies": { "chalk": "^4.1.2", - "discord.js": "^14.21.0", + "discord.js": "^14.22.1", "ms-utility": "^3.3.0", "tiny-typed-emitter": "^2.1.0", "undici": "^5.23.0" diff --git a/src/commit.ts b/src/commit.ts index 38606de34c..901969f684 100644 --- a/src/commit.ts +++ b/src/commit.ts @@ -2,6 +2,7 @@ import { execSync } from "child_process" import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs" import prompt from "./functions/prompt" import { join } from "path" +import { platform } from "os" const path = "./metadata" if (!existsSync(path)) mkdirSync(path) @@ -33,18 +34,19 @@ async function main() { const fileName = join(path, "changelogs.json") const json: Record = existsSync(fileName) ? JSON.parse(readFileSync(fileName, "utf-8")) : {} json[version] ??= [] - + const author = execSync("git config user.name").toString().trim() if (!skip) { json[version].unshift({ message: msg, timestamp: new Date(), - author: execSync("git config user.name").toString().trim() + author }) writeFileSync(fileName, JSON.stringify(json), "utf-8") } const branch = await prompt("Write the branch name to push to (defaults to dev): ") || "dev" - const escapedMsg = msg.replace(/\$/g, "\\$") + let escapedMsg = msg + if (platform() === "darwin") escapedMsg = escapedMsg.replace(/\$/g, "\\$") execSync("git branch -M " + branch + " && git add . && git commit -m \"" + escapedMsg + "\" && git push -u origin " + branch, { stdio: "inherit" diff --git a/src/core/ForgeClient.ts b/src/core/ForgeClient.ts index 566673679a..e72be687e6 100644 --- a/src/core/ForgeClient.ts +++ b/src/core/ForgeClient.ts @@ -6,7 +6,6 @@ import { Partials, DefaultWebSocketManagerOptions, Message, - Collection, } from "discord.js" import { IExtendedCompilationResult, Compiler } from "." import { diff --git a/src/core/Interpreter.ts b/src/core/Interpreter.ts index 735ec730bb..d37df6c799 100644 --- a/src/core/Interpreter.ts +++ b/src/core/Interpreter.ts @@ -1,14 +1,37 @@ -import { Message, VoiceState, Presence, Role, GuildMember, GuildEmoji, User, GuildAuditLogsEntry, Channel, Guild, StageInstance, Invite, PartialMessage, Sticker, GuildBan, GuildScheduledEvent, Entitlement, PollAnswer, AutoModerationRule, VoiceChannelEffect, SoundboardSound, PartialSoundboardSound } from "discord.js" +import { + AutoModerationRule, + Channel, + Entitlement, + Guild, + GuildAuditLogsEntry, + GuildBan, + GuildEmoji, + GuildMember, + GuildScheduledEvent, + Invite, + Message, + PartialMessage, + PartialSoundboardSound, + PollAnswer, + Presence, + Role, + SoundboardSound, + StageInstance, + Sticker, + Subscription, + User, + VoiceChannelEffect, + VoiceState +} from "discord.js" import { IExtendedCompilationResult } from "." -import { Sendable, BaseCommand, Context, Logger, Container, Return, ReturnType } from "../structures" +import { Sendable, BaseCommand, Context, Logger, Container, Return } from "../structures" import { ForgeClient } from "./ForgeClient" - export interface IStates { message: Message voiceState: VoiceState voiceEffect: VoiceChannelEffect - presence: Presence + presence: Presence role: Role member: GuildMember emoji: GuildEmoji @@ -26,6 +49,7 @@ export interface IStates { sticker: Sticker automodRule: AutoModerationRule soundboardSound: SoundboardSound | PartialSoundboardSound + subscription: Subscription } export type States = { diff --git a/src/functions/generateMetadata.ts b/src/functions/generateMetadata.ts index 9a71f94422..cd9d8bc333 100644 --- a/src/functions/generateMetadata.ts +++ b/src/functions/generateMetadata.ts @@ -74,7 +74,7 @@ export default async function(functionsAbsolutePath: string, mainCategoryName?: const metaOutPath = "./metadata" if (!existsSync(metaOutPath)) mkdirSync(metaOutPath) - const toSrcPath = (absPath: string) => relative(cwd(), absPath).replace(/^dist\//, "src/") + const toSrcPath = (absPath: string) => relative(cwd(), absPath).replace(/\\/g, "/").replace(/^dist\//, "src/") writeFileSync(join(metaOutPath, "paths.json"), JSON.stringify({ functions: toSrcPath(functionsAbsolutePath), diff --git a/src/functions/hex.ts b/src/functions/hex.ts index 9d5741386f..65fb7ad007 100644 --- a/src/functions/hex.ts +++ b/src/functions/hex.ts @@ -5,7 +5,7 @@ export function hex2int(hex: string) { } export function int2hex(int: number | string) { - return Number(int).toString(16) + return Number(int).toString(16).padStart(6, "0") } export function resolveColor(value: string | number) { diff --git a/src/handlers/events/channelPinsUpdate.ts b/src/handlers/events/channelPinsUpdate.ts index 7c252e8a18..bcf4d6f8ca 100644 --- a/src/handlers/events/channelPinsUpdate.ts +++ b/src/handlers/events/channelPinsUpdate.ts @@ -18,5 +18,5 @@ export default new DiscordEventHandler({ }) } }, - intents: ["Guilds"], + intents: ["Guilds", "DirectMessages"], }) diff --git a/src/handlers/events/ready.ts b/src/handlers/events/clientReady.ts similarity index 91% rename from src/handlers/events/ready.ts rename to src/handlers/events/clientReady.ts index 1453e4198f..9caf0adac5 100644 --- a/src/handlers/events/ready.ts +++ b/src/handlers/events/clientReady.ts @@ -4,11 +4,11 @@ import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandl import { InviteTracker } from "../../structures/trackers/InviteTracker" export default new DiscordEventHandler({ - name: "ready", + name: "clientReady", version: "1.0.1", description: "This event is fired when the bot becomes ready", listener: async function () { - const commands = this.commands.get("ready") + const commands = this.commands.get("clientReady") if (commands.length) { for (const command of commands) { Interpreter.run({ diff --git a/src/handlers/events/guildAuditLogEntryCreate.ts b/src/handlers/events/guildAuditLogEntryCreate.ts index fe76e8a3ee..3bcb259a1a 100644 --- a/src/handlers/events/guildAuditLogEntryCreate.ts +++ b/src/handlers/events/guildAuditLogEntryCreate.ts @@ -1,6 +1,5 @@ import { Interpreter } from "../../core" import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler" -import { InviteTracker } from "../../structures/trackers/InviteTracker" export default new DiscordEventHandler({ name: "guildAuditLogEntryCreate", diff --git a/src/handlers/events/guildAvailable.ts b/src/handlers/events/guildAvailable.ts index 686a752961..70036c3fa1 100644 --- a/src/handlers/events/guildAvailable.ts +++ b/src/handlers/events/guildAvailable.ts @@ -1,6 +1,5 @@ import { Interpreter } from "../../core" import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler" -import { InviteTracker } from "../../structures/trackers/InviteTracker" export default new DiscordEventHandler({ name: "guildAvailable", diff --git a/src/handlers/events/guildBanAdd.ts b/src/handlers/events/guildBanAdd.ts index 28dba478a8..c18bb87742 100644 --- a/src/handlers/events/guildBanAdd.ts +++ b/src/handlers/events/guildBanAdd.ts @@ -1,6 +1,5 @@ import { Interpreter } from "../../core" import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler" -import { InviteTracker } from "../../structures/trackers/InviteTracker" export default new DiscordEventHandler({ name: "guildBanAdd", diff --git a/src/handlers/events/guildBanRemove.ts b/src/handlers/events/guildBanRemove.ts index 2716647c67..215d346cf9 100644 --- a/src/handlers/events/guildBanRemove.ts +++ b/src/handlers/events/guildBanRemove.ts @@ -1,6 +1,5 @@ import { Interpreter } from "../../core" import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler" -import { InviteTracker } from "../../structures/trackers/InviteTracker" export default new DiscordEventHandler({ name: "guildBanRemove", diff --git a/src/handlers/events/guildIntegrationsUpdate.ts b/src/handlers/events/guildIntegrationsUpdate.ts new file mode 100644 index 0000000000..0cad54bd41 --- /dev/null +++ b/src/handlers/events/guildIntegrationsUpdate.ts @@ -0,0 +1,28 @@ +import { Interpreter } from "../../core" +import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler" + +export default new DiscordEventHandler({ + name: "guildIntegrationsUpdate", + version: "2.5.0", + description: "This event is fired when an integration is updated on a guild", + listener: async function (g) { + const commands = this.commands.get("guildIntegrationsUpdate") + + for (const command of commands) { + Interpreter.run({ + obj: g, + command, + client: this, + states: { + guild: { + new: g, + old: g + }, + }, + data: command.compiled.code, + args: [], + }) + } + }, + intents: ["GuildIntegrations"], +}) \ No newline at end of file diff --git a/src/handlers/events/guildUnavailable.ts b/src/handlers/events/guildUnavailable.ts index a41379eb3f..b9553c2dbf 100644 --- a/src/handlers/events/guildUnavailable.ts +++ b/src/handlers/events/guildUnavailable.ts @@ -1,6 +1,5 @@ import { Interpreter } from "../../core" import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler" -import { InviteTracker } from "../../structures/trackers/InviteTracker" export default new DiscordEventHandler({ name: "guildUnavailable", diff --git a/src/handlers/events/messageDeleteBulk.ts b/src/handlers/events/messageDeleteBulk.ts index c6446aa767..ba346bcf61 100644 --- a/src/handlers/events/messageDeleteBulk.ts +++ b/src/handlers/events/messageDeleteBulk.ts @@ -25,5 +25,5 @@ export default new DiscordEventHandler({ }) } }, - intents: ["Guilds", "GuildMessages"], + intents: ["GuildMessages"], }) diff --git a/src/handlers/events/messagePollVoteAdd.ts b/src/handlers/events/messagePollVoteAdd.ts index 1e343549ad..19c4c2289e 100644 --- a/src/handlers/events/messagePollVoteAdd.ts +++ b/src/handlers/events/messagePollVoteAdd.ts @@ -25,5 +25,5 @@ export default new DiscordEventHandler({ }) } }, - intents: ["Guilds", "GuildMessagePolls", "DirectMessagePolls"], + intents: ["GuildMessagePolls", "DirectMessagePolls"], }) diff --git a/src/handlers/events/messagePollVoteRemove.ts b/src/handlers/events/messagePollVoteRemove.ts index 58bc351b95..c5ee91b068 100644 --- a/src/handlers/events/messagePollVoteRemove.ts +++ b/src/handlers/events/messagePollVoteRemove.ts @@ -25,5 +25,5 @@ export default new DiscordEventHandler({ }) } }, - intents: ["Guilds", "GuildMessagePolls", "DirectMessagePolls"], + intents: ["GuildMessagePolls", "DirectMessagePolls"], }) diff --git a/src/handlers/events/messageUpdate.ts b/src/handlers/events/messageUpdate.ts index d2be704d93..2a56cb2bb8 100644 --- a/src/handlers/events/messageUpdate.ts +++ b/src/handlers/events/messageUpdate.ts @@ -32,5 +32,5 @@ export default new DiscordEventHandler({ }) } }, - intents: ["GuildMessages"], + intents: ["GuildMessages", "DirectMessages"], }) diff --git a/src/handlers/events/stageInstanceDelete.ts b/src/handlers/events/stageInstanceDelete.ts index 390a5eba47..56b6c9dc12 100644 --- a/src/handlers/events/stageInstanceDelete.ts +++ b/src/handlers/events/stageInstanceDelete.ts @@ -16,6 +16,7 @@ export default new DiscordEventHandler({ states: { stage: { new: ch, + old: ch }, }, data: command.compiled.code, diff --git a/src/handlers/events/subscriptionCreate.ts b/src/handlers/events/subscriptionCreate.ts new file mode 100644 index 0000000000..58d1d04e02 --- /dev/null +++ b/src/handlers/events/subscriptionCreate.ts @@ -0,0 +1,26 @@ +import { Interpreter } from "../../core" +import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler" + +export default new DiscordEventHandler({ + name: "subscriptionCreate", + version: "2.5.0", + description: "This event is fired when a subscription is created", + listener: async function (sub) { + const commands = this.commands.get("subscriptionCreate") + + for (const command of commands) { + Interpreter.run({ + obj: sub, + command, + client: this, + states: { + subscription: { + new: sub, + }, + }, + data: command.compiled.code, + args: [], + }) + } + }, +}) \ No newline at end of file diff --git a/src/handlers/events/subscriptionDelete.ts b/src/handlers/events/subscriptionDelete.ts new file mode 100644 index 0000000000..babf9bdae0 --- /dev/null +++ b/src/handlers/events/subscriptionDelete.ts @@ -0,0 +1,27 @@ +import { Interpreter } from "../../core" +import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler" + +export default new DiscordEventHandler({ + name: "subscriptionDelete", + version: "2.5.0", + description: "This event is fired when a subscription is deleted", + listener: async function (sub) { + const commands = this.commands.get("subscriptionDelete") + + for (const command of commands) { + Interpreter.run({ + obj: sub, + command, + client: this, + states: { + subscription: { + new: sub, + old: sub + }, + }, + data: command.compiled.code, + args: [], + }) + } + }, +}) \ No newline at end of file diff --git a/src/handlers/events/subscriptionUpdate.ts b/src/handlers/events/subscriptionUpdate.ts new file mode 100644 index 0000000000..98df83fb52 --- /dev/null +++ b/src/handlers/events/subscriptionUpdate.ts @@ -0,0 +1,27 @@ +import { Interpreter } from "../../core" +import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler" + +export default new DiscordEventHandler({ + name: "subscriptionUpdate", + version: "2.5.0", + description: "This event is fired when a subscription is updated", + listener: async function (old, newer) { + const commands = this.commands.get("subscriptionUpdate") + + for (const command of commands) { + Interpreter.run({ + obj: newer, + command, + client: this, + states: { + subscription: { + new: newer, + old + }, + }, + data: command.compiled.code, + args: [], + }) + } + }, +}) \ No newline at end of file diff --git a/src/handlers/events/threadMemberUpdate.ts b/src/handlers/events/threadMemberUpdate.ts index b56cc0878d..5d3e0fd6ce 100644 --- a/src/handlers/events/threadMemberUpdate.ts +++ b/src/handlers/events/threadMemberUpdate.ts @@ -1,6 +1,4 @@ -import { GuildMember } from "discord.js" import { Interpreter } from "../../core" -import { InviteTracker } from "../../structures/trackers/InviteTracker" import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler" export default new DiscordEventHandler({ @@ -26,5 +24,5 @@ export default new DiscordEventHandler({ }) } }, - intents: ["GuildMembers"], + intents: ["Guilds", "GuildMembers"], }) diff --git a/src/handlers/events/typingStart.ts b/src/handlers/events/typingStart.ts index f175170645..f262839d7e 100644 --- a/src/handlers/events/typingStart.ts +++ b/src/handlers/events/typingStart.ts @@ -1,10 +1,10 @@ -import { User } from "discord.js" import { Interpreter } from "../../core" import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler" export default new DiscordEventHandler({ name: "typingStart", version: "1.4.0", + description: "This event is fired when a user starts typing", listener: async function (typing) { const commands = this.commands.get("typingStart") @@ -18,6 +18,5 @@ export default new DiscordEventHandler({ }) } }, - description: "This event is fired when a user starts typing", intents: ["GuildMessageTyping", "DirectMessageTyping"], }) diff --git a/src/handlers/events/voiceChannelEffectSend.ts b/src/handlers/events/voiceChannelEffectSend.ts index 35234d2da6..95acf92a4f 100644 --- a/src/handlers/events/voiceChannelEffectSend.ts +++ b/src/handlers/events/voiceChannelEffectSend.ts @@ -23,4 +23,5 @@ export default new DiscordEventHandler({ }) } }, + intents: ["GuildVoiceStates"] }) \ No newline at end of file diff --git a/src/handlers/events/webhooksUpdate.ts b/src/handlers/events/webhooksUpdate.ts new file mode 100644 index 0000000000..89f22ebcae --- /dev/null +++ b/src/handlers/events/webhooksUpdate.ts @@ -0,0 +1,28 @@ +import { Interpreter } from "../../core" +import { DiscordEventHandler } from "../../structures/extended/DiscordEventHandler" + +export default new DiscordEventHandler({ + name: "webhooksUpdate", + version: "2.5.0", + description: "This event is fired when a webhook is updated", + listener: async function (c) { + const commands = this.commands.get("webhooksUpdate") + + for (const command of commands) { + Interpreter.run({ + obj: c, + command, + client: this, + states: { + channel: { + new: c, + old: c + }, + }, + data: command.compiled.code, + args: [], + }) + } + }, + intents: ["GuildWebhooks"], +}) \ No newline at end of file diff --git a/src/native/array/arrayUnique.ts b/src/native/array/arrayUnique.ts new file mode 100644 index 0000000000..754a6533d1 --- /dev/null +++ b/src/native/array/arrayUnique.ts @@ -0,0 +1,38 @@ +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$arrayUnique", + version: "2.5.0", + description: "Removes duplicate elements from the array", + unwrap: true, + brackets: true, + args: [ + { + name: "variable", + description: "The variable the array is held on", + type: ArgType.String, + rest: false, + required: true, + }, + { + name: "other variable", + description: "The variable to load result to, leave empty to return output", + rest: false, + required: false, + type: ArgType.String + }, + ], + output: ArgType.Json, + execute(ctx, [variable, other]) { + const arr = ctx.getEnvironmentInstance(Array, variable) + if (arr !== null) { + const unique = [...new Set(arr)] + + if (other) + ctx.setEnvironmentKey(other, unique) + else + return this.successJSON(unique) + } + return this.success() + }, +}) \ No newline at end of file diff --git a/src/native/array/getTextSplitIndex.ts b/src/native/array/getTextSplitIndex.ts new file mode 100644 index 0000000000..245b454b8f --- /dev/null +++ b/src/native/array/getTextSplitIndex.ts @@ -0,0 +1,25 @@ +import { ArgType, NativeFunction } from "../../structures" +import { SplitTextName } from "./textSplit" + +export default new NativeFunction({ + name: "$getTextSplitIndex", + version: "2.5.0", + description: "Gets the index of a textSplit element", + aliases: ["$getSplitTextIndex"], + brackets: true, + unwrap: true, + args: [ + { + name: "element", + description: "The element to get index of", + rest: false, + required: true, + type: ArgType.String + } + ], + execute(ctx, [ element ]) { + return this.success( + ctx.getEnvironmentInstance(Array, SplitTextName)?.indexOf(element) + ) + }, +}) \ No newline at end of file diff --git a/src/native/array/segmentTextSplit.ts b/src/native/array/segmentTextSplit.ts index 5f9d3acdbe..1018c692eb 100644 --- a/src/native/array/segmentTextSplit.ts +++ b/src/native/array/segmentTextSplit.ts @@ -1,4 +1,4 @@ -import { ArgType, NativeFunction, Return } from "../../structures" +import { ArgType, NativeFunction } from "../../structures" export const SplitTextName = "splits" as const export const Segmenter = new Intl.Segmenter() diff --git a/src/native/array/splitText.ts b/src/native/array/splitText.ts index 1b098a9beb..d1bd8c3b2c 100644 --- a/src/native/array/splitText.ts +++ b/src/native/array/splitText.ts @@ -1,4 +1,4 @@ -import { ArgType, NativeFunction, Return } from "../../structures" +import { ArgType, NativeFunction } from "../../structures" import { SplitTextName } from "./textSplit" export default new NativeFunction({ diff --git a/src/native/array/splitTextJoin.ts b/src/native/array/splitTextJoin.ts index e2aa68d3f9..566f2f15a3 100644 --- a/src/native/array/splitTextJoin.ts +++ b/src/native/array/splitTextJoin.ts @@ -1,5 +1,5 @@ import array from "../../functions/array" -import { ArgType, NativeFunction, Return } from "../../structures" +import { ArgType, NativeFunction } from "../../structures" import { SplitTextName } from "./textSplit" export default new NativeFunction({ diff --git a/src/native/array/textSplit.ts b/src/native/array/textSplit.ts index 40913b952c..61161d48a8 100644 --- a/src/native/array/textSplit.ts +++ b/src/native/array/textSplit.ts @@ -1,4 +1,4 @@ -import { ArgType, NativeFunction, Return } from "../../structures" +import { ArgType, NativeFunction } from "../../structures" export const SplitTextName = "splits" as const export default new NativeFunction({ diff --git a/src/native/audit/setAuditLogReason.ts b/src/native/audit/setAuditLogReason.ts new file mode 100644 index 0000000000..5e97061902 --- /dev/null +++ b/src/native/audit/setAuditLogReason.ts @@ -0,0 +1,22 @@ +import { ArgType, NativeFunction } from "../../structures" + +export default new NativeFunction({ + name: "$setAuditLogReason", + version: "2.5.0", + description: "Sets the reason for audit log entries", + brackets: true, + unwrap: true, + args: [ + { + name: "reason", + description: "The reason to set", + rest: false, + required: true, + type: ArgType.String + }, + ], + execute(ctx, [reason]) { + ctx.reason = reason + return this.success() + }, +}) \ No newline at end of file diff --git a/src/native/automod/createAutomodRule.ts b/src/native/automod/createAutomodRule.ts index 31dcbf4cbe..3b39d7ee61 100644 --- a/src/native/automod/createAutomodRule.ts +++ b/src/native/automod/createAutomodRule.ts @@ -65,7 +65,7 @@ export default new NativeFunction({ exemptRoles: ctx.automodRule.exemptRoles, exemptChannels: ctx.automodRule.exemptChannels, enabled: isBoolean(enabled) ? enabled : true, - reason: reason || undefined + reason: reason || ctx.reason }).catch(ctx.noop) ctx.clearAutomodRuleOptions() diff --git a/src/native/automod/deleteAutomodRule.ts b/src/native/automod/deleteAutomodRule.ts index a9ddad420e..fb28bbb0e0 100644 --- a/src/native/automod/deleteAutomodRule.ts +++ b/src/native/automod/deleteAutomodRule.ts @@ -32,7 +32,7 @@ export default new NativeFunction({ output: ArgType.Boolean, async execute(ctx, [, rule, reason]) { try { - await rule.delete(reason || undefined) + await rule.delete(reason || ctx.reason) } catch (error) { ctx.noop(error) return this.success(false) diff --git a/src/native/automod/editAutomodRule.ts b/src/native/automod/editAutomodRule.ts index 9a2501fe9b..b59d76bc1a 100644 --- a/src/native/automod/editAutomodRule.ts +++ b/src/native/automod/editAutomodRule.ts @@ -62,7 +62,7 @@ export default new NativeFunction({ exemptRoles: ctx.automodRule.exemptRoles || undefined, exemptChannels: ctx.automodRule.exemptChannels || undefined, enabled: isBoolean(enabled) ? enabled : undefined, - reason: reason || undefined + reason: reason || ctx.reason }).catch(ctx.noop) ctx.clearAutomodRuleOptions() diff --git a/src/native/bot/botMutualGuilds.ts b/src/native/bot/botMutualGuilds.ts index fcde5a2a19..86cfea15eb 100644 --- a/src/native/bot/botMutualGuilds.ts +++ b/src/native/bot/botMutualGuilds.ts @@ -24,8 +24,12 @@ export default new NativeFunction({ ], brackets: false, output: array(), - execute(ctx, [user, sep]) { + async execute(ctx, [user, sep]) { user ??= ctx.user! - return this.success(ctx.client.guilds.cache.filter(x => x.members.cache.has(user.id)).map(guild => guild.id).join(sep || ", ")) + return this.success(ctx.client.guilds.cache + .filter(async (x) => await x.members.fetch(user).then(() => true).catch(() => false)) + .map(guild => guild.id) + .join(sep || ", ") + ) }, }) \ No newline at end of file diff --git a/src/native/channel/addChannelPerms.ts b/src/native/channel/addChannelPerms.ts index 6c66e38ac8..e9a5315473 100644 --- a/src/native/channel/addChannelPerms.ts +++ b/src/native/channel/addChannelPerms.ts @@ -40,6 +40,6 @@ export default new NativeFunction({ perms.forEach((x) => (obj[x as PermissionsString] = true)) - return this.success(!!(await channel.permissionOverwrites.create(id, obj))) + return this.success(!!(await channel.permissionOverwrites.create(id, obj, { reason: ctx.reason }))) }, }) diff --git a/src/native/channel/addForumTags.ts b/src/native/channel/addPostTags.ts similarity index 77% rename from src/native/channel/addForumTags.ts rename to src/native/channel/addPostTags.ts index 755c82716f..3604073a0b 100644 --- a/src/native/channel/addForumTags.ts +++ b/src/native/channel/addPostTags.ts @@ -1,11 +1,9 @@ -import { BaseChannel, ChannelType, ForumChannel, ThreadChannel } from "discord.js" +import { BaseChannel, ThreadChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ - name: "$addForumTags", + name: "$addPostTags", version: "1.5.0", - aliases: ["$addPostTags"], description: "Adds tags to a forum post, returns bool", unwrap: true, output: ArgType.Boolean, @@ -35,7 +33,6 @@ export default new NativeFunction({ brackets: true, async execute(ctx, [ channel, reason, tags ]) { const post = channel as ThreadChannel - - return this.success(!!(await post.setAppliedTags(tags, reason || undefined).catch(ctx.noop))) + return this.success(!!(await post.setAppliedTags([...post.appliedTags, ...tags], reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/archiveThread.ts b/src/native/channel/archiveThread.ts index 95757a0be3..a488e13eef 100644 --- a/src/native/channel/archiveThread.ts +++ b/src/native/channel/archiveThread.ts @@ -1,6 +1,5 @@ import { BaseChannel, ThreadChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$archiveThread", @@ -28,9 +27,9 @@ export default new NativeFunction({ ], async execute(ctx, [channel, reason]) { const thread = (channel ?? ctx.channel) as ThreadChannel - if (!thread.isThread()) return this.success(false) + if (!thread?.isThread()) return this.success(false) - const success = await thread.setArchived(true, reason || undefined).catch(ctx.noop) + const success = await thread.setArchived(true, reason || ctx.reason).catch(ctx.noop) return this.success(!!success) }, diff --git a/src/native/channel/channelPinnedMessages.ts b/src/native/channel/channelPinnedMessages.ts index 3cd106f2aa..bcfa7d7f30 100644 --- a/src/native/channel/channelPinnedMessages.ts +++ b/src/native/channel/channelPinnedMessages.ts @@ -11,7 +11,6 @@ export default new NativeFunction({ "$pinnedMessages" ], unwrap: true, - output: array(), args: [ { name: "channel ID", @@ -23,14 +22,15 @@ export default new NativeFunction({ }, { name: "separator", - description: "The separator to use for every message id", + description: "The separator to use for each message id", rest: false, type: ArgType.String }, ], + output: array(), async execute(ctx, [ channel, sep ]) { channel ??= ctx.channel! - const messages = await (channel as TextBasedChannel)?.messages.fetchPinned().catch(ctx.noop) - return this.success(messages ? messages.map(msg => msg.id).join(sep ?? ", ") : null) + const pins = await (channel as TextBasedChannel)?.messages.fetchPins().catch(ctx.noop) + return this.success(pins ? pins.items.map(pin => pin.message.id).join(sep ?? ", ") : null) }, }) \ No newline at end of file diff --git a/src/native/channel/channelThreadIDs.ts b/src/native/channel/channelThreadIDs.ts new file mode 100644 index 0000000000..5d53c3a3a2 --- /dev/null +++ b/src/native/channel/channelThreadIDs.ts @@ -0,0 +1,32 @@ +import { BaseChannel, ThreadManager } from "discord.js" +import { ArgType, NativeFunction, Return } from "../../structures" +import array from "../../functions/array" + +export default new NativeFunction({ + name: "$channelThreadIDs", + version: "2.5.0", + description: "Returns the thread ids of a channel", + brackets: false, + unwrap: true, + args: [ + { + name: "channel ID", + description: "The channel to get its threads", + rest: false, + type: ArgType.Channel, + required: true, + check: (i: BaseChannel) => "threads" in i + }, + { + name: "separator", + description: "The separator to use for every thread", + rest: false, + type: ArgType.String, + }, + ], + output: array(), + execute(ctx, [channel, sep]) { + const chan = channel ?? ctx.channel + return this.success("threads" in chan ? (chan.threads as ThreadManager).cache.map((x) => x.id).join(sep ?? ", ") : null) + }, +}) \ No newline at end of file diff --git a/src/native/channel/clearChannelPerms.ts b/src/native/channel/clearChannelPerms.ts index 88b51be082..675b7d8699 100644 --- a/src/native/channel/clearChannelPerms.ts +++ b/src/native/channel/clearChannelPerms.ts @@ -29,9 +29,9 @@ export default new NativeFunction({ const perms = (ch as GuildChannel).permissionOverwrites if (id) { - return this.success(!!(await perms.delete(id).catch(ctx.noop))) + return this.success(!!(await perms.delete(id, ctx.reason).catch(ctx.noop))) } else { - return this.success(!!(await perms.set([]).catch(ctx.noop))) + return this.success(!!(await perms.set([], ctx.reason).catch(ctx.noop))) } }, }) \ No newline at end of file diff --git a/src/native/channel/cloneChannel.ts b/src/native/channel/cloneChannel.ts index 3a97fa41be..6d188d9bfe 100644 --- a/src/native/channel/cloneChannel.ts +++ b/src/native/channel/cloneChannel.ts @@ -1,6 +1,5 @@ import { BaseChannel, GuildChannel } from "discord.js" import { ArgType, NativeFunction } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$cloneChannel", @@ -26,6 +25,11 @@ export default new NativeFunction({ } ], async execute(ctx, [ raw, name ]) { - return this.success((await (raw).clone({ name: name || (raw as GuildChannel).name }).catch(ctx.noop))?.id) + const channel = await (raw).clone({ + name: name || (raw as GuildChannel).name, + reason: ctx.reason + }).catch(ctx.noop) + + return this.success(channel?.id) }, }) \ No newline at end of file diff --git a/src/native/channel/cloneChannelPerms.ts b/src/native/channel/cloneChannelPerms.ts index 84cc130287..4066484f68 100644 --- a/src/native/channel/cloneChannelPerms.ts +++ b/src/native/channel/cloneChannelPerms.ts @@ -27,6 +27,6 @@ export default new NativeFunction({ ], output: ArgType.Boolean, async execute(ctx, [ chan1, chan2 ]) { - return this.success(!!(await (chan2 as GuildChannel).permissionOverwrites.set((chan1 as GuildChannel).permissionOverwrites.cache).catch(ctx.noop))) + return this.success(!!(await (chan2 as GuildChannel).permissionOverwrites.set((chan1 as GuildChannel).permissionOverwrites.cache, ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/createChannel.ts b/src/native/channel/createChannel.ts index 054c2d4d48..a162f8929a 100644 --- a/src/native/channel/createChannel.ts +++ b/src/native/channel/createChannel.ts @@ -1,6 +1,5 @@ -import { ChannelType, GuildChannelCreateOptions } from "discord.js" +import { BaseChannel, CategoryChannel, ChannelType, GuildChannelCreateOptions } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$createChannel", @@ -18,14 +17,14 @@ export default new NativeFunction({ type: ArgType.Guild, }, { - name: "channel name", + name: "name", description: "The name for the channel", rest: false, required: true, type: ArgType.String, }, { - name: "channel type", + name: "type", description: "The type of the channel, some are not supported", rest: false, type: ArgType.Enum, @@ -42,16 +41,19 @@ export default new NativeFunction({ name: "parent ID", description: "The parent id for the channel", rest: false, - type: ArgType.String, + type: ArgType.Channel, + check: (i: BaseChannel) => i.type === ChannelType.GuildCategory, + pointer: 0, }, ], - async execute(ctx, [guild, name, type, topic, parentId]) { + async execute(ctx, [guild, name, type, topic, parent]) { const ch = await guild.channels .create({ type: type as GuildChannelCreateOptions["type"], name, topic: topic || undefined, - parent: parentId, + parent: parent as CategoryChannel, + reason: ctx.reason }) .catch(ctx.noop) return this.success(ch ? ch.id : undefined) diff --git a/src/native/channel/createForumPost.ts b/src/native/channel/createForumPost.ts index 4a5f7444e8..0367722a59 100644 --- a/src/native/channel/createForumPost.ts +++ b/src/native/channel/createForumPost.ts @@ -1,6 +1,5 @@ -import { BaseChannel, ChannelType, ForumChannel } from "discord.js" +import { BaseChannel, ThreadOnlyChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$createForumPost", @@ -14,7 +13,7 @@ export default new NativeFunction({ rest: false, required: true, type: ArgType.Channel, - check: (i: BaseChannel) => i.type === ChannelType.GuildForum, + check: (i: BaseChannel) => i.isThreadOnly(), description: "The channel to create a post on", }, { @@ -39,7 +38,7 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [channel, title, desc, tags]) { - const forum = channel as ForumChannel + const forum = channel as ThreadOnlyChannel ctx.container.content = desc || undefined @@ -48,6 +47,7 @@ export default new NativeFunction({ appliedTags: tags, name: title, message: ctx.container.getOptions(), + reason: ctx.reason }) .catch(ctx.noop) @@ -55,4 +55,4 @@ export default new NativeFunction({ return this.success(t ? t.id : undefined) }, -}) +}) \ No newline at end of file diff --git a/src/native/channel/createForumTag.ts b/src/native/channel/createForumTag.ts new file mode 100644 index 0000000000..dae7bd8f5f --- /dev/null +++ b/src/native/channel/createForumTag.ts @@ -0,0 +1,52 @@ +import { BaseChannel, GuildForumTagData, ThreadOnlyChannel } from "discord.js" +import { ArgType, NativeFunction, Return } from "../../structures" +import { parseSingleEmoji } from "../../functions/parseSingleEmoji" + +export default new NativeFunction({ + name: "$createForumTag", + version: "2.5.0", + description: "Creates a forum tag, returns tag id", + unwrap: true, + brackets: true, + args: [ + { + name: "channel ID", + description: "The forum to create tag on", + rest: false, + required: true, + type: ArgType.Channel, + check: (i: BaseChannel) => i.isThreadOnly(), + }, + { + name: "name", + description: "The name for the tag", + rest: false, + required: true, + type: ArgType.String, + }, + { + name: "emoji", + description: "The emoji for the tag", + rest: false, + type: ArgType.String, + }, + { + name: "moderated", + description: "Whether the tag can only be applied by mods", + rest: false, + type: ArgType.Boolean, + } + ], + output: ArgType.ForumTag, + async execute(ctx, [ channel, name, emoji, mod ]) { + const forum = channel as ThreadOnlyChannel + + const tag = { + name, + emoji: parseSingleEmoji(ctx, emoji), + moderated: mod || undefined + } as GuildForumTagData + + return this.success((await forum.setAvailableTags([...forum.availableTags, tag]).catch(ctx.noop))?.availableTags.at(-1)?.id) + }, +}) \ No newline at end of file diff --git a/src/native/channel/createInvite.ts b/src/native/channel/createInvite.ts index 71b4143ecc..b06c630332 100644 --- a/src/native/channel/createInvite.ts +++ b/src/native/channel/createInvite.ts @@ -1,13 +1,11 @@ import { BaseChannel, TextChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" -import { isNumber } from "lodash" export default new NativeFunction({ name: "$createInvite", version: "1.1.0", brackets: true, - description: "Creates an invite, returns the code", + description: "Creates an invite, returns the invite code", unwrap: true, output: ArgType.Invite, args: [ @@ -42,9 +40,9 @@ export default new NativeFunction({ const channel = (ch ?? ctx.channel) as TextChannel const invite = await channel .createInvite({ - reason: reason || undefined, + reason: reason || ctx.reason, maxUses: maxUses || undefined, - maxAge: isNumber(maxAge) ? maxAge : undefined, + maxAge: typeof(maxAge) === "number" ? maxAge : undefined, unique: true }) .catch(ctx.noop) diff --git a/src/native/channel/createThread.ts b/src/native/channel/createThread.ts index cce3ccc28e..1990d29102 100644 --- a/src/native/channel/createThread.ts +++ b/src/native/channel/createThread.ts @@ -1,6 +1,5 @@ import { BaseChannel, ChannelType, TextChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$createThread", @@ -39,7 +38,7 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason for creating thread", + description: "The reason for creating thread", rest: false, type: ArgType.String } @@ -50,8 +49,8 @@ export default new NativeFunction({ const success = await ch.threads .create({ name, - startMessage: m ?? undefined, - reason: reason ?? undefined, + startMessage: m || undefined, + reason: reason || ctx.reason, type: priv ? ChannelType.PrivateThread : ChannelType.PublicThread }) .catch(ctx.noop) diff --git a/src/native/channel/deleteChannelPerms.ts b/src/native/channel/deleteChannelPerms.ts index 3f02f68b32..233bf59522 100644 --- a/src/native/channel/deleteChannelPerms.ts +++ b/src/native/channel/deleteChannelPerms.ts @@ -40,6 +40,6 @@ export default new NativeFunction({ perms.forEach((x) => (obj[x as PermissionsString] = null)) - return this.success(!!(await channel.permissionOverwrites.create(id, obj))) + return this.success(!!(await channel.permissionOverwrites.create(id, obj, { reason: ctx.reason }))) }, }) diff --git a/src/native/channel/deleteChannels.ts b/src/native/channel/deleteChannels.ts index e51b9f44f8..5895facac2 100644 --- a/src/native/channel/deleteChannels.ts +++ b/src/native/channel/deleteChannels.ts @@ -1,6 +1,5 @@ import { BaseChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$deleteChannels", diff --git a/src/native/channel/deleteForumTags.ts b/src/native/channel/deleteForumTags.ts new file mode 100644 index 0000000000..6c38bcdf1c --- /dev/null +++ b/src/native/channel/deleteForumTags.ts @@ -0,0 +1,35 @@ +import { BaseChannel, ThreadOnlyChannel } from "discord.js" +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$deleteForumTags", + version: "2.5.0", + description: "Deletes tags from a forum, returns bool", + aliases: ["$deleteForumTag"], + unwrap: true, + brackets: true, + args: [ + { + name: "channel ID", + description: "The forum to delete tags from", + rest: false, + required: true, + type: ArgType.Channel, + check: (i: BaseChannel) => i.isThreadOnly(), + }, + { + name: "tags", + description: "The tags to delete", + rest: true, + required: true, + type: ArgType.ForumTag, + pointer: 0 + }, + ], + output: ArgType.Boolean, + async execute(ctx, [ channel, tags ]) { + const forum = channel as ThreadOnlyChannel + const newTags = forum.availableTags.filter((x) => !tags.some((tag) => x.id === tag.id)) + return this.success(!!(await forum.setAvailableTags(newTags).catch(ctx.noop))) + }, +}) \ No newline at end of file diff --git a/src/native/channel/deleteThread.ts b/src/native/channel/deleteThread.ts index 105b0766af..a7af94411f 100644 --- a/src/native/channel/deleteThread.ts +++ b/src/native/channel/deleteThread.ts @@ -1,6 +1,5 @@ import { BaseChannel, ThreadChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$deleteThread", @@ -27,8 +26,7 @@ export default new NativeFunction({ ], async execute(ctx, [channel, reason]) { const thread = channel as ThreadChannel - - const success = await thread.delete(reason || undefined).catch(ctx.noop) + const success = await thread.delete(reason || ctx.reason).catch(ctx.noop) return this.success(!!success) }, diff --git a/src/native/channel/dmChannelID.ts b/src/native/channel/dmChannelID.ts index 3bbc13dc61..d1e4210d47 100644 --- a/src/native/channel/dmChannelID.ts +++ b/src/native/channel/dmChannelID.ts @@ -1,4 +1,3 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ diff --git a/src/native/channel/editForumTag.ts b/src/native/channel/editForumTag.ts new file mode 100644 index 0000000000..b9c2f41e8d --- /dev/null +++ b/src/native/channel/editForumTag.ts @@ -0,0 +1,60 @@ +import { BaseChannel, ThreadOnlyChannel } from "discord.js" +import { ArgType, NativeFunction, Return } from "../../structures" +import { parseSingleEmoji } from "../../functions/parseSingleEmoji" + +export default new NativeFunction({ + name: "$editForumTag", + version: "2.5.0", + description: "Edits an existing forum tag, returns bool", + unwrap: true, + brackets: true, + args: [ + { + name: "channel ID", + description: "The forum to edit tag on", + rest: false, + required: true, + type: ArgType.Channel, + check: (i: BaseChannel) => i.isThreadOnly(), + }, + { + name: "tag ID", + description: "The tag to edit", + rest: false, + required: true, + type: ArgType.ForumTag, + pointer: 0 + }, + { + name: "name", + description: "The new name for the tag", + rest: false, + type: ArgType.String, + }, + { + name: "emoji", + description: "The new emoji for the tag", + rest: false, + type: ArgType.String, + }, + { + name: "moderated", + description: "Whether the tag can only be applied by mods", + rest: false, + type: ArgType.Boolean, + } + ], + output: ArgType.Boolean, + async execute(ctx, [ channel, tag, name, emoji, mod ]) { + const forum = channel as ThreadOnlyChannel + const tags = forum.availableTags + const index = tags.findIndex((x) => x.id === tag.id) + + if (name) tag.name = name + if (emoji !== null) tag.emoji = parseSingleEmoji(ctx, emoji) + if (typeof mod === "boolean") tag.moderated = mod + + tags[index] = tag + return this.success(!!(await forum.setAvailableTags(tags).catch(ctx.noop))) + }, +}) \ No newline at end of file diff --git a/src/native/channel/fetchThreads.ts b/src/native/channel/fetchThreads.ts new file mode 100644 index 0000000000..815d1dc08f --- /dev/null +++ b/src/native/channel/fetchThreads.ts @@ -0,0 +1,44 @@ +import { BaseChannel, ThreadManager } from "discord.js" +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$fetchThreads", + version: "2.5.0", + description: "Caches all threads of a channel", + brackets: false, + unwrap: true, + args: [ + { + name: "channel ID", + description: "The channel to cache its threads", + rest: false, + type: ArgType.Channel, + required: true, + check: (i: BaseChannel) => "threads" in i + }, + { + name: "archived", + description: "Whether to cache archived threads, otherwise active", + rest: false, + type: ArgType.Boolean, + }, + { + name: "private", + description: "Whether to cache archived private threads, otherwise public", + rest: false, + type: ArgType.Boolean, + }, + ], + async execute(ctx, [channel, archived, priv]) { + const chan = channel ?? ctx.channel + + if ("threads" in chan) { + const threads = chan.threads as ThreadManager + + if (archived) await threads.fetchArchived({ type: priv ? "private" : undefined, fetchAll: true }).catch(ctx.noop) + else await threads.fetchActive().catch(ctx.noop) + } + + return this.success() + }, +}) \ No newline at end of file diff --git a/src/native/channel/followChannel.ts b/src/native/channel/followChannel.ts index 9851e9eeeb..86dc4d6005 100644 --- a/src/native/channel/followChannel.ts +++ b/src/native/channel/followChannel.ts @@ -33,6 +33,6 @@ export default new NativeFunction({ ], output: ArgType.Webhook, async execute(ctx, [news, chan, reason]) { - return this.success("guild" in news ? (await (news.guild as Guild)?.channels.addFollower(news as NewsChannel, chan as TextChannel, reason || undefined).catch(ctx.noop)) : undefined) + return this.success("guild" in news ? (await (news.guild as Guild)?.channels.addFollower(news as NewsChannel, chan as TextChannel, reason || ctx.reason).catch(ctx.noop)) : undefined) }, }) \ No newline at end of file diff --git a/src/native/channel/forumTags.ts b/src/native/channel/forumTags.ts index e829a8899e..1ddfe2a162 100644 --- a/src/native/channel/forumTags.ts +++ b/src/native/channel/forumTags.ts @@ -1,4 +1,4 @@ -import { BaseChannel, ChannelType, ForumChannel } from "discord.js" +import { BaseChannel, ThreadOnlyChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" import { ForumTagProperty, ForumTagProperties } from "../../properties/forumTag" import array from "../../functions/array" @@ -18,7 +18,7 @@ export default new NativeFunction({ description: "The channel to get tags of", rest: false, type: ArgType.Channel, - check: (i: BaseChannel) => i.type === ChannelType.GuildForum, + check: (i: BaseChannel) => i.isThreadOnly(), required: true }, { @@ -37,7 +37,7 @@ export default new NativeFunction({ ], brackets: true, execute(ctx, [ch, prop, sep]) { - const channel = ch as ForumChannel | undefined + const channel = ch as ThreadOnlyChannel | undefined const tags = channel?.availableTags return this.successJSON(!prop ? tags : tags?.map(tag => ForumTagProperties[prop](tag)).join(sep ?? ", ")) diff --git a/src/native/channel/lockThread.ts b/src/native/channel/lockThread.ts index 0f11c7f0ab..c47d12f11b 100644 --- a/src/native/channel/lockThread.ts +++ b/src/native/channel/lockThread.ts @@ -1,6 +1,5 @@ import { BaseChannel, ThreadChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$lockThread", @@ -28,9 +27,9 @@ export default new NativeFunction({ ], async execute(ctx, [channel, reason]) { const thread = (channel ?? ctx.channel) as ThreadChannel - if (!thread.isThread()) return this.success(false) + if (!thread?.isThread()) return this.success(false) - const success = await thread.setLocked(true, reason || undefined).catch(ctx.noop) + const success = await thread.setLocked(true, reason || ctx.reason).catch(ctx.noop) return this.success(!!success) }, diff --git a/src/native/channel/modifyChannelPerms.ts b/src/native/channel/modifyChannelPerms.ts index ced3262030..fa1b334352 100644 --- a/src/native/channel/modifyChannelPerms.ts +++ b/src/native/channel/modifyChannelPerms.ts @@ -1,7 +1,6 @@ import { BaseChannel, GuildChannel, PermissionFlagsBits } from "discord.js" import { ArgType, NativeFunction } from "../../structures" import overwritePermissionsArrayToObject from "../../functions/overwritePermissionsArrayToObject" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$modifyChannelPerms", @@ -43,9 +42,9 @@ export default new NativeFunction({ const mapped = overwritePermissionsArrayToObject(raw) if (ch.permissionOverwrites.cache.has(roleOrUser.id)) { - return this.success(!!(await ch.permissionOverwrites.edit(roleOrUser, mapped).catch(ctx.noop))) + return this.success(!!(await ch.permissionOverwrites.edit(roleOrUser, mapped, { reason: ctx.reason }).catch(ctx.noop))) } else { - return this.success(!!(await ch.permissionOverwrites.create(roleOrUser, mapped).catch(ctx.noop))) + return this.success(!!(await ch.permissionOverwrites.create(roleOrUser, mapped, { reason: ctx.reason }).catch(ctx.noop))) } }, }) \ No newline at end of file diff --git a/src/native/channel/modifyForumTags.ts b/src/native/channel/modifyPostTags.ts similarity index 83% rename from src/native/channel/modifyForumTags.ts rename to src/native/channel/modifyPostTags.ts index 8858e94188..25091b5f64 100644 --- a/src/native/channel/modifyForumTags.ts +++ b/src/native/channel/modifyPostTags.ts @@ -1,11 +1,10 @@ -import { BaseChannel, ChannelType, ForumChannel, ThreadChannel } from "discord.js" +import { BaseChannel, ThreadChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ - name: "$modifyForumTags", + name: "$modifyPostTags", version: "1.5.0", - aliases: ["$modifyPostTags"], + aliases: ["$editPostTags"], description: "Modifies tags of a forum post, returns bool", unwrap: true, output: ArgType.Boolean, @@ -35,7 +34,6 @@ export default new NativeFunction({ brackets: true, async execute(ctx, [ channel, reason, tags ]) { const post = channel as ThreadChannel - - return this.success(!!(await post.setAppliedTags([...new Set(post.appliedTags.filter(tag => !tags.includes(tag)).concat(tags.filter(tag => !post.appliedTags.includes(tag))))], reason || undefined).catch(ctx.noop))) + return this.success(!!(await post.setAppliedTags([...new Set(post.appliedTags.filter(tag => !tags.includes(tag)).concat(tags.filter(tag => !post.appliedTags.includes(tag))))], reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/randomChannelID.ts b/src/native/channel/randomChannelID.ts index 9af379b4a1..f061ab0aaf 100644 --- a/src/native/channel/randomChannelID.ts +++ b/src/native/channel/randomChannelID.ts @@ -1,12 +1,29 @@ +import { ChannelType } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ name: "$randomChannelID", version: "1.0.3", description: "Returns a random channel ID", - unwrap: false, + unwrap: true, + brackets: false, + args: [ + { + name: "types", + description: "The channel types to get an id from", + type: ArgType.Enum, + rest: true, + required: true, + enum: ChannelType + } + ], output: ArgType.Channel, - execute(ctx) { - return this.success(ctx.client.channels.cache.randomKey()) + execute(ctx, [types]) { + types ??= [] + + return this.success( + types.length === 0 ? ctx.client.channels.cache.randomKey() : + ctx.client.channels.cache.filter(x => types.includes(x.type)).randomKey() + ) }, }) diff --git a/src/native/channel/removeChannelPerms.ts b/src/native/channel/removeChannelPerms.ts index 7e662ba768..c11f1a8a78 100644 --- a/src/native/channel/removeChannelPerms.ts +++ b/src/native/channel/removeChannelPerms.ts @@ -40,6 +40,6 @@ export default new NativeFunction({ perms.forEach((x) => (obj[x as PermissionsString] = false)) - return this.success(!!(await channel.permissionOverwrites.create(id, obj))) + return this.success(!!(await channel.permissionOverwrites.create(id, obj, { reason: ctx.reason }))) }, }) diff --git a/src/native/channel/setChannelArchiveDuration.ts b/src/native/channel/setChannelArchiveDuration.ts index 79caa7bf3e..f426157bb8 100644 --- a/src/native/channel/setChannelArchiveDuration.ts +++ b/src/native/channel/setChannelArchiveDuration.ts @@ -1,4 +1,4 @@ -import { BaseChannel, ChannelType, ForumChannel, GuildChannel, TextChannel, ThreadAutoArchiveDuration, ThreadChannel } from "discord.js" +import { BaseChannel, TextChannel, ThreadAutoArchiveDuration } from "discord.js" import { ArgType, NativeFunction } from "../../structures" export default new NativeFunction({ @@ -27,12 +27,12 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason for modifying archive duration", + description: "The reason for modifying archive duration", rest: false, type: ArgType.String } ], async execute(ctx, [ ch, dur, reason ]) { - return this.success(!!((ch as TextChannel).setDefaultAutoArchiveDuration(dur, reason ?? undefined))) + return this.success(!!((ch as TextChannel).setDefaultAutoArchiveDuration(dur, reason || ctx.reason))) }, }) \ No newline at end of file diff --git a/src/native/channel/setChannelCategory.ts b/src/native/channel/setChannelCategory.ts index 8d02a0b0e0..aa6934ec29 100644 --- a/src/native/channel/setChannelCategory.ts +++ b/src/native/channel/setChannelCategory.ts @@ -1,6 +1,5 @@ import { BaseChannel, CategoryChannel, ChannelType, TextChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$setChannelCategory", @@ -13,7 +12,7 @@ export default new NativeFunction({ args: [ { name: "channel ID", - description: "The channel id to set its category", + description: "The channel to set its category", rest: false, check: (i: BaseChannel) => "setParent" in i, type: ArgType.Channel, @@ -28,6 +27,6 @@ export default new NativeFunction({ }, ], async execute(ctx, [channel, parent]) { - return this.success(!!(await (channel as TextChannel).setParent(parent as CategoryChannel || null).catch(ctx.noop))) + return this.success(!!(await (channel as TextChannel).setParent(parent as CategoryChannel || null, { reason: ctx.reason }).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setChannelNSFW.ts b/src/native/channel/setChannelNSFW.ts index fd206a5110..727b6e21b4 100644 --- a/src/native/channel/setChannelNSFW.ts +++ b/src/native/channel/setChannelNSFW.ts @@ -1,6 +1,5 @@ import { BaseChannel, TextChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$setChannelNSFW", @@ -12,7 +11,7 @@ export default new NativeFunction({ args: [ { name: "channel ID", - description: "The channel id to set its nsfw state", + description: "The channel to set its nsfw state", rest: false, check: (i: BaseChannel) => "setNSFW" in i, type: ArgType.Channel, @@ -26,6 +25,6 @@ export default new NativeFunction({ }, ], async execute(ctx, [channel, state]) { - return this.success(!!(await (channel as TextChannel).setNSFW(state || false).catch(ctx.noop))) + return this.success(!!(await (channel as TextChannel).setNSFW(state || false, ctx.reason).catch(ctx.noop))) }, }) diff --git a/src/native/channel/setChannelName.ts b/src/native/channel/setChannelName.ts index 3434b66d28..adb987a7e1 100644 --- a/src/native/channel/setChannelName.ts +++ b/src/native/channel/setChannelName.ts @@ -1,6 +1,5 @@ import { BaseChannel, TextChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$setChannelName", @@ -12,7 +11,7 @@ export default new NativeFunction({ args: [ { name: "channel ID", - description: "The channel id to set its name", + description: "The channel to set its name", rest: false, check: (i: BaseChannel) => "setName" in i, type: ArgType.Channel, @@ -27,6 +26,6 @@ export default new NativeFunction({ }, ], async execute(ctx, [channel, name]) { - return this.success(!!(await (channel as TextChannel).setName(name).catch(ctx.noop))) + return this.success(!!(await (channel as TextChannel).setName(name, ctx.reason).catch(ctx.noop))) }, }) diff --git a/src/native/channel/setChannelSlowmode.ts b/src/native/channel/setChannelSlowmode.ts index 3ce701f4e2..ba5cfd155a 100644 --- a/src/native/channel/setChannelSlowmode.ts +++ b/src/native/channel/setChannelSlowmode.ts @@ -1,6 +1,5 @@ import { BaseChannel, TextChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$setChannelSlowmode", @@ -12,7 +11,7 @@ export default new NativeFunction({ args: [ { name: "channel ID", - description: "The channel id to set its nsfw state", + description: "The channel to set its nsfw state", rest: false, check: (i: BaseChannel) => "setRateLimitPerUser" in i, type: ArgType.Channel, @@ -26,6 +25,6 @@ export default new NativeFunction({ }, ], async execute(ctx, [channel, seconds]) { - return this.success(!!(await (channel as TextChannel).setRateLimitPerUser(seconds || 0).catch(ctx.noop))) + return this.success(!!(await (channel as TextChannel).setRateLimitPerUser(seconds || 0, ctx.reason).catch(ctx.noop))) }, }) diff --git a/src/native/channel/setChannelTopic.ts b/src/native/channel/setChannelTopic.ts index e978baac18..6b25c83f35 100644 --- a/src/native/channel/setChannelTopic.ts +++ b/src/native/channel/setChannelTopic.ts @@ -1,6 +1,5 @@ import { BaseChannel, TextChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$setChannelTopic", @@ -12,7 +11,7 @@ export default new NativeFunction({ args: [ { name: "channel ID", - description: "The channel id to set its topic", + description: "The channel to set its topic", rest: false, check: (i: BaseChannel) => "setTopic" in i, type: ArgType.Channel, @@ -26,6 +25,6 @@ export default new NativeFunction({ }, ], async execute(ctx, [channel, topic]) { - return this.success(!!(await (channel as TextChannel).setTopic(topic || null).catch(ctx.noop))) + return this.success(!!(await (channel as TextChannel).setTopic(topic || null, ctx.reason).catch(ctx.noop))) }, }) diff --git a/src/native/channel/setDefaultForumLayout.ts b/src/native/channel/setDefaultForumLayout.ts index 8547a059d0..516a1d0d46 100644 --- a/src/native/channel/setDefaultForumLayout.ts +++ b/src/native/channel/setDefaultForumLayout.ts @@ -26,13 +26,13 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason for modifying default layout", + description: "The reason for modifying default layout", rest: false, type: ArgType.String } ], output: ArgType.Boolean, async execute(ctx, [ chan, layout, reason ]) { - return this.success(!!(await (chan as ForumChannel).setDefaultForumLayout(layout, reason || undefined).catch(ctx.noop))) + return this.success(!!(await (chan as ForumChannel).setDefaultForumLayout(layout, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setDefaultReactionEmoji.ts b/src/native/channel/setDefaultReactionEmoji.ts index 534313eadf..367d371682 100644 --- a/src/native/channel/setDefaultReactionEmoji.ts +++ b/src/native/channel/setDefaultReactionEmoji.ts @@ -25,7 +25,7 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason for modifying default emoji", + description: "The reason for modifying default emoji", rest: false, type: ArgType.String } @@ -34,7 +34,7 @@ export default new NativeFunction({ async execute(ctx, [ chan, emoji, reason ]) { return this.success(!!(await (chan as ThreadOnlyChannel).setDefaultReactionEmoji( parseSingleEmoji(ctx, emoji) as DefaultReactionEmoji, - reason || undefined + reason || ctx.reason ).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setDefaultSortOrder.ts b/src/native/channel/setDefaultSortOrder.ts index 439896468d..12ba3a5d46 100644 --- a/src/native/channel/setDefaultSortOrder.ts +++ b/src/native/channel/setDefaultSortOrder.ts @@ -25,13 +25,13 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason for modifying default sort order", + description: "The reason for modifying default sort order", rest: false, type: ArgType.String } ], output: ArgType.Boolean, async execute(ctx, [ chan, sortOrder, reason ]) { - return this.success(!!(await (chan as ThreadOnlyChannel).setDefaultSortOrder(sortOrder || null, reason || undefined).catch(ctx.noop))) + return this.success(!!(await (chan as ThreadOnlyChannel).setDefaultSortOrder(sortOrder || null, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setDefaultThreadArchiveDuration.ts b/src/native/channel/setDefaultThreadArchiveDuration.ts index f50510f7ec..ae7e5b3f25 100644 --- a/src/native/channel/setDefaultThreadArchiveDuration.ts +++ b/src/native/channel/setDefaultThreadArchiveDuration.ts @@ -30,12 +30,12 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason for modifying archive duration", + description: "The reason for modifying archive duration", rest: false, type: ArgType.String } ], async execute(ctx, [ ch, dur, reason ]) { - return this.success(!!(await (ch as ThreadOnlyChannel).setDefaultAutoArchiveDuration(dur, reason || undefined).catch(ctx.noop))) + return this.success(!!(await (ch as ThreadOnlyChannel).setDefaultAutoArchiveDuration(dur, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setDefaultThreadSlowmode.ts b/src/native/channel/setDefaultThreadSlowmode.ts index 1be24aafbf..4ca180644a 100644 --- a/src/native/channel/setDefaultThreadSlowmode.ts +++ b/src/native/channel/setDefaultThreadSlowmode.ts @@ -1,4 +1,4 @@ -import { BaseChannel, SortOrderType, ThreadOnlyChannel } from "discord.js" +import { BaseChannel, ThreadOnlyChannel } from "discord.js" import { ArgType, NativeFunction } from "../../structures" export default new NativeFunction({ @@ -25,13 +25,13 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason for modifying default slowmode", + description: "The reason for modifying default slowmode", rest: false, type: ArgType.String } ], output: ArgType.Boolean, async execute(ctx, [ chan, seconds, reason ]) { - return this.success(!!(await (chan as ThreadOnlyChannel).setDefaultThreadRateLimitPerUser(seconds, reason || undefined).catch(ctx.noop))) + return this.success(!!(await (chan as ThreadOnlyChannel).setDefaultThreadRateLimitPerUser(seconds, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setPostTags.ts b/src/native/channel/setPostTags.ts new file mode 100644 index 0000000000..0bf7a5ddb9 --- /dev/null +++ b/src/native/channel/setPostTags.ts @@ -0,0 +1,37 @@ +import { BaseChannel, ThreadChannel } from "discord.js" +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$setPostTags", + version: "2.5.0", + description: "Sets tags to a forum post, returns bool", + unwrap: true, + output: ArgType.Boolean, + args: [ + { + name: "channel ID", + rest: false, + required: true, + type: ArgType.Channel, + check: (i: BaseChannel) => i.isThread(), + description: "The post to set tags on", + }, + { + name: "reason", + description: "The reason for setting post tags", + rest: false, + type: ArgType.String, + }, + { + name: "tags", + description: "The tags for the post", + rest: true, + type: ArgType.String, + } + ], + brackets: true, + async execute(ctx, [ channel, reason, tags ]) { + const post = channel as ThreadChannel + return this.success(!!(await post.setAppliedTags(tags, reason || ctx.reason).catch(ctx.noop))) + }, +}) \ No newline at end of file diff --git a/src/native/channel/setThreadArchiveDuration.ts b/src/native/channel/setThreadArchiveDuration.ts index f2e8905ded..709c468dc4 100644 --- a/src/native/channel/setThreadArchiveDuration.ts +++ b/src/native/channel/setThreadArchiveDuration.ts @@ -30,12 +30,12 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason for modifying archive duration", + description: "The reason for modifying archive duration", rest: false, type: ArgType.String } ], async execute(ctx, [ ch, dur, reason ]) { - return this.success(!!(await (ch as ThreadChannel).setAutoArchiveDuration(dur, reason || undefined).catch(ctx.noop))) + return this.success(!!(await (ch as ThreadChannel).setAutoArchiveDuration(dur, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setVoiceBitrate.ts b/src/native/channel/setVoiceBitrate.ts index 7de5a838a1..181d70ab7b 100644 --- a/src/native/channel/setVoiceBitrate.ts +++ b/src/native/channel/setVoiceBitrate.ts @@ -25,7 +25,7 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason to change the bitrate", + description: "The reason to change the bitrate", rest: false, required: false, type: ArgType.String @@ -33,6 +33,6 @@ export default new NativeFunction({ ], unwrap: true, async execute(ctx, [channel, bitrate, reason]) { - return this.success(!!(await (channel as VoiceChannel).setBitrate(bitrate, reason || undefined).catch(ctx.noop))) + return this.success(!!(await (channel as VoiceChannel).setBitrate(bitrate, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setVoiceDeaf.ts b/src/native/channel/setVoiceDeaf.ts index 5acc9330d1..672f396f82 100644 --- a/src/native/channel/setVoiceDeaf.ts +++ b/src/native/channel/setVoiceDeaf.ts @@ -27,7 +27,7 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason to deafen this user", + description: "The reason to deafen this user", rest: false, required: false, type: ArgType.String @@ -35,6 +35,6 @@ export default new NativeFunction({ ], unwrap: true, async execute(ctx, [, member, reason ]) { - return this.success(!!(await member.voice.setDeaf(true, reason || undefined).catch(ctx.noop))) + return this.success(!!(await member.voice.setDeaf(true, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setVoiceMute.ts b/src/native/channel/setVoiceMute.ts index eba229b919..f2b2b0b0d6 100644 --- a/src/native/channel/setVoiceMute.ts +++ b/src/native/channel/setVoiceMute.ts @@ -27,7 +27,7 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason to mute this user", + description: "The reason to mute this user", rest: false, required: false, type: ArgType.String @@ -35,6 +35,6 @@ export default new NativeFunction({ ], unwrap: true, async execute(ctx, [, member, reason ]) { - return this.success(!!(await member.voice.setMute(true, reason || undefined).catch(ctx.noop))) + return this.success(!!(await member.voice.setMute(true, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setVoiceRegion.ts b/src/native/channel/setVoiceRegion.ts index ffe64dd853..2df6ffac1c 100644 --- a/src/native/channel/setVoiceRegion.ts +++ b/src/native/channel/setVoiceRegion.ts @@ -43,7 +43,7 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason to set the voice region", + description: "The reason to set the voice region", rest: false, required: false, type: ArgType.String @@ -51,6 +51,6 @@ export default new NativeFunction({ ], output: ArgType.Boolean, async execute(ctx, [voice, region, reason]) { - return this.success(!!(await (voice as VoiceChannel).setRTCRegion(region || null, reason || undefined).catch(ctx.noop))) + return this.success(!!(await (voice as VoiceChannel).setRTCRegion(region || null, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setVoiceUndeaf.ts b/src/native/channel/setVoiceUndeaf.ts index 9b6186fe80..79b4e9325c 100644 --- a/src/native/channel/setVoiceUndeaf.ts +++ b/src/native/channel/setVoiceUndeaf.ts @@ -27,7 +27,7 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason to undeafen this user", + description: "The reason to undeafen this user", rest: false, required: false, type: ArgType.String @@ -35,6 +35,6 @@ export default new NativeFunction({ ], unwrap: true, async execute(ctx, [, member, reason ]) { - return this.success(!!(await member.voice.setDeaf(false, reason || undefined).catch(ctx.noop))) + return this.success(!!(await member.voice.setDeaf(false, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setVoiceUnmute.ts b/src/native/channel/setVoiceUnmute.ts index 2b296cbe6e..35e4bafc28 100644 --- a/src/native/channel/setVoiceUnmute.ts +++ b/src/native/channel/setVoiceUnmute.ts @@ -27,7 +27,7 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason to unmute this user", + description: "The reason to unmute this user", rest: false, required: false, type: ArgType.String @@ -35,6 +35,6 @@ export default new NativeFunction({ ], unwrap: true, async execute(ctx, [, member, reason ]) { - return this.success(!!(await member.voice.setMute(false, reason || undefined).catch(ctx.noop))) + return this.success(!!(await member.voice.setMute(false, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setVoiceUserLimit.ts b/src/native/channel/setVoiceUserLimit.ts index 70f4db3e2f..9f8244b193 100644 --- a/src/native/channel/setVoiceUserLimit.ts +++ b/src/native/channel/setVoiceUserLimit.ts @@ -25,7 +25,7 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason to change the user limit", + description: "The reason to change the user limit", rest: false, required: false, type: ArgType.String @@ -33,6 +33,6 @@ export default new NativeFunction({ ], unwrap: true, async execute(ctx, [channel, limit, reason ]) { - return this.success(!!(await (channel as VoiceChannel).setUserLimit(limit, reason || undefined).catch(ctx.noop))) + return this.success(!!(await (channel as VoiceChannel).setUserLimit(limit, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/setVoiceVideoQuality.ts b/src/native/channel/setVoiceVideoQuality.ts index 7d12668758..ee17f23147 100644 --- a/src/native/channel/setVoiceVideoQuality.ts +++ b/src/native/channel/setVoiceVideoQuality.ts @@ -26,7 +26,7 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason to change the video quality", + description: "The reason to change the video quality", rest: false, required: false, type: ArgType.String @@ -34,6 +34,6 @@ export default new NativeFunction({ ], unwrap: true, async execute(ctx, [channel, quality, reason]) { - return this.success(!!(await (channel as VoiceChannel).setVideoQualityMode(quality, reason || undefined).catch(ctx.noop))) + return this.success(!!(await (channel as VoiceChannel).setVideoQualityMode(quality, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/channel/unarchiveThread.ts b/src/native/channel/unarchiveThread.ts index 1cff3c4943..849cfaef26 100644 --- a/src/native/channel/unarchiveThread.ts +++ b/src/native/channel/unarchiveThread.ts @@ -29,7 +29,7 @@ export default new NativeFunction({ const thread = (channel ?? ctx.channel) as ThreadChannel if (!thread?.isThread()) return this.success(false) - const success = await thread.setArchived(false, reason || undefined).catch(ctx.noop) + const success = await thread.setArchived(false, reason || ctx.reason).catch(ctx.noop) return this.success(!!success) }, diff --git a/src/native/channel/unlockThread.ts b/src/native/channel/unlockThread.ts index f3306d461d..7abc47f8f8 100644 --- a/src/native/channel/unlockThread.ts +++ b/src/native/channel/unlockThread.ts @@ -29,7 +29,7 @@ export default new NativeFunction({ const thread = (channel ?? ctx.channel) as ThreadChannel if (!thread?.isThread()) return this.success(false) - const success = await thread.setLocked(false, reason || undefined).catch(ctx.noop) + const success = await thread.setLocked(false, reason || ctx.reason).catch(ctx.noop) return this.success(!!success) }, diff --git a/src/native/component/editButton.ts b/src/native/component/editButton.ts index 2be623578f..31bfe42d96 100644 --- a/src/native/component/editButton.ts +++ b/src/native/component/editButton.ts @@ -72,12 +72,12 @@ export default new NativeFunction({ btn.setLabel(label || btn.data.label) .setStyle(style) - if (emoji) btn.setEmoji(emoji) - if (typeof disabled === "boolean") btn.setDisabled(disabled) + if (emoji) btn.setEmoji(emoji) + if (typeof disabled === "boolean") btn.setDisabled(disabled) - if (style === ButtonStyle.Link) btn.setURL(id) - else if (style === ButtonStyle.Premium) btn.setSKUId(id) - else btn.setCustomId(id) + if (style === ButtonStyle.Link) btn.setURL(id) + else if (style === ButtonStyle.Premium) btn.setSKUId(id) + else btn.setCustomId(id) return this.success() }, diff --git a/src/native/component/editButtonOf.ts b/src/native/component/editButtonOf.ts index 9ca2426659..061d57c0df 100644 --- a/src/native/component/editButtonOf.ts +++ b/src/native/component/editButtonOf.ts @@ -86,12 +86,12 @@ export default new NativeFunction({ btn.setLabel(label || btn.data.label) .setStyle(style) - if (emoji) btn.setEmoji(emoji) - if (typeof disabled === "boolean") btn.setDisabled(disabled) + if (emoji) btn.setEmoji(emoji) + if (typeof disabled === "boolean") btn.setDisabled(disabled) - if (style === ButtonStyle.Link) btn.setURL(id) - else if (style === ButtonStyle.Premium) btn.setSKUId(id) - else btn.setCustomId(id) + if (style === ButtonStyle.Link) btn.setURL(id) + else if (style === ButtonStyle.Premium) btn.setSKUId(id) + else btn.setCustomId(id) return this.success( !!(await m.edit({ components: components as ActionRowBuilder[] }).catch(ctx.noop)) diff --git a/src/native/embed/footer.ts b/src/native/embed/footer.ts index bb29e8b8b5..29cecc9ce9 100644 --- a/src/native/embed/footer.ts +++ b/src/native/embed/footer.ts @@ -14,8 +14,8 @@ export default new NativeFunction({ rest: false, }, { - name: "url", - description: "The url for the embed footer", + name: "icon", + description: "The icon url for the embed footer", type: ArgType.String, rest: false, }, diff --git a/src/native/emoji/addApplicationEmoji.ts b/src/native/emoji/addApplicationEmoji.ts index 78024ab4d3..9928637859 100644 --- a/src/native/emoji/addApplicationEmoji.ts +++ b/src/native/emoji/addApplicationEmoji.ts @@ -1,5 +1,4 @@ -import noop from "../../functions/noop" -import { Arg, ArgType, NativeFunction, Return } from "../../structures" +import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ name: "$addApplicationEmoji", diff --git a/src/native/emoji/addEmoji.ts b/src/native/emoji/addEmoji.ts index 4129c46445..1f3fcd7d4e 100644 --- a/src/native/emoji/addEmoji.ts +++ b/src/native/emoji/addEmoji.ts @@ -1,4 +1,3 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ @@ -50,6 +49,7 @@ export default new NativeFunction({ attachment: icon, name, roles: roles || undefined, + reason: ctx.reason }) .catch(ctx.noop) diff --git a/src/native/emoji/deleteEmojiMessageReactions.ts b/src/native/emoji/deleteEmojiMessageReactions.ts index 0687dd4aaf..99ec691f8c 100644 --- a/src/native/emoji/deleteEmojiMessageReactions.ts +++ b/src/native/emoji/deleteEmojiMessageReactions.ts @@ -1,6 +1,5 @@ import { TextBasedChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$deleteEmojiMessageReactions", diff --git a/src/native/emoji/deleteEmojis.ts b/src/native/emoji/deleteEmojis.ts index 616a6c77c9..4bad4abcbf 100644 --- a/src/native/emoji/deleteEmojis.ts +++ b/src/native/emoji/deleteEmojis.ts @@ -1,5 +1,4 @@ import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$deleteEmojis", @@ -29,7 +28,7 @@ export default new NativeFunction({ let count = 0 for (let i = 0, len = emotes.length; i < len; i++) { const emote = emotes[i] - const success = await emote.delete().catch(ctx.noop) + const success = await emote.delete(ctx.reason).catch(ctx.noop) if (success) count++ } diff --git a/src/native/emoji/editEmoji.ts b/src/native/emoji/editEmoji.ts index 1813bc8dda..88da9d50f9 100644 --- a/src/native/emoji/editEmoji.ts +++ b/src/native/emoji/editEmoji.ts @@ -1,4 +1,3 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ @@ -49,7 +48,7 @@ export default new NativeFunction({ !!(await emoji .edit({ name: name || undefined, - reason: reason || undefined, + reason: reason || ctx.reason, roles: roles || undefined, }) .catch(ctx.noop) diff --git a/src/native/emoji/emojiID.ts b/src/native/emoji/emojiID.ts index 6350fe1789..994d59e255 100644 --- a/src/native/emoji/emojiID.ts +++ b/src/native/emoji/emojiID.ts @@ -17,8 +17,9 @@ export default new NativeFunction({ }, ], async execute(ctx, [emoji]) { - if (this.hasFields) return this.success(ctx.client.emojis.cache.find((x) => x.name === emoji)?.id || (await ctx.client.application.emojis.fetch().catch(ctx.noop))?.find((x) => x.name === emoji)?.id) - + if (this.hasFields) { + return this.success(ctx.client.emojis.cache.find((x) => x.name === emoji)?.id || (await ctx.fetchApplicationEmojis(true))?.find((x) => x.name === emoji)?.id) + } return this.success(ctx.emoji?.id) }, }) \ No newline at end of file diff --git a/src/native/emoji/fetchApplicationEmojis.ts b/src/native/emoji/fetchApplicationEmojis.ts new file mode 100644 index 0000000000..ae384708c3 --- /dev/null +++ b/src/native/emoji/fetchApplicationEmojis.ts @@ -0,0 +1,12 @@ +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$fetchApplicationEmojis", + version: "2.5.0", + description: "Caches all application emojis of the client", + unwrap: false, + async execute(ctx) { + await ctx.fetchApplicationEmojis() + return this.success() + }, +}) \ No newline at end of file diff --git a/src/native/emoji/getApplicationEmojis.ts b/src/native/emoji/getApplicationEmojis.ts index bb0e9ca441..32f26c1d4e 100644 --- a/src/native/emoji/getApplicationEmojis.ts +++ b/src/native/emoji/getApplicationEmojis.ts @@ -28,7 +28,8 @@ export default new NativeFunction({ array() ], async execute(ctx, [prop, sep]) { - const emojis = await ctx.client.application.emojis.fetch().catch(ctx.noop) - return this.successJSON(!prop ? emojis : emojis?.map(emoji => ApplicationEmojiProperties[prop](emoji)).join(sep ?? ", ")) + const emojis = await ctx.fetchApplicationEmojis(true) + if (!prop) return this.successJSON(emojis) + return this.success(emojis ? emojis.map(emoji => ApplicationEmojiProperties[prop](emoji)).join(sep ?? ", ") : null) }, }) \ No newline at end of file diff --git a/src/native/emoji/randomApplicationEmojiID.ts b/src/native/emoji/randomApplicationEmojiID.ts index db2d7dec6e..e6378b4ddf 100644 --- a/src/native/emoji/randomApplicationEmojiID.ts +++ b/src/native/emoji/randomApplicationEmojiID.ts @@ -7,7 +7,7 @@ export default new NativeFunction({ unwrap: false, output: ArgType.ApplicationEmoji, async execute(ctx) { - const emojis = await ctx.client.application.emojis.fetch().catch(ctx.noop) + const emojis = await ctx.fetchApplicationEmojis(true) return this.success(emojis ? emojis.randomKey() : null) }, }) \ No newline at end of file diff --git a/src/native/guild/getGuildPreview.ts b/src/native/guild/getGuildPreview.ts new file mode 100644 index 0000000000..c1ee08a31f --- /dev/null +++ b/src/native/guild/getGuildPreview.ts @@ -0,0 +1,41 @@ +import { GuildPreviewProperties, GuildPreviewProperty } from "../../properties/guild" +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$getGuildPreview", + version: "2.5.0", + description: "Returns the preview of a guild", + brackets: false, + unwrap: true, + args: [ + { + name: "guild ID", + description: "The guild to fetch preview from", + rest: false, + required: true, + type: ArgType.String, + }, + { + name: "property", + description: "The property to return", + rest: false, + type: ArgType.Enum, + enum: GuildPreviewProperty + }, + { + name: "separator", + description: "The separator to use in case of array", + rest: false, + type: ArgType.String, + }, + ], + output: [ + ArgType.Json, + ArgType.Unknown + ], + async execute(ctx, [guild, prop, sep]) { + const preview = await (this.hasFields ? ctx.client.fetchGuildPreview(guild).catch(ctx.noop) : ctx.guild?.fetchPreview().catch(ctx.noop)) + if (preview && prop) return this.success(GuildPreviewProperties[prop](preview, sep)) + return this.successJSON(preview) + }, +}) \ No newline at end of file diff --git a/src/native/guild/guildEmojiExists.ts b/src/native/guild/guildEmojiExists.ts new file mode 100644 index 0000000000..2777057d62 --- /dev/null +++ b/src/native/guild/guildEmojiExists.ts @@ -0,0 +1,32 @@ +import { ArgType, CompiledFunction, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$guildEmojiExists", + version: "2.5.0", + description: "Returns whether an emoji id exists on a guild", + unwrap: true, + aliases: [ + "$serverEmojiExists" + ], + brackets: true, + args: [ + { + name: "guild ID", + description: "The guild to pull emoji from", + rest: false, + required: true, + type: ArgType.Guild, + }, + { + name: "emoji ID", + description: "The emoji to check for", + rest: false, + required: true, + type: ArgType.String, + }, + ], + output: ArgType.Boolean, + async execute(ctx, [guild, id]) { + return this.success(CompiledFunction.IdRegex.test(id) && guild.emojis.cache.has(id)) + }, +}) \ No newline at end of file diff --git a/src/native/guild/guildInvites.ts b/src/native/guild/guildInvites.ts new file mode 100644 index 0000000000..bb807d30f8 --- /dev/null +++ b/src/native/guild/guildInvites.ts @@ -0,0 +1,45 @@ +import { InviteProperties, InviteProperty } from "../../properties/invite" +import { ArgType, NativeFunction } from "../../structures" +import array from "../../functions/array" + +export default new NativeFunction({ + name: "$guildInvites", + version: "2.5.0", + description: "Returns all invites of a guild", + aliases: [ + "$serverInvites" + ], + unwrap: true, + brackets: false, + args: [ + { + name: "guild ID", + rest: false, + required: true, + type: ArgType.Guild, + description: "The guild to pull invites from" + }, + { + name: "property", + rest: false, + type: ArgType.Enum, + description: "The property of the invites to return", + enum: InviteProperty + }, + { + name: "separator", + rest: false, + type: ArgType.String, + description: "The separator to use for each property" + } + ], + output: [ + ArgType.Json, + array() + ], + async execute(ctx, [ guild, prop, sep ]) { + const invites = await (guild ?? ctx.guild)?.invites.fetch().catch(ctx.noop) + if (invites && prop) return this.success(invites.map((x) => InviteProperties[prop](x)).join(sep ?? ", ")) + return this.successJSON(invites) + }, +}) \ No newline at end of file diff --git a/src/native/guild/guildSoundboardLimit.ts b/src/native/guild/guildSoundboardLimit.ts new file mode 100644 index 0000000000..7ef5b6d261 --- /dev/null +++ b/src/native/guild/guildSoundboardLimit.ts @@ -0,0 +1,36 @@ +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$guildSoundboardLimit", + version: "2.5.0", + description: "Returns the soundboard sound limit of a guild", + brackets: false, + unwrap: true, + aliases: [ + "$serverSoundboardLimit" + ], + args: [ + { + name: "guild ID", + description: "The guild to retrieve the data", + rest: false, + required: true, + type: ArgType.Guild, + }, + ], + output: ArgType.Number, + execute(ctx, [guild]) { + let tier = (guild ?? ctx.guild)?.premiumTier + return this.success( + tier === 0 + ? 8 + : tier === 1 + ? 24 + : tier === 2 + ? 36 + : tier === 3 + ? 48 + : undefined + ) + }, +}) \ No newline at end of file diff --git a/src/native/guild/guildStickerExists.ts b/src/native/guild/guildStickerExists.ts new file mode 100644 index 0000000000..58a995081c --- /dev/null +++ b/src/native/guild/guildStickerExists.ts @@ -0,0 +1,32 @@ +import { ArgType, CompiledFunction, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$guildStickerExists", + version: "2.5.0", + description: "Returns whether a sticker id exists on a guild", + unwrap: true, + aliases: [ + "$serverStickerExists" + ], + brackets: true, + args: [ + { + name: "guild ID", + description: "The guild to pull sticker from", + rest: false, + required: true, + type: ArgType.Guild, + }, + { + name: "sticker ID", + description: "The sticker to check for", + rest: false, + required: true, + type: ArgType.String, + }, + ], + output: ArgType.Boolean, + async execute(ctx, [guild, id]) { + return this.success(CompiledFunction.IdRegex.test(id) && guild.stickers.cache.has(id)) + }, +}) \ No newline at end of file diff --git a/src/native/guild/guildVanityUses.ts b/src/native/guild/guildVanityUses.ts index 9b03773025..d672e512fc 100644 --- a/src/native/guild/guildVanityUses.ts +++ b/src/native/guild/guildVanityUses.ts @@ -21,6 +21,7 @@ export default new NativeFunction({ brackets: false, async execute(ctx, [guild]) { guild ??= ctx.guild! - return this.success(guild?.vanityURLUses ?? (await guild?.fetchVanityData().catch(ctx.noop))?.uses) + const vanity = await guild?.fetchVanityData().catch(ctx.noop) + return this.success(vanity ? vanity.uses : null) }, -}) +}) \ No newline at end of file diff --git a/src/native/guild/setGuildAFKChannel.ts b/src/native/guild/setGuildAFKChannel.ts index 2ad6d2d80f..21727e50a1 100644 --- a/src/native/guild/setGuildAFKChannel.ts +++ b/src/native/guild/setGuildAFKChannel.ts @@ -35,6 +35,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, channel, reason]) { - return this.success((await guild.setAFKChannel(channel as VoiceChannel || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setAFKChannel(channel as VoiceChannel || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildAFKTimeout.ts b/src/native/guild/setGuildAFKTimeout.ts index 3e61258097..667a28a0fc 100644 --- a/src/native/guild/setGuildAFKTimeout.ts +++ b/src/native/guild/setGuildAFKTimeout.ts @@ -33,6 +33,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, seconds, reason]) { - return this.success((await guild.setAFKTimeout(seconds, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setAFKTimeout(seconds, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildBanner.ts b/src/native/guild/setGuildBanner.ts index 3fc23905a5..93bc160df3 100644 --- a/src/native/guild/setGuildBanner.ts +++ b/src/native/guild/setGuildBanner.ts @@ -32,6 +32,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, banner, reason]) { - return this.success((await guild.setBanner(banner || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setBanner(banner || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildBoostProgressBar.ts b/src/native/guild/setGuildBoostProgressBar.ts index 4aca6829dd..ac1f4461ac 100644 --- a/src/native/guild/setGuildBoostProgressBar.ts +++ b/src/native/guild/setGuildBoostProgressBar.ts @@ -33,6 +33,6 @@ export default new NativeFunction({ ], output: ArgType.Boolean, async execute(ctx, [guild, enabled, reason]) { - return this.success((await guild.setPremiumProgressBarEnabled(enabled, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setPremiumProgressBarEnabled(enabled, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildDefaultMessageNotifications.ts b/src/native/guild/setGuildDefaultMessageNotifications.ts index 79ad10b64b..7914fc171b 100644 --- a/src/native/guild/setGuildDefaultMessageNotifications.ts +++ b/src/native/guild/setGuildDefaultMessageNotifications.ts @@ -34,6 +34,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, setting, reason]) { - return this.success((await guild.setDefaultMessageNotifications(setting || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setDefaultMessageNotifications(setting || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildDiscoverySplash.ts b/src/native/guild/setGuildDiscoverySplash.ts index 478c821d15..c57cfc1057 100644 --- a/src/native/guild/setGuildDiscoverySplash.ts +++ b/src/native/guild/setGuildDiscoverySplash.ts @@ -32,6 +32,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, icon, reason]) { - return this.success((await guild.setDiscoverySplash(icon || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setDiscoverySplash(icon || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildExplicitContentFilter.ts b/src/native/guild/setGuildExplicitContentFilter.ts index 39e8c024f8..90627e1a55 100644 --- a/src/native/guild/setGuildExplicitContentFilter.ts +++ b/src/native/guild/setGuildExplicitContentFilter.ts @@ -34,6 +34,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, filter, reason]) { - return this.success((await guild.setExplicitContentFilter(filter || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setExplicitContentFilter(filter || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildIcon.ts b/src/native/guild/setGuildIcon.ts index af60b05514..52c4bdebdc 100644 --- a/src/native/guild/setGuildIcon.ts +++ b/src/native/guild/setGuildIcon.ts @@ -32,6 +32,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, icon, reason]) { - return this.success((await guild.setIcon(icon || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setIcon(icon || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildMFALevel.ts b/src/native/guild/setGuildMFALevel.ts index 5eb3461a2f..26d24ef703 100644 --- a/src/native/guild/setGuildMFALevel.ts +++ b/src/native/guild/setGuildMFALevel.ts @@ -36,6 +36,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, level, reason]) { - return this.success((await guild.setMFALevel(level, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setMFALevel(level, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildName.ts b/src/native/guild/setGuildName.ts index a5d9dd1c9c..3c93802a82 100644 --- a/src/native/guild/setGuildName.ts +++ b/src/native/guild/setGuildName.ts @@ -33,6 +33,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, name, reason]) { - return this.success((await guild.setName(name, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setName(name, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildOwner.ts b/src/native/guild/setGuildOwner.ts index 8ae44d6240..881d262d4f 100644 --- a/src/native/guild/setGuildOwner.ts +++ b/src/native/guild/setGuildOwner.ts @@ -35,6 +35,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, member, reason]) { - return this.success((await guild.setOwner(member, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setOwner(member, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildPreferredLocale.ts b/src/native/guild/setGuildPreferredLocale.ts index 4faf002513..f2f5711f59 100644 --- a/src/native/guild/setGuildPreferredLocale.ts +++ b/src/native/guild/setGuildPreferredLocale.ts @@ -34,6 +34,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, locale, reason]) { - return this.success((await guild.setPreferredLocale(locale || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setPreferredLocale(locale || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildPublicUpdatesChannel.ts b/src/native/guild/setGuildPublicUpdatesChannel.ts index 060251b49c..f87037a874 100644 --- a/src/native/guild/setGuildPublicUpdatesChannel.ts +++ b/src/native/guild/setGuildPublicUpdatesChannel.ts @@ -35,6 +35,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, channel, reason]) { - return this.success((await guild.setPublicUpdatesChannel(channel as TextChannel || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setPublicUpdatesChannel(channel as TextChannel || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildRulesChannel.ts b/src/native/guild/setGuildRulesChannel.ts index 3efb911f98..4b99b385db 100644 --- a/src/native/guild/setGuildRulesChannel.ts +++ b/src/native/guild/setGuildRulesChannel.ts @@ -35,6 +35,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, channel, reason]) { - return this.success((await guild.setRulesChannel(channel as TextChannel || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setRulesChannel(channel as TextChannel || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildSafetyAlertsChannel.ts b/src/native/guild/setGuildSafetyAlertsChannel.ts index 9e90f5081e..ff77eaf600 100644 --- a/src/native/guild/setGuildSafetyAlertsChannel.ts +++ b/src/native/guild/setGuildSafetyAlertsChannel.ts @@ -35,6 +35,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, channel, reason]) { - return this.success((await guild.setSafetyAlertsChannel(channel as TextChannel || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setSafetyAlertsChannel(channel as TextChannel || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildSplash.ts b/src/native/guild/setGuildSplash.ts index afda6b17e2..d326b69a51 100644 --- a/src/native/guild/setGuildSplash.ts +++ b/src/native/guild/setGuildSplash.ts @@ -32,6 +32,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, icon, reason]) { - return this.success((await guild.setSplash(icon || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setSplash(icon || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildSystemChannel.ts b/src/native/guild/setGuildSystemChannel.ts index 2b1e8147bd..1b0d70f8ea 100644 --- a/src/native/guild/setGuildSystemChannel.ts +++ b/src/native/guild/setGuildSystemChannel.ts @@ -35,6 +35,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, channel, reason]) { - return this.success((await guild.setSystemChannel(channel as TextChannel || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setSystemChannel(channel as TextChannel || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildVerificationLevel.ts b/src/native/guild/setGuildVerificationLevel.ts index 30e543b1bc..bb886bf6fb 100644 --- a/src/native/guild/setGuildVerificationLevel.ts +++ b/src/native/guild/setGuildVerificationLevel.ts @@ -34,6 +34,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [guild, level, reason]) { - return this.success((await guild.setVerificationLevel(level || null, reason || undefined).catch(() => false)) !== false) + return this.success((await guild.setVerificationLevel(level || null, reason || ctx.reason).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/guild/setGuildWidgetSettings.ts b/src/native/guild/setGuildWidgetSettings.ts index 27f8cf1948..ab865d0eee 100644 --- a/src/native/guild/setGuildWidgetSettings.ts +++ b/src/native/guild/setGuildWidgetSettings.ts @@ -43,9 +43,9 @@ export default new NativeFunction({ return this.success((await guild.setWidgetSettings( { channel: chan as NewsChannel | TextChannel | ForumChannel | MediaChannel | VoiceBasedChannel || null, - enabled: enabled ?? guild.widgetEnabled ?? false + enabled: enabled || guild.widgetEnabled || false }, - reason || undefined + reason || ctx.reason ).catch(() => false)) !== false) }, }) \ No newline at end of file diff --git a/src/native/invite/deleteInvite.ts b/src/native/invite/deleteInvite.ts index 637583f23c..61888bf4ff 100644 --- a/src/native/invite/deleteInvite.ts +++ b/src/native/invite/deleteInvite.ts @@ -1,5 +1,4 @@ import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$deleteInvite", @@ -25,6 +24,6 @@ export default new NativeFunction({ ], async execute(ctx, [code, reason]) { const invite = await ctx.client.fetchInvite(code).catch(ctx.noop) - return this.success(!!(await invite?.delete(reason || undefined).catch(ctx.noop))) + return this.success(!!(await invite?.delete(reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/lookup/findApplicationEmoji.ts b/src/native/lookup/findApplicationEmoji.ts index 2d9f6b1669..80dce35f5d 100644 --- a/src/native/lookup/findApplicationEmoji.ts +++ b/src/native/lookup/findApplicationEmoji.ts @@ -17,13 +17,13 @@ export default new NativeFunction({ ], unwrap: true, async execute(ctx, [q]) { + const emojis = await ctx.fetchApplicationEmojis(true) + if (CompiledFunction.IdRegex.test(q)) { - const e = await ctx.client.application.emojis.fetch(q).catch(ctx.noop) + const e = emojis?.get(q) if (e) return this.success(e.id) } - return this.success( - (await ctx.client.application.emojis.fetch().catch(ctx.noop))?.find((x) => x.id === q || x.name?.toLowerCase() === q.toLowerCase() || x.toString() === q)?.id - ) + return this.success(emojis?.find((x) => x.id === q || x.name?.toLowerCase() === q.toLowerCase() || x.toString() === q)?.id) }, }) \ No newline at end of file diff --git a/src/native/lookup/findEmoji.ts b/src/native/lookup/findEmoji.ts index 806c545772..cf25a91d6f 100644 --- a/src/native/lookup/findEmoji.ts +++ b/src/native/lookup/findEmoji.ts @@ -18,17 +18,18 @@ export default new NativeFunction({ ], unwrap: true, async execute(ctx, [q]) { + const emojis = await ctx.fetchApplicationEmojis(true) const parsed = parseEmoji(q) if (CompiledFunction.IdRegex.test(q)) { - const e = ctx.client.emojis.cache.get(q) || await ctx.client.application.emojis.fetch(q).catch(ctx.noop) + const e = ctx.client.emojis.cache.get(q) || emojis?.get(q) if (e) return this.success(e.id) } const name = parsed?.name.toLowerCase() return this.success( - ctx.client.emojis.cache.find((x) => x.id === q || x.name?.toLowerCase() === name || x.toString() === q)?.id || (await ctx.client.application.emojis.fetch().catch(ctx.noop))?.find((x) => x.id === q || x.name?.toLowerCase() === name || x.toString() === q)?.id + ctx.client.emojis.cache.find((x) => x.id === q || x.name?.toLowerCase() === name || x.toString() === q)?.id || emojis?.find((x) => x.id === q || x.name?.toLowerCase() === name || x.toString() === q)?.id ) }, }) \ No newline at end of file diff --git a/src/native/member/ban.ts b/src/native/member/ban.ts index 6927d4bf5e..b21b3aa993 100644 --- a/src/native/member/ban.ts +++ b/src/native/member/ban.ts @@ -4,7 +4,8 @@ export default new NativeFunction({ name: "$ban", version: "1.0.0", aliases: [ - "$memberBan" + "$memberBan", + "$banMember" ], description: "Bans a member from the guild, returns true or false depending on whether the action was successfully performed", @@ -43,7 +44,7 @@ export default new NativeFunction({ return this.success( (await guild.members .ban(user, { - reason: reason || undefined, + reason: reason || ctx.reason, deleteMessageSeconds: seconds || undefined, }) .catch(() => false)) !== false diff --git a/src/native/member/kickMember.ts b/src/native/member/kickMember.ts index 46e046d1b8..a4c96fa6dd 100644 --- a/src/native/member/kickMember.ts +++ b/src/native/member/kickMember.ts @@ -35,6 +35,6 @@ export default new NativeFunction({ }, ], async execute(ctx, [, member, reason]) { - return this.success((await member.kick(reason || undefined).catch(() => false)) !== false) + return this.success((await member.kick(reason || ctx.reason).catch(() => false)) !== false) }, }) diff --git a/src/native/member/memberAddRoles.ts b/src/native/member/memberAddRoles.ts index c8cb3de241..147b8ed613 100644 --- a/src/native/member/memberAddRoles.ts +++ b/src/native/member/memberAddRoles.ts @@ -1,10 +1,9 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ name: "$memberAddRoles", version: "1.0.0", - description: "Adds roles to a member and returns bool", + description: "Adds roles to a member, returns bool", unwrap: true, brackets: true, output: ArgType.Boolean, @@ -34,7 +33,7 @@ export default new NativeFunction({ ], async execute(ctx, [, member, roles]) { member ??= ctx.member! - const d = await member.roles.add(roles).catch(ctx.noop) + const d = await member.roles.add(roles, ctx.reason).catch(ctx.noop) return this.success(!!d) }, diff --git a/src/native/member/memberJoinedAt.ts b/src/native/member/memberJoinedAt.ts index 7d653b8756..005f3bebfd 100644 --- a/src/native/member/memberJoinedAt.ts +++ b/src/native/member/memberJoinedAt.ts @@ -30,7 +30,7 @@ export default new NativeFunction({ return this.success( member instanceof GuildMember ? member?.joinedTimestamp - : ("joined_at" in (ctx.interaction?.member ?? {}) ? new Date((ctx.interaction?.member as APIInteractionGuildMember).joined_at).getTime() : null) + : ("joined_at" in (ctx.interaction?.member ?? {}) ? new Date((ctx.interaction?.member as APIInteractionGuildMember).joined_at!).getTime() : null) ) }, }) \ No newline at end of file diff --git a/src/native/member/memberPerms.ts b/src/native/member/memberPerms.ts index 22825901b4..e5886039a6 100644 --- a/src/native/member/memberPerms.ts +++ b/src/native/member/memberPerms.ts @@ -12,14 +12,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the member from", + description: "The guild to pull the member from", rest: false, type: ArgType.Guild, required: true, }, { name: "user ID", - description: "The member id to return its perms", + description: "The member to return its perms", rest: false, type: ArgType.Member, pointer: 0, @@ -32,9 +32,16 @@ export default new NativeFunction({ required: false, rest: false, }, + { + name: "return int", + description: "Whether to return the perms as bitfield int", + type: ArgType.Boolean, + rest: false, + }, ], - execute(ctx, [, user, sep]) { + execute(ctx, [, user, sep, int]) { const member = user ?? ctx.member ?? ctx.interaction?.member - return this.success(new PermissionsBitField(member?.permissions).toArray().join(sep || ", ")) + const perms = new PermissionsBitField(member?.permissions) + return this.success(int ? perms.bitfield : perms.toArray().join(sep ?? ", ")) }, }) \ No newline at end of file diff --git a/src/native/member/memberRemoveRoles.ts b/src/native/member/memberRemoveRoles.ts index eda5fb5e44..ecb6346538 100644 --- a/src/native/member/memberRemoveRoles.ts +++ b/src/native/member/memberRemoveRoles.ts @@ -1,10 +1,9 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ name: "$memberRemoveRoles", version: "1.0.0", - description: "Removes roles from a member and returns bool", + description: "Removes roles from a member, returns bool", unwrap: true, brackets: true, output: ArgType.Boolean, @@ -34,7 +33,7 @@ export default new NativeFunction({ ], async execute(ctx, [, member, roles]) { member ??= ctx.member! - const d = await member.roles.remove(roles).catch(ctx.noop) + const d = await member.roles.remove(roles, ctx.reason).catch(ctx.noop) return this.success(!!d) }, diff --git a/src/native/member/memberSetNickname.ts b/src/native/member/memberSetNickname.ts index 8f17ea6df4..871e9fb292 100644 --- a/src/native/member/memberSetNickname.ts +++ b/src/native/member/memberSetNickname.ts @@ -1,10 +1,9 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ name: "$memberSetNickname", version: "1.0.7", - description: "Edits a member's nickname", + description: "Edits a member's nickname, returns bool", brackets: true, output: ArgType.Boolean, unwrap: true, @@ -32,6 +31,6 @@ export default new NativeFunction({ }, ], async execute(ctx, [, m, nick]) { - return this.success(!!(await m.setNickname(nick).catch(noop || null))) + return this.success(!!(await m.setNickname(nick, ctx.reason).catch(ctx.noop))) }, }) diff --git a/src/native/member/memberSetRoles.ts b/src/native/member/memberSetRoles.ts index 455a9ea0c5..1d5fbc7544 100644 --- a/src/native/member/memberSetRoles.ts +++ b/src/native/member/memberSetRoles.ts @@ -1,10 +1,9 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ name: "$memberSetRoles", version: "1.0.0", - description: "Sets roles to a member and returns bool", + description: "Sets roles to a member, returns bool", unwrap: true, brackets: true, output: ArgType.Boolean, @@ -34,7 +33,7 @@ export default new NativeFunction({ ], async execute(ctx, [, member, roles]) { member ??= ctx.member! - const d = await member.roles.set(roles).catch(ctx.noop) + const d = await member.roles.set(roles, ctx.reason).catch(ctx.noop) return this.success(!!d) }, diff --git a/src/native/member/pruneMembers.ts b/src/native/member/pruneMembers.ts index 5d0aa29c38..1709df4c54 100644 --- a/src/native/member/pruneMembers.ts +++ b/src/native/member/pruneMembers.ts @@ -1,4 +1,3 @@ -import { decrypt } from "dotenv" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ @@ -53,7 +52,7 @@ export default new NativeFunction({ days: days || 7, dry: dry || false, roles: roles, - reason: reason || undefined, + reason: reason || ctx.reason, }).catch(ctx.noop)) ) }, diff --git a/src/native/member/timeout.ts b/src/native/member/timeout.ts index f7ccca6213..587d6b7871 100644 --- a/src/native/member/timeout.ts +++ b/src/native/member/timeout.ts @@ -1,15 +1,15 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ name: "$timeout", version: "1.0.0", - description: "Times a member out for X milliseconds", + description: "Times a member out for X milliseconds, returns bool", unwrap: true, aliases: [ - "$memberTimeout" + "$memberTimeout", + "$timeoutMember" ], - output: ArgType.Number, + output: ArgType.Boolean, brackets: true, args: [ { @@ -41,7 +41,7 @@ export default new NativeFunction({ }, ], async execute(ctx, [, member, ms, reason]) { - const timeout = await member.disableCommunicationUntil(ms ? Date.now() + ms : null, reason || undefined).catch(ctx.noop) + const timeout = await member.disableCommunicationUntil(ms ? Date.now() + ms : null, reason || ctx.reason).catch(ctx.noop) return this.success(!!timeout) }, }) \ No newline at end of file diff --git a/src/native/member/unban.ts b/src/native/member/unban.ts index 1af1855a66..a99c3a53b8 100644 --- a/src/native/member/unban.ts +++ b/src/native/member/unban.ts @@ -1,4 +1,3 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ @@ -7,14 +6,15 @@ export default new NativeFunction({ brackets: true, unwrap: true, aliases: [ - "$memberUnban" + "$memberUnban", + "$unbanMember" ], output: ArgType.Boolean, - description: "Unbans a user", + description: "Unbans a user from a guild, returns bool", args: [ { name: "guild ID", - description: "The guild to unban a user from", + description: "The guild to unban user from", rest: false, required: true, type: ArgType.Guild, @@ -34,7 +34,7 @@ export default new NativeFunction({ }, ], async execute(ctx, [guild, user, reason]) { - const unbanned = await guild.bans.remove(user, reason || undefined).catch(ctx.noop) + const unbanned = await guild.bans.remove(user, reason || ctx.reason).catch(ctx.noop) return this.success(!!unbanned) }, }) diff --git a/src/native/member/voiceKick.ts b/src/native/member/voiceKick.ts index 6b384e6778..f24d33dc50 100644 --- a/src/native/member/voiceKick.ts +++ b/src/native/member/voiceKick.ts @@ -1,10 +1,9 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction } from "../../structures" export default new NativeFunction({ name: "$voiceKick", version: "1.4.0", - description: "Kicks a member from voice channel", + description: "Kicks a member from a voice channel, returns bool", brackets: true, aliases: [ "$memberVoiceKick" @@ -28,7 +27,7 @@ export default new NativeFunction({ }, { name: "reason", - description: "Reason to kick this user", + description: "The reason to kick this user", rest: false, required: false, type: ArgType.String @@ -36,6 +35,6 @@ export default new NativeFunction({ ], unwrap: true, async execute(ctx, [, member, reason ]) { - return this.success(!!(await member.voice.disconnect(reason ?? undefined).catch(ctx.noop))) + return this.success(!!(await member.voice.disconnect(reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/member/voiceMove.ts b/src/native/member/voiceMove.ts index 52224bd984..d74751655c 100644 --- a/src/native/member/voiceMove.ts +++ b/src/native/member/voiceMove.ts @@ -1,5 +1,4 @@ import { BaseChannel, GuildVoiceChannelResolvable } from "discord.js" -import noop from "../../functions/noop" import { ArgType, NativeFunction } from "../../structures" export default new NativeFunction({ @@ -44,6 +43,6 @@ export default new NativeFunction({ ], unwrap: true, async execute(ctx, [, member, voice, reason ]) { - return this.success(!!(await member.voice.setChannel(voice as GuildVoiceChannelResolvable, reason || undefined).catch(ctx.noop))) + return this.success(!!(await member.voice.setChannel(voice as GuildVoiceChannelResolvable, reason || ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/mention/disableEveryoneMention.ts b/src/native/mention/disableEveryoneMention.ts index 3f5daef54b..269d9934f0 100644 --- a/src/native/mention/disableEveryoneMention.ts +++ b/src/native/mention/disableEveryoneMention.ts @@ -6,8 +6,7 @@ export default new NativeFunction({ description: "Disables everyone mention", unwrap: false, execute(ctx) { - ctx.container.allowedMentions.parse = ["everyone"] - + ctx.container.unparseMention("everyone") return this.success() }, }) \ No newline at end of file diff --git a/src/native/mention/disableRoleMentions.ts b/src/native/mention/disableRoleMentions.ts index 25bfa53bc3..aaeb226a76 100644 --- a/src/native/mention/disableRoleMentions.ts +++ b/src/native/mention/disableRoleMentions.ts @@ -6,6 +6,7 @@ export default new NativeFunction({ description: "Disables all role mentions", unwrap: false, execute(ctx) { + ctx.container.unparseMention("roles") ctx.container.allowedMentions.roles = [] return this.success() }, diff --git a/src/native/mention/disableUserMentions.ts b/src/native/mention/disableUserMentions.ts index 70f7158820..df80190ea7 100644 --- a/src/native/mention/disableUserMentions.ts +++ b/src/native/mention/disableUserMentions.ts @@ -6,6 +6,7 @@ export default new NativeFunction({ description: "Disables all user mentions", unwrap: false, execute(ctx) { + ctx.container.unparseMention("users") ctx.container.allowedMentions.users = [] return this.success() }, diff --git a/src/native/message/getPoll.ts b/src/native/message/getPoll.ts new file mode 100644 index 0000000000..33e87e9962 --- /dev/null +++ b/src/native/message/getPoll.ts @@ -0,0 +1,43 @@ +import { BaseChannel } from "discord.js" +import { ArgType, NativeFunction, Return } from "../../structures" +import { PollProperties, PollProperty } from "../../properties/poll" + +export default new NativeFunction({ + name: "$getPoll", + version: "2.5.0", + description: "Retrieves data of a poll from a message", + aliases: ["$getMessagePoll"], + unwrap: true, + brackets: false, + args: [ + { + name: "channel ID", + description: "The channel to pull message from", + rest: false, + required: true, + type: ArgType.Channel, + check: (i: BaseChannel) => i.isTextBased(), + }, + { + name: "message ID", + description: "The message to retrieve data from", + rest: false, + required: true, + type: ArgType.Message, + pointer: 0, + }, + { + name: "property", + description: "The property to pull", + rest: false, + type: ArgType.Enum, + enum: PollProperty, + required: true, + }, + ], + output: ArgType.Unknown, + execute(ctx, [, msg, prop]) { + const poll = (msg ?? ctx.message)?.poll + return this.success(poll ? PollProperties[prop](poll) : null) + }, +}) \ No newline at end of file diff --git a/src/native/message/hasComponents.ts b/src/native/message/hasComponents.ts new file mode 100644 index 0000000000..8032cfa63e --- /dev/null +++ b/src/native/message/hasComponents.ts @@ -0,0 +1,32 @@ +import { BaseChannel } from "discord.js" +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$hasComponents", + version: "2.5.0", + description: "Checks whether given message has components", + brackets: false, + unwrap: true, + args: [ + { + name: "channel ID", + description: "The channel to get message from", + type: ArgType.Channel, + rest: false, + required: true, + check: (i: BaseChannel) => "messages" in i + }, + { + name: "message ID", + pointer: 0, + rest: false, + required: true, + type: ArgType.Message, + description: "The message to check for components" + } + ], + output: ArgType.Boolean, + execute(ctx, [, msg]) { + return this.success(!!(msg ?? ctx.message)?.components.length) + }, +}) \ No newline at end of file diff --git a/src/native/message/pinMessage.ts b/src/native/message/pinMessage.ts index 955b36efce..7119c9e537 100644 --- a/src/native/message/pinMessage.ts +++ b/src/native/message/pinMessage.ts @@ -1,6 +1,5 @@ import { BaseChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$pinMessage", @@ -28,6 +27,6 @@ export default new NativeFunction({ } ], async execute(ctx, [, m ]) { - return this.success(!!(await (m ?? ctx.message)?.pin().catch(ctx.noop))) + return this.success(!!(await (m ?? ctx.message)?.pin(ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/message/unpinMessage.ts b/src/native/message/unpinMessage.ts index 3a4f46bafd..2f34fae143 100644 --- a/src/native/message/unpinMessage.ts +++ b/src/native/message/unpinMessage.ts @@ -1,6 +1,5 @@ import { BaseChannel } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$unpinMessage", @@ -28,6 +27,6 @@ export default new NativeFunction({ } ], async execute(ctx, [, m ]) { - return this.success(!!(await (m ?? ctx.message)?.unpin().catch(ctx.noop))) + return this.success(!!(await (m ?? ctx.message)?.unpin(ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/role/addRole.ts b/src/native/role/addRole.ts index d0fea0888e..de8c9b3e34 100644 --- a/src/native/role/addRole.ts +++ b/src/native/role/addRole.ts @@ -1,5 +1,4 @@ import { ColorResolvable, PermissionFlagsBits, PermissionsString } from "discord.js" -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ @@ -65,15 +64,16 @@ export default new NativeFunction({ async execute(ctx, [guild, name, color, icon, hoist, mentionable, pos, perms]) { const created = await guild.roles .create({ - color: (color as ColorResolvable) || undefined, + colors: !color ? undefined : { primaryColor: color as ColorResolvable }, icon: icon || undefined, hoist: hoist || false, mentionable: mentionable || false, name, permissions: (perms as PermissionsString[]) || [], position: pos || undefined, + reason: ctx.reason }) .catch(ctx.noop) return this.success(created ? created.id : undefined) }, -}) +}) \ No newline at end of file diff --git a/src/native/role/cloneRole.ts b/src/native/role/cloneRole.ts index e213a04387..84abe9bda1 100644 --- a/src/native/role/cloneRole.ts +++ b/src/native/role/cloneRole.ts @@ -1,3 +1,4 @@ +import { RoleColorsResolvable } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ @@ -34,12 +35,13 @@ export default new NativeFunction({ const created = await guild.roles .create({ name: name || role.name, - color: role.color, + colors: role.colors as RoleColorsResolvable, icon: role.icon, hoist: role.hoist, mentionable: role.mentionable, permissions: role.permissions, unicodeEmoji: role.unicodeEmoji, + reason: ctx.reason }) .catch(ctx.noop) return this.success(created ? created.id : undefined) diff --git a/src/native/role/deleteRoles.ts b/src/native/role/deleteRoles.ts index be261b7d8e..602db55e97 100644 --- a/src/native/role/deleteRoles.ts +++ b/src/native/role/deleteRoles.ts @@ -1,5 +1,4 @@ import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$deleteRoles", @@ -29,7 +28,7 @@ export default new NativeFunction({ let count = 0 for (let i = 0, len = roles.length; i < len; i++) { const role = roles[i] - const success = await role.delete().catch(ctx.noop) + const success = await role.delete(ctx.reason).catch(ctx.noop) if (success) count++ } diff --git a/src/native/role/editRole.ts b/src/native/role/editRole.ts index 235f39496f..0ec9e3300e 100644 --- a/src/native/role/editRole.ts +++ b/src/native/role/editRole.ts @@ -1,11 +1,10 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" import { ColorResolvable } from "discord.js" export default new NativeFunction({ name: "$editRole", version: "1.0.7", - description: "Edits role data, returns boolean", + description: "Edits a role on a guild, returns boolean", unwrap: true, output: ArgType.Boolean, args: [ @@ -25,19 +24,19 @@ export default new NativeFunction({ required: true, }, { - name: "role name", + name: "name", description: "The new role name, leave empty to not modify", rest: false, type: ArgType.String, }, { - name: "role color", + name: "color", description: "The new role color, leave empty to not modify", rest: false, type: ArgType.String, }, { - name: "role icon", + name: "icon", description: "The new role icon, leave empty to not modify", rest: false, type: ArgType.String, @@ -63,17 +62,16 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [, role, name, color, icon, hoist, mentionable, perms]) { - return this.success( - !!(await role - .edit({ - color: (color as ColorResolvable) || undefined, - hoist: hoist || undefined, - icon: icon || undefined, - mentionable: mentionable || undefined, - name: name || undefined, - permissions: perms || undefined, - }) - .catch(ctx.noop)) - ) + const edit = await role.edit({ + colors: !color ? undefined : { primaryColor: color as ColorResolvable }, + hoist: hoist || undefined, + icon: icon || undefined, + mentionable: mentionable || undefined, + name: name || undefined, + permissions: perms || undefined, + reason: ctx.reason + }).catch(ctx.noop) + + return this.success(!!edit) }, -}) +}) \ No newline at end of file diff --git a/src/native/role/editRoleColors.ts b/src/native/role/editRoleColors.ts new file mode 100644 index 0000000000..4a637840b2 --- /dev/null +++ b/src/native/role/editRoleColors.ts @@ -0,0 +1,54 @@ +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$editRoleColors", + version: "2.5.0", + description: "Edits a role's colors, returns boolean", + aliases: ["$editRoleColor"], + unwrap: true, + brackets: true, + args: [ + { + name: "guild ID", + description: "The guild to pull the role from", + rest: false, + required: true, + type: ArgType.Guild, + }, + { + name: "role ID", + type: ArgType.Role, + description: "The role to edit colors for", + rest: false, + required: true, + pointer: 0, + }, + { + name: "primary", + description: "The new primary color", + rest: false, + type: ArgType.Color, + required: true, + }, + { + name: "secondary", + description: "The new secondary color", + rest: false, + type: ArgType.Color, + }, + { + name: "tertiary", + description: "The new tertiary color", + rest: false, + type: ArgType.Color, + }, + ], + output: ArgType.Boolean, + async execute(ctx, [, role, primary, secondary, tertiary]) { + return this.success(!!(await role.setColors({ + primaryColor: primary, + secondaryColor: secondary || undefined, + tertiaryColor: tertiary || undefined + }, ctx.reason).catch(ctx.noop))) + }, +}) \ No newline at end of file diff --git a/src/native/role/editRoleIcon.ts b/src/native/role/editRoleIcon.ts index 69272d0ed1..5b6bf3564c 100644 --- a/src/native/role/editRoleIcon.ts +++ b/src/native/role/editRoleIcon.ts @@ -31,6 +31,6 @@ export default new NativeFunction({ }, ], async execute(ctx, [, role, url]) { - return this.success(!!(await role.setIcon(url).catch(ctx.noop))) + return this.success(!!(await role.setIcon(url, ctx.reason).catch(ctx.noop))) }, }) diff --git a/src/native/role/editRoleName.ts b/src/native/role/editRoleName.ts index 9929fea808..d62308fe99 100644 --- a/src/native/role/editRoleName.ts +++ b/src/native/role/editRoleName.ts @@ -1,4 +1,3 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ @@ -33,6 +32,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [, role, name]) { - return this.success(!!(await role.setName(name).catch(ctx.noop))) + return this.success(!!(await role.setName(name, ctx.reason).catch(ctx.noop))) }, }) diff --git a/src/native/role/editRolePerms.ts b/src/native/role/editRolePerms.ts index f61e4f3405..8b40c3f925 100644 --- a/src/native/role/editRolePerms.ts +++ b/src/native/role/editRolePerms.ts @@ -32,6 +32,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [, role, perms]) { - return this.success(!!(await role.setPermissions(perms).catch(ctx.noop))) + return this.success(!!(await role.setPermissions(perms, ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/role/editRolePosition.ts b/src/native/role/editRolePosition.ts index e0e7c30a25..58f7e756a2 100644 --- a/src/native/role/editRolePosition.ts +++ b/src/native/role/editRolePosition.ts @@ -1,4 +1,3 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ @@ -33,6 +32,6 @@ export default new NativeFunction({ }, ], async execute(ctx, [, role, pos]) { - return this.success(!!(await role.setPosition(pos).catch(ctx.noop))) + return this.success(!!(await role.setPosition(pos, { reason: ctx.reason }).catch(ctx.noop))) }, }) diff --git a/src/native/role/editRoleUnicodeEmoji.ts b/src/native/role/editRoleUnicodeEmoji.ts index 882b7e9243..d8ab46d494 100644 --- a/src/native/role/editRoleUnicodeEmoji.ts +++ b/src/native/role/editRoleUnicodeEmoji.ts @@ -31,6 +31,6 @@ export default new NativeFunction({ ], brackets: true, async execute(ctx, [, role, emoji]) { - return this.success(!!(await role.setUnicodeEmoji(emoji).catch(ctx.noop))) + return this.success(!!(await role.setUnicodeEmoji(emoji, ctx.reason).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/role/randomRoleID.ts b/src/native/role/randomRoleID.ts index ebd66bf7d9..5ca0b39a22 100644 --- a/src/native/role/randomRoleID.ts +++ b/src/native/role/randomRoleID.ts @@ -9,7 +9,7 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild to get the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, diff --git a/src/native/role/roleColor.ts b/src/native/role/roleColor.ts index 9283117dd9..ceda0515c0 100644 --- a/src/native/role/roleColor.ts +++ b/src/native/role/roleColor.ts @@ -1,30 +1,45 @@ +import { int2hex } from "../../functions/hex" import { ArgType, NativeFunction, Return } from "../../structures" +export enum RoleColor { + Primary = "primaryColor", + Secondary = "secondaryColor", + Tertiary = "tertiaryColor" +} + export default new NativeFunction({ name: "$roleColor", version: "1.0.0", - description: "Returns the role color", + description: "Returns the color of a role", brackets: false, unwrap: true, output: ArgType.Color, args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its color", + description: "The role to return its color", rest: false, type: ArgType.Role, pointer: 0, required: true, }, + { + name: "color", + description: "The role color to return", + rest: false, + type: ArgType.Enum, + enum: RoleColor + }, ], - execute(ctx, [, role]) { - return this.success((role ?? ctx.role)?.hexColor) + execute(ctx, [, role, color]) { + const int = (role ?? ctx.role)?.colors[color || RoleColor.Primary] + return this.success(int ? "#" + int2hex(int) : null) }, -}) +}) \ No newline at end of file diff --git a/src/native/role/roleCreatedAt.ts b/src/native/role/roleCreatedAt.ts index ade31a3d07..20f75d2a6d 100644 --- a/src/native/role/roleCreatedAt.ts +++ b/src/native/role/roleCreatedAt.ts @@ -10,14 +10,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its creation date", + description: "The role to return its creation date", rest: false, type: ArgType.Role, pointer: 0, diff --git a/src/native/role/roleEditable.ts b/src/native/role/roleEditable.ts index f32e88170c..abf2a31ce2 100644 --- a/src/native/role/roleEditable.ts +++ b/src/native/role/roleEditable.ts @@ -10,14 +10,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its editable state", + description: "The role to return its editable state", rest: false, type: ArgType.Role, pointer: 0, diff --git a/src/native/role/roleExists.ts b/src/native/role/roleExists.ts index f326205b24..a12884428c 100644 --- a/src/native/role/roleExists.ts +++ b/src/native/role/roleExists.ts @@ -10,7 +10,7 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild to check for the role", + description: "The guild to pull the role from", type: ArgType.Guild, rest: false, required: true, diff --git a/src/native/role/roleFlags.ts b/src/native/role/roleFlags.ts index 5e65fe2926..71112d7cf0 100644 --- a/src/native/role/roleFlags.ts +++ b/src/native/role/roleFlags.ts @@ -12,14 +12,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its flags", + description: "The role to return its flags", rest: false, type: ArgType.Role, pointer: 0, diff --git a/src/native/role/roleHoisted.ts b/src/native/role/roleHoisted.ts index cc274bb4ee..4fea435589 100644 --- a/src/native/role/roleHoisted.ts +++ b/src/native/role/roleHoisted.ts @@ -10,14 +10,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its hoisted state", + description: "The role to return its hoisted state", rest: false, type: ArgType.Role, pointer: 0, diff --git a/src/native/role/roleID.ts b/src/native/role/roleID.ts index be1fa20fd7..37f2bbd461 100644 --- a/src/native/role/roleID.ts +++ b/src/native/role/roleID.ts @@ -10,7 +10,7 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, diff --git a/src/native/role/roleIntColor.ts b/src/native/role/roleIntColor.ts index 9efc89ff79..3c4cdf4a03 100644 --- a/src/native/role/roleIntColor.ts +++ b/src/native/role/roleIntColor.ts @@ -1,4 +1,5 @@ import { ArgType, NativeFunction, Return } from "../../structures" +import { RoleColor } from "./roleColor" export default new NativeFunction({ name: "$roleIntColor", @@ -10,21 +11,28 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its color", + description: "The role to return its color", rest: false, type: ArgType.Role, pointer: 0, required: true, }, + { + name: "color", + description: "The role color to return", + rest: false, + type: ArgType.Enum, + enum: RoleColor + }, ], - execute(ctx, [, role]) { - return this.success((role ?? ctx.role)?.color) + execute(ctx, [, role, color]) { + return this.success((role ?? ctx.role)?.colors[color || RoleColor.Primary]) }, -}) +}) \ No newline at end of file diff --git a/src/native/role/roleManageable.ts b/src/native/role/roleManageable.ts index c5bccb0991..a3f8d15356 100644 --- a/src/native/role/roleManageable.ts +++ b/src/native/role/roleManageable.ts @@ -10,14 +10,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its managed state", + description: "The role to return its managed state", rest: false, type: ArgType.Role, pointer: 0, diff --git a/src/native/role/roleMembers.ts b/src/native/role/roleMembers.ts index 20e86c8e13..da3b51623a 100644 --- a/src/native/role/roleMembers.ts +++ b/src/native/role/roleMembers.ts @@ -11,14 +11,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its members", + description: "The role to return its members", rest: false, type: ArgType.Role, pointer: 0, diff --git a/src/native/role/roleMentionable.ts b/src/native/role/roleMentionable.ts index 3f0dabf671..cea33307c1 100644 --- a/src/native/role/roleMentionable.ts +++ b/src/native/role/roleMentionable.ts @@ -10,14 +10,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its mentionable state", + description: "The role to return its mentionable state", rest: false, type: ArgType.Role, pointer: 0, diff --git a/src/native/role/roleName.ts b/src/native/role/roleName.ts index e35524b406..3b5dd19075 100644 --- a/src/native/role/roleName.ts +++ b/src/native/role/roleName.ts @@ -10,7 +10,7 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, diff --git a/src/native/role/rolePerms.ts b/src/native/role/rolePerms.ts index 3d7679965e..0d18deed6d 100644 --- a/src/native/role/rolePerms.ts +++ b/src/native/role/rolePerms.ts @@ -12,14 +12,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its perms", + description: "The role to return its perms", rest: false, type: ArgType.Role, pointer: 0, @@ -32,8 +32,15 @@ export default new NativeFunction({ required: false, rest: false, }, + { + name: "return int", + description: "Whether to return the perms as bitfield int", + type: ArgType.Boolean, + rest: false, + }, ], - execute(ctx, [, role, sep]) { - return this.success((role ?? ctx.role)?.permissions.toArray().join(sep || ", ")) + execute(ctx, [, role, sep, int]) { + const perms = (role ?? ctx.role)?.permissions + return this.success(int ? perms?.bitfield : perms?.toArray().join(sep ?? ", ")) }, -}) +}) \ No newline at end of file diff --git a/src/native/role/rolePosition.ts b/src/native/role/rolePosition.ts index cc7ca40b8e..e088a5e60b 100644 --- a/src/native/role/rolePosition.ts +++ b/src/native/role/rolePosition.ts @@ -10,14 +10,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its position", + description: "The role to return its position", rest: false, type: ArgType.Role, pointer: 0, diff --git a/src/native/role/roleRawData.ts b/src/native/role/roleRawData.ts index 6b2d5a62ab..b8d853255b 100644 --- a/src/native/role/roleRawData.ts +++ b/src/native/role/roleRawData.ts @@ -9,7 +9,7 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild to get role from", + description: "The guild to pull role from", rest: false, type: ArgType.Guild, required: true, diff --git a/src/native/role/roleRawPosition.ts b/src/native/role/roleRawPosition.ts index afcb716cc0..52f1ba3e0a 100644 --- a/src/native/role/roleRawPosition.ts +++ b/src/native/role/roleRawPosition.ts @@ -10,14 +10,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its raw position", + description: "The role to return its raw position", rest: false, type: ArgType.Role, pointer: 0, diff --git a/src/native/role/roleTags.ts b/src/native/role/roleTags.ts index 961fefb63a..3f90b81ffd 100644 --- a/src/native/role/roleTags.ts +++ b/src/native/role/roleTags.ts @@ -11,14 +11,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its perms", + description: "The role to return its perms", rest: false, type: ArgType.Role, pointer: 0, diff --git a/src/native/role/roleUnicodeEmoji.ts b/src/native/role/roleUnicodeEmoji.ts index a124285ea3..9d409c7e5f 100644 --- a/src/native/role/roleUnicodeEmoji.ts +++ b/src/native/role/roleUnicodeEmoji.ts @@ -10,14 +10,14 @@ export default new NativeFunction({ args: [ { name: "guild ID", - description: "The guild id to return the role from", + description: "The guild to pull the role from", rest: false, type: ArgType.Guild, required: true, }, { name: "role ID", - description: "The role id return its unicode emote", + description: "The role to return its unicode emote", rest: false, type: ArgType.Role, pointer: 0, diff --git a/src/native/soundboard/createSoundboardSound.ts b/src/native/soundboard/createSoundboardSound.ts index daf50cb46b..9302cb705a 100644 --- a/src/native/soundboard/createSoundboardSound.ts +++ b/src/native/soundboard/createSoundboardSound.ts @@ -66,7 +66,7 @@ export default new NativeFunction({ emojiId: parsed?.id || undefined, emojiName: parsed?.id ? undefined : parsed?.name || undefined, volume: typeof(volume) === "number" ? volume : undefined, - reason: reason || undefined + reason: reason || ctx.reason }).catch(ctx.noop) return this.success(sound?.soundId) diff --git a/src/native/soundboard/deleteSoundboardSounds.ts b/src/native/soundboard/deleteSoundboardSounds.ts index df747f54e5..fc249fdadc 100644 --- a/src/native/soundboard/deleteSoundboardSounds.ts +++ b/src/native/soundboard/deleteSoundboardSounds.ts @@ -29,7 +29,7 @@ export default new NativeFunction({ let count = 0 for (let i = 0, len = sounds.length; i < len; i++) { const sound = sounds[i] - const success = await sound.delete().then(x => true).catch(ctx.noop) + const success = await sound.delete(ctx.reason).then(x => true).catch(ctx.noop) if (success) count++ } diff --git a/src/native/soundboard/editSoundboardSound.ts b/src/native/soundboard/editSoundboardSound.ts index cd3cc0b02d..5e74f9da6b 100644 --- a/src/native/soundboard/editSoundboardSound.ts +++ b/src/native/soundboard/editSoundboardSound.ts @@ -58,7 +58,7 @@ export default new NativeFunction({ emojiId: parsed?.id || value, emojiName: parsed?.id ? null : parsed?.name || value, volume: typeof(volume) === "number" ? volume : undefined, - reason: reason || undefined + reason: reason || ctx.reason }).catch(ctx.noop))) }, }) \ No newline at end of file diff --git a/src/native/state/auditLog.ts b/src/native/state/auditLog.ts index 045098ecb3..125fb35681 100644 --- a/src/native/state/auditLog.ts +++ b/src/native/state/auditLog.ts @@ -1,5 +1,4 @@ import { AuditProperties, AuditProperty } from "../../properties/audit" -import { RoleProperties, RoleProperty } from "../../properties/role" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ diff --git a/src/native/state/bulk.ts b/src/native/state/bulk.ts index 9323eb5453..c5a8ce5551 100644 --- a/src/native/state/bulk.ts +++ b/src/native/state/bulk.ts @@ -1,6 +1,4 @@ -import { AuditProperties, AuditProperty } from "../../properties/audit" import { BulkProperties, BulkProperty } from "../../properties/bulk" -import { RoleProperties, RoleProperty } from "../../properties/role" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ diff --git a/src/native/state/newAutomodRule.ts b/src/native/state/newAutomodRule.ts index 622bc679b8..71653d2ac7 100644 --- a/src/native/state/newAutomodRule.ts +++ b/src/native/state/newAutomodRule.ts @@ -25,6 +25,6 @@ export default new NativeFunction({ }, ], execute(ctx, [prop, sep]) { - return this.successJSON(AutomodRuleProperties[prop](ctx.states?.automodRule?.new, sep)) + return this.success(AutomodRuleProperties[prop](ctx.states?.automodRule?.new, sep)) }, }) \ No newline at end of file diff --git a/src/native/state/newEntitlement.ts b/src/native/state/newEntitlement.ts index 7b70fd3166..4eb26cb17f 100644 --- a/src/native/state/newEntitlement.ts +++ b/src/native/state/newEntitlement.ts @@ -1,5 +1,4 @@ import { EntitlementProperties, EntitlementProperty } from "../../properties/entitlement" -import { VoiceStateProperties, VoiceStateProperty } from "../../properties/voiceState" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ diff --git a/src/native/state/newPresence.ts b/src/native/state/newPresence.ts index feb2d553cd..7deb8ef002 100644 --- a/src/native/state/newPresence.ts +++ b/src/native/state/newPresence.ts @@ -1,5 +1,4 @@ import { PresenceProperties, PresenceProperty } from "../../properties/presence" -import { RoleProperties, RoleProperty } from "../../properties/role" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ diff --git a/src/native/state/newScheduledEvent.ts b/src/native/state/newScheduledEvent.ts index 6ac761d418..f0b8130524 100644 --- a/src/native/state/newScheduledEvent.ts +++ b/src/native/state/newScheduledEvent.ts @@ -1,4 +1,3 @@ -import { MemberProperties, MemberProperty } from "../../properties/member" import { ScheduledEventProperties, ScheduledEventProperty } from "../../properties/scheduledEvent" import { ArgType, NativeFunction, Return } from "../../structures" diff --git a/src/native/state/newStage.ts b/src/native/state/newStage.ts index cd63c24d7d..0d62099649 100644 --- a/src/native/state/newStage.ts +++ b/src/native/state/newStage.ts @@ -1,4 +1,3 @@ -import { MemberProperties, MemberProperty } from "../../properties/member" import { StageProperties, StageProperty } from "../../properties/stage" import { ArgType, NativeFunction, Return } from "../../structures" diff --git a/src/native/state/newSticker.ts b/src/native/state/newSticker.ts index 81182de08a..3e729fd120 100644 --- a/src/native/state/newSticker.ts +++ b/src/native/state/newSticker.ts @@ -1,4 +1,3 @@ -import { EmojiProperties, EmojiProperty } from "../../properties/emoji" import { StickerProperties, StickerProperty } from "../../properties/sticker" import { ArgType, NativeFunction, Return } from "../../structures" diff --git a/src/native/state/newSubscription.ts b/src/native/state/newSubscription.ts new file mode 100644 index 0000000000..17b8c2723c --- /dev/null +++ b/src/native/state/newSubscription.ts @@ -0,0 +1,30 @@ +import { SubscriptionProperties, SubscriptionProperty } from "../../properties/subscription" +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$newSubscription", + version: "2.5.0", + description: "Retrieves new data from an event whose context was a subscription instance", + brackets: true, + unwrap: true, + args: [ + { + name: "property", + description: "The property to pull", + rest: false, + type: ArgType.Enum, + enum: SubscriptionProperty, + required: true, + }, + { + name: "separator", + description: "The separator to use in case of array", + rest: false, + type: ArgType.String, + }, + ], + output: ArgType.Unknown, + execute(ctx, [prop, sep]) { + return this.success(SubscriptionProperties[prop](ctx.states?.subscription?.new, sep)) + }, +}) \ No newline at end of file diff --git a/src/native/state/oldAutomodRule.ts b/src/native/state/oldAutomodRule.ts index c8f87b5ef1..a120c30814 100644 --- a/src/native/state/oldAutomodRule.ts +++ b/src/native/state/oldAutomodRule.ts @@ -25,6 +25,6 @@ export default new NativeFunction({ }, ], execute(ctx, [prop, sep]) { - return this.successJSON(AutomodRuleProperties[prop](ctx.states?.automodRule?.old, sep)) + return this.success(AutomodRuleProperties[prop](ctx.states?.automodRule?.old, sep)) }, }) \ No newline at end of file diff --git a/src/native/state/oldEntitlement.ts b/src/native/state/oldEntitlement.ts index 5564f3751a..b5231af66a 100644 --- a/src/native/state/oldEntitlement.ts +++ b/src/native/state/oldEntitlement.ts @@ -1,5 +1,4 @@ import { EntitlementProperties, EntitlementProperty } from "../../properties/entitlement" -import { VoiceStateProperties, VoiceStateProperty } from "../../properties/voiceState" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ diff --git a/src/native/state/oldPresence.ts b/src/native/state/oldPresence.ts index 8351259596..12653e2c28 100644 --- a/src/native/state/oldPresence.ts +++ b/src/native/state/oldPresence.ts @@ -1,5 +1,4 @@ import { PresenceProperties, PresenceProperty } from "../../properties/presence" -import { RoleProperties, RoleProperty } from "../../properties/role" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ diff --git a/src/native/state/oldScheduledEvent.ts b/src/native/state/oldScheduledEvent.ts index 8d5f679cfd..e03259e453 100644 --- a/src/native/state/oldScheduledEvent.ts +++ b/src/native/state/oldScheduledEvent.ts @@ -1,4 +1,3 @@ -import { MemberProperties, MemberProperty } from "../../properties/member" import { ScheduledEventProperties, ScheduledEventProperty } from "../../properties/scheduledEvent" import { ArgType, NativeFunction, Return } from "../../structures" diff --git a/src/native/state/oldStage.ts b/src/native/state/oldStage.ts index 8ee0b26ba6..d53ddb4d7c 100644 --- a/src/native/state/oldStage.ts +++ b/src/native/state/oldStage.ts @@ -1,4 +1,3 @@ -import { MemberProperties, MemberProperty } from "../../properties/member" import { StageProperties, StageProperty } from "../../properties/stage" import { ArgType, NativeFunction, Return } from "../../structures" diff --git a/src/native/state/oldSticker.ts b/src/native/state/oldSticker.ts index e1bd439807..ad7ec609c4 100644 --- a/src/native/state/oldSticker.ts +++ b/src/native/state/oldSticker.ts @@ -1,4 +1,3 @@ -import { EmojiProperties, EmojiProperty } from "../../properties/emoji" import { StickerProperties, StickerProperty } from "../../properties/sticker" import { ArgType, NativeFunction, Return } from "../../structures" diff --git a/src/native/state/oldSubscription.ts b/src/native/state/oldSubscription.ts new file mode 100644 index 0000000000..3c258191a2 --- /dev/null +++ b/src/native/state/oldSubscription.ts @@ -0,0 +1,30 @@ +import { SubscriptionProperties, SubscriptionProperty } from "../../properties/subscription" +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$oldSubscription", + version: "2.5.0", + description: "Retrieves old data from an event whose context was a subscription instance", + brackets: true, + unwrap: true, + args: [ + { + name: "property", + description: "The property to pull", + rest: false, + type: ArgType.Enum, + enum: SubscriptionProperty, + required: true, + }, + { + name: "separator", + description: "The separator to use in case of array", + rest: false, + type: ArgType.String, + }, + ], + output: ArgType.Unknown, + execute(ctx, [prop, sep]) { + return this.success(SubscriptionProperties[prop](ctx.states?.subscription?.old, sep)) + }, +}) \ No newline at end of file diff --git a/src/native/statement/async.ts b/src/native/statement/async.ts index 4f041f4e03..c0c1c3ade9 100644 --- a/src/native/statement/async.ts +++ b/src/native/statement/async.ts @@ -17,7 +17,7 @@ export default new NativeFunction({ ], experimental: true, execute(ctx) { - void this["resolveArgs"](ctx) + void this["resolveArgs"](ctx).catch(() => {}) return this.success() }, }) diff --git a/src/native/sticker/addSticker.ts b/src/native/sticker/addSticker.ts index 84d867dd66..73809975b8 100644 --- a/src/native/sticker/addSticker.ts +++ b/src/native/sticker/addSticker.ts @@ -1,4 +1,3 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ @@ -51,6 +50,7 @@ export default new NativeFunction({ name, tags, description: desc || null, + reason: ctx.reason }) .catch(ctx.noop) return this.success(created?.id) diff --git a/src/native/sticker/deleteStickers.ts b/src/native/sticker/deleteStickers.ts index 6311b4ae70..ab96be1679 100644 --- a/src/native/sticker/deleteStickers.ts +++ b/src/native/sticker/deleteStickers.ts @@ -1,5 +1,4 @@ import { ArgType, NativeFunction, Return } from "../../structures" -import noop from "../../functions/noop" export default new NativeFunction({ name: "$deleteStickers", @@ -29,7 +28,7 @@ export default new NativeFunction({ let count = 0 for (let i = 0, len = stickers.length; i < len; i++) { const sticker = stickers[i] - const success = await g.stickers.delete(sticker).then(x => true).catch(ctx.noop) + const success = await g.stickers.delete(sticker, ctx.reason).then(x => true).catch(ctx.noop) if (success) count++ } diff --git a/src/native/sticker/editSticker.ts b/src/native/sticker/editSticker.ts index 33a6e88d6b..344322d3ca 100644 --- a/src/native/sticker/editSticker.ts +++ b/src/native/sticker/editSticker.ts @@ -1,10 +1,9 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction } from "../../structures" export default new NativeFunction({ name: "$editSticker", version: "1.4.0", - description: "Edits a sticker's data", + description: "Edits a sticker on a guild, returns bool", brackets: true, unwrap: true, args: [ @@ -40,7 +39,8 @@ export default new NativeFunction({ !!(await s.edit({ name: name || undefined, description: desc || undefined, - tags: tags.join(" ") || undefined + tags: tags.join(" ") || undefined, + reason: ctx.reason }).catch(ctx.noop)) ) }, diff --git a/src/native/sticker/setStickerDescription.ts b/src/native/sticker/setStickerDescription.ts index 90d19137f7..6c443c81c0 100644 --- a/src/native/sticker/setStickerDescription.ts +++ b/src/native/sticker/setStickerDescription.ts @@ -1,10 +1,9 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction } from "../../structures" export default new NativeFunction({ name: "$setStickerDescription", version: "1.4.0", - description: "Sets a sticker's description", + description: "Sets a sticker's description, returns bool", brackets: true, unwrap: true, args: [ @@ -27,7 +26,8 @@ export default new NativeFunction({ async execute(ctx, [ s, n ]) { return this.success( !!(await s.edit({ - description: n + description: n, + reason: ctx.reason }).catch(ctx.noop)) ) }, diff --git a/src/native/sticker/setStickerName.ts b/src/native/sticker/setStickerName.ts index 8e2c7908c4..9448bdaf73 100644 --- a/src/native/sticker/setStickerName.ts +++ b/src/native/sticker/setStickerName.ts @@ -1,10 +1,9 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction } from "../../structures" export default new NativeFunction({ name: "$setStickerName", version: "1.4.0", - description: "Sets a sticker's name", + description: "Sets a sticker's name, returns bool", brackets: true, unwrap: true, args: [ @@ -27,7 +26,8 @@ export default new NativeFunction({ async execute(ctx, [ s, n ]) { return this.success( !!(await s.edit({ - name: n + name: n, + reason: ctx.reason }).catch(ctx.noop)) ) }, diff --git a/src/native/sticker/setStickerTags.ts b/src/native/sticker/setStickerTags.ts index 0e46765e4c..cffb17ff09 100644 --- a/src/native/sticker/setStickerTags.ts +++ b/src/native/sticker/setStickerTags.ts @@ -1,10 +1,9 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction } from "../../structures" export default new NativeFunction({ name: "$setStickerTags", version: "1.4.0", - description: "Sets a sticker's tags", + description: "Sets a sticker's tags, returns bool", brackets: true, unwrap: true, args: [ @@ -27,7 +26,8 @@ export default new NativeFunction({ async execute(ctx, [ s, n ]) { return this.success( !!(await s.edit({ - tags: n.join(" ") + tags: n.join(" "), + reason: ctx.reason }).catch(ctx.noop)) ) }, diff --git a/src/native/sticker/stickerAvailable.ts b/src/native/sticker/stickerAvailable.ts index ee918fde8a..01cd247143 100644 --- a/src/native/sticker/stickerAvailable.ts +++ b/src/native/sticker/stickerAvailable.ts @@ -1,4 +1,3 @@ -import { StickerFormatType } from "discord.js" import { ArgType, NativeFunction } from "../../structures" export default new NativeFunction({ diff --git a/src/native/sticker/stickerOwnerID.ts b/src/native/sticker/stickerOwnerID.ts index 16f95cb8fc..d20dc7ca18 100644 --- a/src/native/sticker/stickerOwnerID.ts +++ b/src/native/sticker/stickerOwnerID.ts @@ -1,4 +1,3 @@ -import noop from "../../functions/noop" import { ArgType, NativeFunction } from "../../structures" export default new NativeFunction({ diff --git a/src/native/sticker/stickerType.ts b/src/native/sticker/stickerType.ts index 1a167065f2..cddbe5e652 100644 --- a/src/native/sticker/stickerType.ts +++ b/src/native/sticker/stickerType.ts @@ -1,4 +1,4 @@ -import { StickerFormatType, StickerType } from "discord.js" +import { StickerType } from "discord.js" import { ArgType, NativeFunction } from "../../structures" export default new NativeFunction({ diff --git a/src/native/time/hour.ts b/src/native/time/hour.ts index 704b3218d4..741311ea31 100644 --- a/src/native/time/hour.ts +++ b/src/native/time/hour.ts @@ -22,7 +22,7 @@ export default new NativeFunction({ ], output: ArgType.Number, execute: async function(ctx, [format]) { - format ??= BasicTimeFormat.Numeric + format ||= BasicTimeFormat.Numeric const hour = new Date().toLocaleString("en-US", { hour: format, hour12: false, timeZone: ctx.timezone, calendar: ctx.calendar }) return this.success(format === BasicTimeFormat.Numeric ? parseInt(hour, 10).toString() : hour) } diff --git a/src/native/time/minute.ts b/src/native/time/minute.ts index 0d14547c85..bb86fdf2c1 100644 --- a/src/native/time/minute.ts +++ b/src/native/time/minute.ts @@ -18,7 +18,7 @@ export default new NativeFunction({ ], output: ArgType.Number, execute: async function(ctx, [format]) { - format ??= BasicTimeFormat.Numeric + format ||= BasicTimeFormat.Numeric const minute = new Date().toLocaleString("en-US", { minute: format, timeZone: ctx.timezone, calendar: ctx.calendar }) return this.success(format === BasicTimeFormat.TwoDigit ? minute.padStart(2, "0") : minute) } diff --git a/src/native/time/second.ts b/src/native/time/second.ts index 73b251d617..3115c381c6 100644 --- a/src/native/time/second.ts +++ b/src/native/time/second.ts @@ -18,7 +18,7 @@ export default new NativeFunction({ ], output: ArgType.Number, execute: async function(ctx, [format]) { - format ??= BasicTimeFormat.Numeric + format ||= BasicTimeFormat.Numeric const second = new Date().toLocaleString("en-US", { second: format, timeZone: ctx.timezone, calendar: ctx.calendar }) return this.success(format === BasicTimeFormat.TwoDigit ? second.padStart(2, "0") : second) } diff --git a/src/native/time/setInterval.ts b/src/native/time/setInterval.ts index d6280ef3ed..ab40c3791d 100644 --- a/src/native/time/setInterval.ts +++ b/src/native/time/setInterval.ts @@ -36,8 +36,9 @@ export default new NativeFunction({ const name: Return = await this["resolveUnhandledArg"](ctx, 2) if (!this["isValidReturnType"](name)) return name + const c = ctx.clone(ctx.cloneRuntime()) const data = setInterval(async () => { - await this["resolveCode"](ctx, code) + await this["resolveCode"](c, code) }, time.value as number) if (name.value) ctx.client.intervals.set(name.value as string, data) diff --git a/src/native/time/setTimeout.ts b/src/native/time/setTimeout.ts index 9e5a7bdc2e..4bd9a8540f 100644 --- a/src/native/time/setTimeout.ts +++ b/src/native/time/setTimeout.ts @@ -36,8 +36,9 @@ export default new NativeFunction({ const name: Return = await this["resolveUnhandledArg"](ctx, 2) if (!this["isValidReturnType"](name)) return name + const c = ctx.clone(ctx.cloneRuntime()) const data = setTimeout(async () => { - await this["resolveCode"](ctx, code) + await this["resolveCode"](c, code) if (name.value) ctx.client.timeouts.delete(name.value as string) }, time.value as number) diff --git a/src/native/unsafe/eval.ts b/src/native/unsafe/eval.ts index 8df9107169..cfd6835260 100644 --- a/src/native/unsafe/eval.ts +++ b/src/native/unsafe/eval.ts @@ -27,7 +27,7 @@ export default new NativeFunction({ send ??= true try { const result = await Interpreter.run({ - ...ctx.runtime, + ...ctx.cloneRuntime(), data: Compiler.compile(code), doNotSend: !send, }) diff --git a/src/native/user/userGuildBadge.ts b/src/native/user/userGuildBadge.ts new file mode 100644 index 0000000000..3f33aa87e8 --- /dev/null +++ b/src/native/user/userGuildBadge.ts @@ -0,0 +1,38 @@ +import { ImageExtension, ImageSize } from "discord.js" +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$userGuildBadge", + version: "2.5.0", + description: "Returns the primary guild tag badge of a user", + unwrap: true, + brackets: false, + args: [ + { + name: "user ID", + description: "The user to get its primary guild", + required: true, + rest: false, + type: ArgType.User, + }, + { + name: "size", + description: "The size to use for the image", + rest: false, + type: ArgType.Number, + }, + { + name: "extension", + description: "The extension to use for the image", + rest: false, + type: ArgType.String, + }, + ], + output: ArgType.URL, + execute(ctx, [user, size, ext]) { + return this.success((user ?? ctx.user)?.guildTagBadgeURL({ + extension: (ext as ImageExtension) || undefined, + size: (size as ImageSize) || undefined, + })) + }, +}) \ No newline at end of file diff --git a/src/native/user/userGuildEnabled.ts b/src/native/user/userGuildEnabled.ts new file mode 100644 index 0000000000..56279dc1e7 --- /dev/null +++ b/src/native/user/userGuildEnabled.ts @@ -0,0 +1,22 @@ +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$userGuildEnabled", + version: "2.5.0", + description: "Returns whether the primary guild of a user is enabled", + unwrap: true, + brackets: false, + args: [ + { + name: "user ID", + description: "The user to get its primary guild", + required: true, + rest: false, + type: ArgType.User, + }, + ], + output: ArgType.Boolean, + execute(ctx, [user]) { + return this.success((user ?? ctx.user)?.primaryGuild?.identityEnabled) + }, +}) \ No newline at end of file diff --git a/src/native/user/userGuildID.ts b/src/native/user/userGuildID.ts new file mode 100644 index 0000000000..027b1fab7c --- /dev/null +++ b/src/native/user/userGuildID.ts @@ -0,0 +1,22 @@ +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$userGuildID", + version: "2.5.0", + description: "Returns the primary guild id of a user", + unwrap: true, + brackets: false, + args: [ + { + name: "user ID", + description: "The user to get its primary guild", + required: true, + rest: false, + type: ArgType.User, + }, + ], + output: ArgType.Guild, + execute(ctx, [user]) { + return this.success((user ?? ctx.user)?.primaryGuild?.identityGuildId) + }, +}) \ No newline at end of file diff --git a/src/native/user/userGuildTag.ts b/src/native/user/userGuildTag.ts new file mode 100644 index 0000000000..0f64e55355 --- /dev/null +++ b/src/native/user/userGuildTag.ts @@ -0,0 +1,22 @@ +import { ArgType, NativeFunction, Return } from "../../structures" + +export default new NativeFunction({ + name: "$userGuildTag", + version: "2.5.0", + description: "Returns the primary guild tag name of a user", + unwrap: true, + brackets: false, + args: [ + { + name: "user ID", + description: "The user to get its primary guild", + required: true, + rest: false, + type: ArgType.User, + }, + ], + output: ArgType.String, + execute(ctx, [user]) { + return this.success((user ?? ctx.user)?.primaryGuild?.tag) + }, +}) \ No newline at end of file diff --git a/src/native/webhook/webhookCreate.ts b/src/native/webhook/webhookCreate.ts index dbbabfc676..4c5a9e5a1a 100644 --- a/src/native/webhook/webhookCreate.ts +++ b/src/native/webhook/webhookCreate.ts @@ -37,6 +37,7 @@ export default new NativeFunction({ .createWebhook({ name: name, avatar: url || undefined, + reason: ctx.reason }) .catch(ctx.noop) diff --git a/src/native/webhook/webhookDelete.ts b/src/native/webhook/webhookDelete.ts index 8b85b04011..458e59e5e6 100644 --- a/src/native/webhook/webhookDelete.ts +++ b/src/native/webhook/webhookDelete.ts @@ -16,7 +16,7 @@ export default new NativeFunction({ }, ], async execute(ctx, [web]) { - await web.delete().catch(ctx.noop) + await web.delete(ctx.reason).catch(ctx.noop) return this.success() }, }) diff --git a/src/native/webhook/webhookEdit.ts b/src/native/webhook/webhookEdit.ts index 766a9089ba..42b4753d21 100644 --- a/src/native/webhook/webhookEdit.ts +++ b/src/native/webhook/webhookEdit.ts @@ -3,7 +3,7 @@ import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ name: "$webhookEdit", version: "1.0.0", - description: "Edits webhook with given id", + description: "Edits webhook with given id, returns bool", brackets: true, unwrap: true, output: ArgType.Boolean, @@ -33,6 +33,7 @@ export default new NativeFunction({ .edit({ avatar: avatar || undefined, name: name || undefined, + reason: ctx.reason }) .catch(ctx.noop) diff --git a/src/properties/bulk.ts b/src/properties/bulk.ts index 1f451e627f..730e799e6e 100644 --- a/src/properties/bulk.ts +++ b/src/properties/bulk.ts @@ -1,17 +1,23 @@ -import { Channel, ChannelType, Collection, GuildMember } from "discord.js" import defineProperties from "../functions/defineProperties" import { IStates } from "../core" +import { Message } from "discord.js" export enum BulkProperty { messages = "messages", contents = "contents", + timestamps = "timestamps", + attachments = "attachments", + stickers = "stickers", users = "users", count = "count" } export const BulkProperties = defineProperties({ messages: (i, sep) => i?.map(x => x.id).join(sep ?? ", "), + timestamps: (i, sep) => i?.map(x => x.createdTimestamp).join(sep ?? ", "), + attachments: (i, sep) => i?.flatMap(x => x.attachments.map(x => x.url)).filter(Boolean).join(sep ?? ", "), + stickers: (i, sep) => i?.flatMap(x => x.stickers.map(x => x.url)).filter(Boolean).join(sep ?? ", "), contents: (i, sep) => i?.map(x => x.content).filter(Boolean).join(sep ?? ", "), users: (i, sep) => i?.map(x => x.author?.id).filter(Boolean).join(sep ?? ", "), count: i => i?.length -}) +}) \ No newline at end of file diff --git a/src/properties/channel.ts b/src/properties/channel.ts index c55720e51a..c3578efbbb 100644 --- a/src/properties/channel.ts +++ b/src/properties/channel.ts @@ -3,12 +3,22 @@ import defineProperties from "../functions/defineProperties" export enum ChannelProperty { id = "id", + name = "name", type = "type", topic = "topic", bitrate = "bitrate", members = "members", - name = "name", timestamp = "timestamp", + nsfw = "nsfw", + flags = "flags", + parentID = "parentID", + position = "position", + rawPosition = "rawPosition", + slowmode = "slowmode", + appliedTags = "appliedTags", + availableTags = "availableTags", + archived = "archived", + locked = "locked", } export const ChannelProperties = defineProperties({ @@ -20,8 +30,18 @@ export const ChannelProperties = defineProperties) .map((x) => x.id) - .join(sep || ", ") + .join(sep ?? ", ") : undefined, topic: (i) => (i && "topic" in i ? i.topic : undefined), type: (i) => ChannelType[i?.type!], -}) + nsfw: (i) => (i && "nsfw" in i ? i.nsfw : undefined), + flags: (i, sep) => i?.flags?.toArray().join(sep ?? ", "), + parentID: (i) => (i && "parentId" in i ? i.parentId : undefined), + position: (i) => (i && "position" in i ? i.position : undefined), + rawPosition: (i) => (i && "rawPosition" in i ? i.rawPosition : undefined), + slowmode: (i) => (i && "rateLimitPerUser" in i ? i.rateLimitPerUser : undefined), + appliedTags: (i, sep) => (i && "appliedTags" in i ? i.appliedTags.join(sep ?? ", ") : undefined), + availableTags: (i, sep) => (i && "availableTags" in i ? i.availableTags.join(sep ?? ", ") : undefined), + archived: (i) => (i && "archived" in i ? i.archived : undefined), + locked: (i) => (i && "locked" in i ? i.locked : undefined), +}) \ No newline at end of file diff --git a/src/properties/entitlement.ts b/src/properties/entitlement.ts index 9387e4b997..806e6364df 100644 --- a/src/properties/entitlement.ts +++ b/src/properties/entitlement.ts @@ -1,4 +1,4 @@ -import { Channel, ChannelType, Collection, Entitlement, EntitlementType, GuildMember } from "discord.js" +import { EntitlementType } from "discord.js" import defineProperties from "../functions/defineProperties" import { IStates } from "../core" diff --git a/src/properties/guild.ts b/src/properties/guild.ts index ddf63ed1cb..0fbb20811c 100644 --- a/src/properties/guild.ts +++ b/src/properties/guild.ts @@ -1,4 +1,4 @@ -import { Guild } from "discord.js" +import { Guild, GuildPreview } from "discord.js" import defineProperties from "../functions/defineProperties" export enum GuildProperty { @@ -21,6 +21,7 @@ export enum GuildProperty { emojis = "emojis", stickers = "stickers", boostLevel = "boostLevel", + discoverySplash = "discoverySplash", approximateMemberCount = "approximateMemberCount", approximatePresenceCount = "approximatePresenceCount", } @@ -47,4 +48,35 @@ export const GuildProperties = defineProperties({ memberCount: (i) => i?.memberCount, maximumMembers: (i) => i?.maximumMembers, approximatePresenceCount: (i) => i?.approximatePresenceCount, + discoverySplash: (i) => i?.discoverySplashURL(), }) + +export enum GuildPreviewProperty { + id = "id", + name = "name", + description = "description", + features = "features", + timestamp = "timestamp", + icon = "icon", + splash = "splash", + emojis = "emojis", + stickers = "stickers", + discoverySplash = "discoverySplash", + approximateMemberCount = "approximateMemberCount", + approximatePresenceCount = "approximatePresenceCount", +} + +export const GuildPreviewProperties = defineProperties({ + description: (i) => i?.description, + features: (i, sep) => i?.features.join(sep || ", "), + id: (i) => i?.id, + name: (i) => i?.name, + icon: (i) => i?.iconURL(), + splash: (i) => i?.splashURL(), + emojis: (i, sep) => i?.emojis.map((x) => x.id).join(sep || ", "), + stickers: (i, sep) => i?.stickers.map((x) => x.id).join(sep || ", "), + timestamp: (i) => i?.createdTimestamp, + approximateMemberCount: (i) => i?.approximateMemberCount, + approximatePresenceCount: (i) => i?.approximatePresenceCount, + discoverySplash: (i) => i?.discoverySplashURL(), +}) \ No newline at end of file diff --git a/src/properties/member.ts b/src/properties/member.ts index 81391aaa5c..dab7534f78 100644 --- a/src/properties/member.ts +++ b/src/properties/member.ts @@ -26,6 +26,7 @@ export enum MemberProperty { boosting = "boosting", boostingSince = "boostingSince", permissions = "permissions", + avatarDecoration = "avatarDecoration", } export const MemberProperties = defineProperties({ @@ -69,4 +70,5 @@ export const MemberProperties = defineProperties Object.keys((i as GuildMember)?.presence?.clientStatus ?? {}).join(sep || ", "), boosting: (i) => (i instanceof GuildMember ? i?.premiumSinceTimestamp : i?.premium_since) != null, boostingSince: (i) => i instanceof GuildMember ? i?.premiumSinceTimestamp ?? 0 : (i?.premium_since ? new Date(i.premium_since).getTime() : 0), + avatarDecoration: (i) => i instanceof GuildMember ? i.avatarDecorationURL() : (i?.avatar_decoration_data ? new CDN().avatarDecoration(i.avatar_decoration_data.asset) : null), }) \ No newline at end of file diff --git a/src/properties/poll.ts b/src/properties/poll.ts new file mode 100644 index 0000000000..943b0983fc --- /dev/null +++ b/src/properties/poll.ts @@ -0,0 +1,40 @@ +import { Poll, PollAnswer, PollLayoutType } from "discord.js" +import defineProperties from "../functions/defineProperties" + +export enum PollProperty { + question = "question", + layoutType = "layoutType", + answers = "answers", + answerCount = "answerCount", + totalVotes = "totalVotes", + expiresTimestamp = "expiresTimestamp", + allowMultiselect = "allowMultiselect", + resultsFinalized = "resultsFinalized", +} + +export const PollProperties = defineProperties({ + question: (i) => i?.question.text, + layoutType: (i) => PollLayoutType[i?.layoutType!], + answers: (i) => JSON.stringify(i?.answers, undefined, 4), + answerCount: (i) => i?.answers.size, + totalVotes: (i) => i?.answers.reduce((n, x) => n + x.voteCount, 0) ?? 0, + expiresTimestamp: (i) => i?.expiresTimestamp, + allowMultiselect: (i) => i?.allowMultiselect, + resultsFinalized: (i) => i?.resultsFinalized, +}) + +export enum PollAnswerProperty { + id = "id", + text = "text", + emoji = "emoji", + voteCount = "voteCount", + messageID = "messageID" +} + +export const PollAnswerProperties = defineProperties({ + id: (i) => i?.id, + text: (i) => i?.text, + emoji: (i) => i?.emoji?.toString(), + voteCount: (i) => i?.voteCount, + messageID: (i) => i?.poll.message.id +}) \ No newline at end of file diff --git a/src/properties/pollAnswer.ts b/src/properties/pollAnswer.ts deleted file mode 100644 index 36c2c56f77..0000000000 --- a/src/properties/pollAnswer.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Message, MessageType, PollAnswer, Presence, Role } from "discord.js" -import defineProperties from "../functions/defineProperties" - -export enum PollAnswerProperty { - text = "text", - voteCount = "voteCount", - id = "id", - messageID = "messageID" -} - -export const PollAnswerProperties = defineProperties({ - text: i => i?.text, - voteCount: i => i?.voteCount, - id: i => i?.id, - messageID: i => i?.poll.message.id -}) diff --git a/src/properties/presence.ts b/src/properties/presence.ts index 3c7404122b..fa12e7340e 100644 --- a/src/properties/presence.ts +++ b/src/properties/presence.ts @@ -1,4 +1,4 @@ -import { Message, MessageType, Presence, Role } from "discord.js" +import { Presence } from "discord.js" import defineProperties from "../functions/defineProperties" export enum PresenceProperty { diff --git a/src/properties/role.ts b/src/properties/role.ts index cfe52aebab..a44173be0b 100644 --- a/src/properties/role.ts +++ b/src/properties/role.ts @@ -1,8 +1,8 @@ -import { Message, MessageType, Role } from "discord.js" +import { Role } from "discord.js" import defineProperties from "../functions/defineProperties" +import { int2hex } from "../functions/hex" export enum RoleProperty { - timestamp = "timestamp", id = "id", name = "name", icon = "icon", @@ -12,9 +12,13 @@ export enum RoleProperty { mentionable = "mentionable", rawPosition = "rawPosition", position = "position", + timestamp = "timestamp", permissions = "permissions", tags = "tags", members = "members", + unicodeEmoji = "unicodeEmoji", + secondaryColor = "secondaryColor", + tertiaryColor = "tertiaryColor", } export const RoleProperties = defineProperties({ @@ -31,4 +35,7 @@ export const RoleProperties = defineProperties({ rawPosition: (i) => i?.rawPosition, permissions: (i, sep) => i?.permissions.toArray().join(sep || ", "), tags: (i, sep) => Object.keys(i?.tags ?? {}).join(sep || ", "), + unicodeEmoji: (i) => i?.unicodeEmoji, + secondaryColor: (i) => i?.colors.secondaryColor ? "#" + int2hex(i?.colors.secondaryColor) : null, + tertiaryColor: (i) => i?.colors.tertiaryColor ? "#" + int2hex(i?.colors.tertiaryColor) : null, }) \ No newline at end of file diff --git a/src/properties/scheduledEvent.ts b/src/properties/scheduledEvent.ts index 3a757b43f6..5f79a330bd 100644 --- a/src/properties/scheduledEvent.ts +++ b/src/properties/scheduledEvent.ts @@ -1,6 +1,5 @@ -import { Channel, ChannelType, Collection, GuildMember } from "discord.js" +import { GuildScheduledEvent } from "discord.js" import defineProperties from "../functions/defineProperties" -import { IStates, States } from "../core" export enum ScheduledEventProperty { id = "id", @@ -20,7 +19,7 @@ export enum ScheduledEventProperty { entityType = "entityType" } -export const ScheduledEventProperties = defineProperties({ +export const ScheduledEventProperties = defineProperties({ channelID: i => i?.channelId, guildID: i => i?.guildId, id: i => i?.id, diff --git a/src/properties/sticker.ts b/src/properties/sticker.ts index 63274dd89f..1059890621 100644 --- a/src/properties/sticker.ts +++ b/src/properties/sticker.ts @@ -1,10 +1,11 @@ -import { GuildEmoji, Sticker, StickerFormatType } from "discord.js" +import { Sticker, StickerFormatType } from "discord.js" import defineProperties from "../functions/defineProperties" export enum StickerProperty { - guildID = "guildID", - name = "name", id = "id", + name = "name", + guildID = "guildID", + authorID = "authorID", timestamp = "timestamp", url = "url", format = "format", @@ -17,6 +18,7 @@ export enum StickerProperty { export const StickerProperties = defineProperties({ guildID: (i) => i?.guild?.id, + authorID: (i) => i?.user?.id, id: (i) => i?.id, name: (i) => i?.name, url: (i) => i?.url, @@ -27,4 +29,4 @@ export const StickerProperties = defineProperties i?.tags, sortValue: i => i?.sortValue, packID: i => i?.packId -}) +}) \ No newline at end of file diff --git a/src/properties/subscription.ts b/src/properties/subscription.ts new file mode 100644 index 0000000000..5123839ffc --- /dev/null +++ b/src/properties/subscription.ts @@ -0,0 +1,28 @@ +import { Subscription, SubscriptionStatus } from "discord.js" +import defineProperties from "../functions/defineProperties" + +export enum SubscriptionProperty { + id = "id", + userID = "userID", + status = "status", + country = "country", + skuIDs = "skuIDs", + renewalSkuIDs = "renewalSkuIDs", + entitlementIDs = "entitlementIDs", + canceledTimestamp = "canceledTimestamp", + periodEndTimestamp = "periodEndTimestamp", + periodStartTimestamp = "periodStartTimestamp", +} + +export const SubscriptionProperties = defineProperties({ + id: (i) => i?.id, + userID: (i) => i?.userId, + status: (i) => SubscriptionStatus[i?.status!], + country: (i) => i?.country, + skuIDs: (i, sep) => i?.skuIds.join(sep ?? ", "), + renewalSkuIDs: (i, sep) => i?.renewalSkuIds?.join(sep ?? ", "), + entitlementIDs: (i, sep) => i?.entitlementIds.join(sep ?? ", "), + canceledTimestamp: (i) => i?.canceledTimestamp, + periodEndTimestamp: (i) => i?.currentPeriodEndTimestamp, + periodStartTimestamp: (i) => i?.currentPeriodStartTimestamp, +}) \ No newline at end of file diff --git a/src/properties/user.ts b/src/properties/user.ts index 515e6c8108..bb72a97021 100644 --- a/src/properties/user.ts +++ b/src/properties/user.ts @@ -1,4 +1,4 @@ -import { Channel, ChannelType, Collection, GuildMember, User } from "discord.js" +import { User } from "discord.js" import defineProperties from "../functions/defineProperties" export enum UserProperty { @@ -12,6 +12,11 @@ export enum UserProperty { banner = "banner", timestamp = "timestamp", dmChannelID = "dmChannelID", + avatarDecoration = "avatarDecoration", + primaryGuildTag = "primaryGuildTag", + primaryGuildBadge = "primaryGuildBadge", + primaryGuildEnabled = "primaryGuildEnabled", + primaryGuildID = "primaryGuildID", } export const UserProperties = defineProperties({ @@ -25,4 +30,9 @@ export const UserProperties = defineProperties({ accentColor: (i) => i?.hexAccentColor, timestamp: (i) => i?.createdTimestamp, dmChannelID: (i) => i?.dmChannel?.id, -}) + avatarDecoration: (i) => i?.avatarDecorationURL(), + primaryGuildTag: (i) => i?.primaryGuild?.tag, + primaryGuildBadge: (i) => i?.guildTagBadgeURL(), + primaryGuildEnabled: (i) => i?.primaryGuild?.identityEnabled, + primaryGuildID: (i) => i?.primaryGuild?.identityGuildId +}) \ No newline at end of file diff --git a/src/structures/@internal/Arg.ts b/src/structures/@internal/Arg.ts index d1298c274e..96913fc75f 100644 --- a/src/structures/@internal/Arg.ts +++ b/src/structures/@internal/Arg.ts @@ -490,6 +490,38 @@ export class Arg { }) } + public static optionalForumTag(name: string = "tag ID", desc: string = "The forum tag to use") { + return Arg.create({ + name, + description: desc, + rest: false, + type: ArgType.ForumTag, + pointer: 0 + }) + } + + public static requiredForumTag(name: string = "tag ID", desc: string = "The forum tag to use") { + return Arg.create({ + name, + description: desc, + rest: false, + required: true, + type: ArgType.ForumTag, + pointer: 0 + }) + } + + public static restForumTag(name: string = "tag IDs", desc: string = "The forum tags to use", required: boolean = false) { + return Arg.create({ + name, + description: desc, + rest: true, + required, + type: ArgType.ForumTag, + pointer: 0 + }) + } + public static restTextChannel(name: string = "text channel IDs", desc: string = "The text channels to use", required: boolean = false) { return Arg.create({ name, diff --git a/src/structures/@internal/CompiledFunction.ts b/src/structures/@internal/CompiledFunction.ts index b987f100e0..7a4e1f40b1 100644 --- a/src/structures/@internal/CompiledFunction.ts +++ b/src/structures/@internal/CompiledFunction.ts @@ -2,11 +2,11 @@ import { PermissionFlagsBits, TextChannel, parseEmoji, - ForumChannel, AttachmentBuilder, PermissionsString, StageChannel, StageInstance, + ThreadOnlyChannel, } from "discord.js" import { existsSync } from "fs" import { inspect } from "util" @@ -343,9 +343,7 @@ export class CompiledFunction) { - return (this.resolvePointer(arg, ref, ctx.channel) as ForumChannel)?.availableTags.find( - (x) => x.id === str || x.name === str - ) + return (this.resolvePointer(arg, ref, ctx.channel) as ThreadOnlyChannel)?.availableTags.find((x) => x.id === str) } private resolveSticker(ctx: Context, arg: IArg, str: string, ref: Array) { diff --git a/src/structures/@internal/Container.ts b/src/structures/@internal/Container.ts index f58c9136b8..ed22056f10 100644 --- a/src/structures/@internal/Container.ts +++ b/src/structures/@internal/Container.ts @@ -2,6 +2,7 @@ import { ActionRowBuilder, ApplicationCommandOptionChoiceData, + ApplicationEmoji, AttachmentBuilder, AutoModerationActionExecution, AutocompleteInteraction, @@ -12,6 +13,7 @@ import { ContainerBuilder, ContainerComponentBuilder, EmbedBuilder, + Emoji, Guild, GuildEmoji, GuildMember, @@ -24,6 +26,7 @@ import { Message, MessageActionRowComponentBuilder, MessageMentionOptions, + MessageMentionTypes, MessageReaction, MessageReplyOptions, ModalBuilder, @@ -61,6 +64,8 @@ export type Sendable = | Invite | AutoModerationActionExecution | SoundboardSound + | Emoji + | ApplicationEmoji export class Container { public content?: string @@ -167,6 +172,11 @@ export class Container { return (this.embeds[index] ??= new EmbedBuilder()) } + public unparseMention(type: MessageMentionTypes) { + this.allowedMentions.parse ??= ["everyone", "roles", "users"] + return (this.allowedMentions.parse = this.allowedMentions.parse.filter((x) => x !== type)) + } + /** * Checks if current context is inside a component builder function. * @param type The type of the component to check for. diff --git a/src/structures/@internal/Context.ts b/src/structures/@internal/Context.ts index 46ce0a1cd3..fc30359e8e 100644 --- a/src/structures/@internal/Context.ts +++ b/src/structures/@internal/Context.ts @@ -10,7 +10,6 @@ import { Emoji, Entitlement, Guild, - GuildEmoji, GuildMember, Interaction, MediaGalleryBuilder, @@ -20,14 +19,14 @@ import { SectionBuilder, SoundboardSound, Sticker, + Subscription, User, } from "discord.js" import { CompiledFunction, IExtendedCompiledFunctionField } from "./CompiledFunction" import { Container, Sendable } from "./Container" -import { IArg, NativeFunction, UnwrapArgs } from "./NativeFunction" +import { IArg, UnwrapArgs } from "./NativeFunction" import { Return, ReturnType } from "./Return" import { IRunnable } from "../../core/Interpreter" -import noop from "../../functions/noop" import { ForgeError } from "../forge/ForgeError" import { Logger } from "./Logger" import { FormData, Headers } from "undici" @@ -112,6 +111,7 @@ export interface IContextCache { automod: AutoModerationActionExecution | null sticker: Sticker | null sound: SoundboardSound | null + subscription: Subscription | null } export class Context { @@ -132,6 +132,8 @@ export class Context { #keywords: Record = {} #environment: Record = {} + private _reason?: string + public container: Container // eslint-disable-next-line no-unused-vars @@ -150,6 +152,16 @@ export class Context { this.clearCache() } + public set reason(str: string | undefined) { + this._reason = str + } + + public get reason() { + const str = this._reason + this._reason = undefined + return str + } + public get cmd() { return this.runtime.command } @@ -174,6 +186,10 @@ export class Context { return this.#cache.entitlement ??= this.obj instanceof Entitlement ? this.obj : null } + public get subscription() { + return this.#cache.subscription ??= this.obj instanceof Subscription ? this.obj : null + } + public get member() { return (this.#cache.member ??= this.obj instanceof GuildMember @@ -184,7 +200,7 @@ export class Context { } public get emoji() { - return (this.#cache.emoji ??= this.obj instanceof GuildEmoji ? this.obj : null) + return (this.#cache.emoji ??= this.obj instanceof Emoji ? this.obj : null) } public get sticker() { @@ -302,6 +318,20 @@ export class Context { this.automodRule = {} } + /** + * Fetches all emojis of the application. + * @param once Whether to fetch only when the collection is empty. + * @returns + */ + public async fetchApplicationEmojis(once?: boolean) { + const { emojis } = this.client.application + + if (once && emojis.cache.size) { + return emojis.cache + } + return await emojis.fetch().catch(this.noop) + } + public setEnvironmentKey(name: string, value: unknown) { return (this.#environment[name] = value) } @@ -450,6 +480,12 @@ export class Context { return empty } + public cloneRuntime() : IRunnable { + this.runtime.keywords = this.#keywords as Record + this.runtime.environment = this.#environment + return this.runtime + } + private clearCache() { this.#cache = {} } diff --git a/src/structures/base/BaseEventHandler.ts b/src/structures/base/BaseEventHandler.ts index 94e15db5da..7ba8d53609 100644 --- a/src/structures/base/BaseEventHandler.ts +++ b/src/structures/base/BaseEventHandler.ts @@ -9,6 +9,7 @@ export interface IEvent { listener: (this: ForgeClient, ...args: AssertArgs) => Promise | void version?: string intents?: GatewayIntentsString[] + deprecated?: boolean } export class BaseEventHandler, T extends keyof Events = keyof Events> {