diff --git a/dist/native/component/addChannelSelectMenuTo.d.ts.map b/dist/native/component/addChannelSelectMenuTo.d.ts.map index bd31c97d7f..cdd5eca25c 100644 --- a/dist/native/component/addChannelSelectMenuTo.d.ts.map +++ b/dist/native/component/addChannelSelectMenuTo.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"addChannelSelectMenuTo.d.ts","sourceRoot":"","sources":["../../../src/native/component/addChannelSelectMenuTo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1D,wBA8EE"} \ No newline at end of file +{"version":3,"file":"addChannelSelectMenuTo.d.ts","sourceRoot":"","sources":["../../../src/native/component/addChannelSelectMenuTo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1D,wBA+EE"} \ No newline at end of file diff --git a/dist/native/component/addChannelSelectMenuTo.js b/dist/native/component/addChannelSelectMenuTo.js index 31f3721f8c..0efce38807 100644 --- a/dist/native/component/addChannelSelectMenuTo.js +++ b/dist/native/component/addChannelSelectMenuTo.js @@ -4,6 +4,7 @@ const discord_js_1 = require("discord.js"); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$addChannelSelectMenuTo", + version: "2.4.0", description: "Creates a channel select menu on a message", output: structures_1.ArgType.Boolean, brackets: true, diff --git a/dist/native/component/addChannelSelectMenuTo.js.map b/dist/native/component/addChannelSelectMenuTo.js.map index cdccae0900..363f0b4b47 100644 --- a/dist/native/component/addChannelSelectMenuTo.js.map +++ b/dist/native/component/addChannelSelectMenuTo.js.map @@ -1 +1 @@ -{"version":3,"file":"addChannelSelectMenuTo.js","sourceRoot":"","sources":["../../../src/native/component/addChannelSelectMenuTo.ts"],"names":[],"mappings":";;AAAA,2CAA+F;AAC/F,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,4CAA4C;IACzD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,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,mCAAmC;YAChD,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,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,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,YAAY;YAClB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,WAAW,EAAE,sCAAsC;SACtD;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC;QACnE,MAAM,IAAI,GAAG,IAAI,qCAAwB,EAAE;aACtC,kBAAkB,CAAC,QAAQ,CAAC;aAC5B,WAAW,CAAC,QAAQ,IAAI,KAAK,CAAC;aAC9B,WAAW,CAAC,EAAE,CAAC,CAAA;QAEpB,IAAI,WAAW;YAAE,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;QACjD,IAAI,GAAG;YAAE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;QAC/B,IAAI,GAAG;YAAE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;QAE/B,MAAM,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,mCAAsB,EAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;QAC5E,UAAU,CAAC,IAAI,CAAC,IAAI,6BAAgB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAA;QAE3D,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACpF,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"addChannelSelectMenuTo.js","sourceRoot":"","sources":["../../../src/native/component/addChannelSelectMenuTo.ts"],"names":[],"mappings":";;AAAA,2CAA+F;AAC/F,iDAA0D;AAE1D,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4CAA4C;IACzD,MAAM,EAAE,oBAAO,CAAC,OAAO;IACvB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,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,mCAAmC;YAChD,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,6BAA6B;YAC1C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,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,YAAY;YAClB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,oBAAO,CAAC,OAAO;SACxB;QACD;YACI,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,oBAAO,CAAC,MAAM;YACpB,WAAW,EAAE,sCAAsC;SACtD;KACJ;IACD,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC;QACnE,MAAM,IAAI,GAAG,IAAI,qCAAwB,EAAE;aACtC,kBAAkB,CAAC,QAAQ,CAAC;aAC5B,WAAW,CAAC,QAAQ,IAAI,KAAK,CAAC;aAC9B,WAAW,CAAC,EAAE,CAAC,CAAA;QAEpB,IAAI,WAAW;YAAE,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;QACjD,IAAI,GAAG;YAAE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;QAC/B,IAAI,GAAG;YAAE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;QAE/B,MAAM,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,mCAAsB,EAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;QAC5E,UAAU,CAAC,IAAI,CAAC,IAAI,6BAAgB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAA;QAE3D,OAAO,IAAI,CAAC,OAAO,CACf,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACpF,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/component/deleteComponent.d.ts.map b/dist/native/component/deleteComponent.d.ts.map index e7d51c0592..a9d1ee9650 100644 --- a/dist/native/component/deleteComponent.d.ts.map +++ b/dist/native/component/deleteComponent.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"deleteComponent.d.ts","sourceRoot":"","sources":["../../../src/native/component/deleteComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBA8BE"} \ No newline at end of file +{"version":3,"file":"deleteComponent.d.ts","sourceRoot":"","sources":["../../../src/native/component/deleteComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAqCE"} \ No newline at end of file diff --git a/dist/native/component/deleteComponent.js b/dist/native/component/deleteComponent.js index 6c02794424..55bd166d3b 100644 --- a/dist/native/component/deleteComponent.js +++ b/dist/native/component/deleteComponent.js @@ -1,5 +1,6 @@ "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: "$deleteComponent", @@ -17,9 +18,17 @@ exports.default = new structures_1.NativeFunction({ ], unwrap: true, execute(ctx, [id]) { + const row = ctx.container.actionRow; + const n = row?.components.findIndex((x) => "custom_id" in x.data && x.data.custom_id === id); + if (n != -1) { + if (row?.components.length === 1) + delete ctx.container.actionRow; + else + ctx.container.actionRow?.components.splice(n, 1); + } for (let i = 0, len = ctx.container.components.length; i < len; i++) { const comp = ctx.container.components[i]; - if (!("components" in comp)) + if (!(comp instanceof discord_js_1.ActionRowBuilder)) continue; const index = comp.components.findIndex((x) => "custom_id" in x.data && x.data.custom_id === id); if (index !== -1) { diff --git a/dist/native/component/deleteComponent.js.map b/dist/native/component/deleteComponent.js.map index 4c489c578a..527cc396e2 100644 --- a/dist/native/component/deleteComponent.js.map +++ b/dist/native/component/deleteComponent.js.map @@ -1 +1 @@ -{"version":3,"file":"deleteComponent.js","sourceRoot":"","sources":["../../../src/native/component/deleteComponent.ts"],"names":[],"mappings":";;AAAA,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,kDAAkD;IAC/D,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACjE,MAAM,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;YACxC,IAAI,CAAC,CAAC,YAAY,IAAI,IAAI,CAAC;gBAAE,SAAQ;YAErC,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,EAAE,CAAC,CAAA;YAChG,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;gBACd,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;oBAAE,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;;oBAClE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;gBACrC,MAAK;aACR;SACJ;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"deleteComponent.js","sourceRoot":"","sources":["../../../src/native/component/deleteComponent.ts"],"names":[],"mappings":";;AAAA,2CAA6C;AAC7C,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,kDAAkD;IAC/D,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE;QACF;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,MAAM,EAAE,IAAI;IACZ,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;QACb,MAAM,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,SAAS,CAAA;QACnC,MAAM,CAAC,GAAG,GAAG,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,EAAE,CAAC,CAAA;QAC5F,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;YACT,IAAI,GAAG,EAAE,UAAU,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,GAAG,CAAC,SAAS,CAAC,SAAS,CAAA;;gBAC3D,GAAG,CAAC,SAAS,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,CAAE,EAAE,CAAC,CAAC,CAAA;SACzD;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACjE,MAAM,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;YACxC,IAAI,CAAC,CAAC,IAAI,YAAY,6BAAgB,CAAC;gBAAE,SAAQ;YAEjD,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,EAAE,CAAC,CAAA;YAChG,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;gBACd,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;oBAAE,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;;oBAClE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;gBACrC,MAAK;aACR;SACJ;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/component/disableButtons.d.ts.map b/dist/native/component/disableButtons.d.ts.map index 1816d6ed37..9b214cfa00 100644 --- a/dist/native/component/disableButtons.d.ts.map +++ b/dist/native/component/disableButtons.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"disableButtons.d.ts","sourceRoot":"","sources":["../../../src/native/component/disableButtons.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBA+BE"} \ No newline at end of file +{"version":3,"file":"disableButtons.d.ts","sourceRoot":"","sources":["../../../src/native/component/disableButtons.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAmCE"} \ No newline at end of file diff --git a/dist/native/component/disableButtons.js b/dist/native/component/disableButtons.js index 68c6e8559d..28212986ec 100644 --- a/dist/native/component/disableButtons.js +++ b/dist/native/component/disableButtons.js @@ -21,14 +21,18 @@ exports.default = new structures_1.NativeFunction({ execute(ctx, [index]) { const data = ctx.container.components; const components = Number.isFinite(index) ? new Array(data[index]) : data; + ctx.container.actionRow?.components.forEach((x) => { + if (x instanceof discord_js_1.ButtonBuilder) + x.setDisabled(true); + }); for (let i = 0, len = components.length; i < len; i++) { const row = components[i]; - if (!("components" in row)) + if (!(row instanceof discord_js_1.ActionRowBuilder)) continue; const actionRow = new discord_js_1.ActionRowBuilder(); - row?.components.forEach(component => { - if (component instanceof discord_js_1.ButtonBuilder) - actionRow.addComponents(component.setDisabled(true)); + row?.components.forEach((x) => { + if (x instanceof discord_js_1.ButtonBuilder) + actionRow.addComponents(x.setDisabled(true)); }); } return this.success(); diff --git a/dist/native/component/disableButtons.js.map b/dist/native/component/disableButtons.js.map index b56fd2b230..cac1d8569c 100644 --- a/dist/native/component/disableButtons.js.map +++ b/dist/native/component/disableButtons.js.map @@ -1 +1 @@ -{"version":3,"file":"disableButtons.js","sourceRoot":"","sources":["../../../src/native/component/disableButtons.ts"],"names":[],"mappings":";;AAAA,2CAA4D;AAC5D,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6CAA6C;IAC1D,OAAO,EAAE,CAAC,oBAAoB,CAAC;IAC/B,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,KAAK;IACf,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;QAChB,MAAM,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAA;QACrC,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;QAEzE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACnD,MAAM,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAA;YACzB,IAAI,CAAC,CAAC,YAAY,IAAI,GAAG,CAAC;gBAAE,SAAQ;YACpC,MAAM,SAAS,GAAG,IAAI,6BAAgB,EAAE,CAAA;YACxC,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;gBAChC,IAAI,SAAS,YAAY,0BAAa;oBAAE,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAA;YAChG,CAAC,CAAC,CAAA;SACL;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"disableButtons.js","sourceRoot":"","sources":["../../../src/native/component/disableButtons.ts"],"names":[],"mappings":";;AAAA,2CAA4D;AAC5D,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6CAA6C;IAC1D,OAAO,EAAE,CAAC,oBAAoB,CAAC;IAC/B,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,KAAK;IACf,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;QAChB,MAAM,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAA;QACrC,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;QAEzE,GAAG,CAAC,SAAS,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC9C,IAAI,CAAC,YAAY,0BAAa;gBAAE,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;QACvD,CAAC,CAAC,CAAA;QAEF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACnD,MAAM,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAA;YACzB,IAAI,CAAC,CAAC,GAAG,YAAY,6BAAgB,CAAC;gBAAE,SAAQ;YAChD,MAAM,SAAS,GAAG,IAAI,6BAAgB,EAAE,CAAA;YACxC,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC1B,IAAI,CAAC,YAAY,0BAAa;oBAAE,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAA;YAChF,CAAC,CAAC,CAAA;SACL;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/component/disableComponents.d.ts.map b/dist/native/component/disableComponents.d.ts.map index 46110a7a58..d6e3e87ed9 100644 --- a/dist/native/component/disableComponents.d.ts.map +++ b/dist/native/component/disableComponents.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"disableComponents.d.ts","sourceRoot":"","sources":["../../../src/native/component/disableComponents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;AAElE,wBAgBE"} \ No newline at end of file +{"version":3,"file":"disableComponents.d.ts","sourceRoot":"","sources":["../../../src/native/component/disableComponents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;AAElE,wBAkBE"} \ No newline at end of file diff --git a/dist/native/component/disableComponents.js b/dist/native/component/disableComponents.js index 3d0cc1d500..c2fbfce8e2 100644 --- a/dist/native/component/disableComponents.js +++ b/dist/native/component/disableComponents.js @@ -10,10 +10,13 @@ exports.default = new structures_1.NativeFunction({ unwrap: false, execute(ctx) { const components = ctx.container.components; - components.forEach(row => { + ctx.container.actionRow?.components.forEach((x) => x.setDisabled(true)); + for (let comp of components) { + if (!(comp instanceof discord_js_1.ActionRowBuilder)) + continue; const actionRow = new discord_js_1.ActionRowBuilder(); - row?.components.forEach(component => actionRow.addComponents(component.setDisabled(true))); - }); + comp?.components.forEach((x) => actionRow.addComponents(x.setDisabled(true))); + } return this.success(); }, }); diff --git a/dist/native/component/disableComponents.js.map b/dist/native/component/disableComponents.js.map index 0f9be1a413..e29acb2ff7 100644 --- a/dist/native/component/disableComponents.js.map +++ b/dist/native/component/disableComponents.js.map @@ -1 +1 @@ -{"version":3,"file":"disableComponents.js","sourceRoot":"","sources":["../../../src/native/component/disableComponents.ts"],"names":[],"mappings":";;AAAA,2CAA+E;AAC/E,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,OAAO,EAAE,CAAC,uBAAuB,CAAC;IAClC,MAAM,EAAE,KAAK;IACb,OAAO,CAAC,GAAG;QACP,MAAM,UAAU,GAAG,GAAG,CAAC,SAAS,CAAC,UAAkE,CAAA;QAEnG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACrB,MAAM,SAAS,GAAG,IAAI,6BAAgB,EAAE,CAAA;YACxC,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QAC9F,CAAC,CAAC,CAAA;QAEF,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"disableComponents.js","sourceRoot":"","sources":["../../../src/native/component/disableComponents.ts"],"names":[],"mappings":";;AAAA,2CAA6C;AAC7C,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAC7D,OAAO,EAAE,CAAC,uBAAuB,CAAC;IAClC,MAAM,EAAE,KAAK;IACb,OAAO,CAAC,GAAG;QACP,MAAM,UAAU,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAA;QAC3C,GAAG,CAAC,SAAS,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAA;QAEvE,KAAK,IAAI,IAAI,IAAI,UAAU,EAAE;YACzB,IAAI,CAAC,CAAC,IAAI,YAAY,6BAAgB,CAAC;gBAAE,SAAQ;YACjD,MAAM,SAAS,GAAG,IAAI,6BAAgB,EAAE,CAAA;YACxC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;SAChF;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/component/enableButtons.d.ts.map b/dist/native/component/enableButtons.d.ts.map index 69c234b305..61d3ba9742 100644 --- a/dist/native/component/enableButtons.d.ts.map +++ b/dist/native/component/enableButtons.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"enableButtons.d.ts","sourceRoot":"","sources":["../../../src/native/component/enableButtons.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBA+BE"} \ No newline at end of file +{"version":3,"file":"enableButtons.d.ts","sourceRoot":"","sources":["../../../src/native/component/enableButtons.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;;;;;;;AAElE,wBAmCE"} \ No newline at end of file diff --git a/dist/native/component/enableButtons.js b/dist/native/component/enableButtons.js index c2b8f9c721..bbdcf6d235 100644 --- a/dist/native/component/enableButtons.js +++ b/dist/native/component/enableButtons.js @@ -21,14 +21,18 @@ exports.default = new structures_1.NativeFunction({ execute(ctx, [index]) { const data = ctx.container.components; const components = Number.isFinite(index) ? new Array(data[index]) : data; + ctx.container.actionRow?.components.forEach((x) => { + if (x instanceof discord_js_1.ButtonBuilder) + x.setDisabled(false); + }); for (let i = 0, len = components.length; i < len; i++) { const row = components[i]; - if (!("components" in row)) + if (!(row instanceof discord_js_1.ActionRowBuilder)) continue; const actionRow = new discord_js_1.ActionRowBuilder(); - row?.components.forEach(component => { - if (component instanceof discord_js_1.ButtonBuilder) - actionRow.addComponents(component.setDisabled(false)); + row?.components.forEach((x) => { + if (x instanceof discord_js_1.ButtonBuilder) + actionRow.addComponents(x.setDisabled(false)); }); } return this.success(); diff --git a/dist/native/component/enableButtons.js.map b/dist/native/component/enableButtons.js.map index a0da2b2d25..85113f17c0 100644 --- a/dist/native/component/enableButtons.js.map +++ b/dist/native/component/enableButtons.js.map @@ -1 +1 @@ -{"version":3,"file":"enableButtons.js","sourceRoot":"","sources":["../../../src/native/component/enableButtons.ts"],"names":[],"mappings":";;AAAA,2CAA4D;AAC5D,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4CAA4C;IACzD,OAAO,EAAE,CAAC,mBAAmB,CAAC;IAC9B,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,KAAK;IACf,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;QAChB,MAAM,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAA;QACrC,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;QAEzE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACnD,MAAM,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAA;YACzB,IAAI,CAAC,CAAC,YAAY,IAAI,GAAG,CAAC;gBAAE,SAAQ;YACpC,MAAM,SAAS,GAAG,IAAI,6BAAgB,EAAE,CAAA;YACxC,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;gBAChC,IAAI,SAAS,YAAY,0BAAa;oBAAE,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAA;YACjG,CAAC,CAAC,CAAA;SACL;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"enableButtons.js","sourceRoot":"","sources":["../../../src/native/component/enableButtons.ts"],"names":[],"mappings":";;AAAA,2CAA4D;AAC5D,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4CAA4C;IACzD,OAAO,EAAE,CAAC,mBAAmB,CAAC;IAC9B,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE;QACF;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,oBAAO,CAAC,MAAM;SACvB;KACJ;IACD,QAAQ,EAAE,KAAK;IACf,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;QAChB,MAAM,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAA;QACrC,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;QAEzE,GAAG,CAAC,SAAS,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC9C,IAAI,CAAC,YAAY,0BAAa;gBAAE,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;QACxD,CAAC,CAAC,CAAA;QAEF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACnD,MAAM,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAA;YACzB,IAAI,CAAC,CAAC,GAAG,YAAY,6BAAgB,CAAC;gBAAE,SAAQ;YAChD,MAAM,SAAS,GAAG,IAAI,6BAAgB,EAAE,CAAA;YACxC,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC1B,IAAI,CAAC,YAAY,0BAAa;oBAAE,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAA;YACjF,CAAC,CAAC,CAAA;SACL;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/native/component/enableComponents.d.ts.map b/dist/native/component/enableComponents.d.ts.map index 7306864ad6..1c15a30068 100644 --- a/dist/native/component/enableComponents.d.ts.map +++ b/dist/native/component/enableComponents.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"enableComponents.d.ts","sourceRoot":"","sources":["../../../src/native/component/enableComponents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;AAElE,wBAgBE"} \ No newline at end of file +{"version":3,"file":"enableComponents.d.ts","sourceRoot":"","sources":["../../../src/native/component/enableComponents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAU,MAAM,kBAAkB,CAAA;;AAElE,wBAkBE"} \ No newline at end of file diff --git a/dist/native/component/enableComponents.js b/dist/native/component/enableComponents.js index 1ea6f39140..34b81557cc 100644 --- a/dist/native/component/enableComponents.js +++ b/dist/native/component/enableComponents.js @@ -10,10 +10,13 @@ exports.default = new structures_1.NativeFunction({ unwrap: false, execute(ctx) { const components = ctx.container.components; - components.forEach(row => { + ctx.container.actionRow?.components.forEach((x) => x.setDisabled(false)); + for (let comp of components) { + if (!(comp instanceof discord_js_1.ActionRowBuilder)) + continue; const actionRow = new discord_js_1.ActionRowBuilder(); - row?.components.forEach(component => actionRow.addComponents(component.setDisabled(false))); - }); + comp?.components.forEach((x) => actionRow.addComponents(x.setDisabled(false))); + } return this.success(); }, }); diff --git a/dist/native/component/enableComponents.js.map b/dist/native/component/enableComponents.js.map index 2c5b445457..672ac0b0b9 100644 --- a/dist/native/component/enableComponents.js.map +++ b/dist/native/component/enableComponents.js.map @@ -1 +1 @@ -{"version":3,"file":"enableComponents.js","sourceRoot":"","sources":["../../../src/native/component/enableComponents.ts"],"names":[],"mappings":";;AAAA,2CAA+E;AAC/E,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,OAAO,EAAE,CAAC,sBAAsB,CAAC;IACjC,MAAM,EAAE,KAAK;IACb,OAAO,CAAC,GAAG;QACP,MAAM,UAAU,GAAG,GAAG,CAAC,SAAS,CAAC,UAAkE,CAAA;QAEnG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACrB,MAAM,SAAS,GAAG,IAAI,6BAAgB,EAAE,CAAA;YACxC,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;QAC/F,CAAC,CAAC,CAAA;QAEF,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"enableComponents.js","sourceRoot":"","sources":["../../../src/native/component/enableComponents.ts"],"names":[],"mappings":";;AAAA,2CAA6C;AAC7C,iDAAkE;AAElE,kBAAe,IAAI,2BAAc,CAAC;IAC9B,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,+CAA+C;IAC5D,OAAO,EAAE,CAAC,sBAAsB,CAAC;IACjC,MAAM,EAAE,KAAK;IACb,OAAO,CAAC,GAAG;QACP,MAAM,UAAU,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAA;QAC3C,GAAG,CAAC,SAAS,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAA;QAExE,KAAK,IAAI,IAAI,IAAI,UAAU,EAAE;YACzB,IAAI,CAAC,CAAC,IAAI,YAAY,6BAAgB,CAAC;gBAAE,SAAQ;YACjD,MAAM,SAAS,GAAG,IAAI,6BAAgB,EAAE,CAAA;YACxC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;SACjF;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;CACJ,CAAC,CAAA"} \ No newline at end of file diff --git a/docs/classes/ApplicationCommand.html b/docs/classes/ApplicationCommand.html index 58cffce51a..d49e72245a 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 de1d0b4ceb..df483002be 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

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/Arg.html b/docs/classes/Arg.html index a606668232..a22dd0dc43 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 ea4133d80f..5b475fbd0c 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 f2c4604456..8595576d43 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 0b48325cab..34ab6382a1 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 600ed1fc45..fe38bb237f 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 1fd87cc600..0477720de5 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

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/Container.html b/docs/classes/Container.html index 064dd1451d..92a87dbd01 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.

    +

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 fdd7eacd9d..f886398bb5 100644 --- a/docs/classes/Context.html +++ b/docs/classes/Context.html @@ -1,4 +1,4 @@ -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> = {}
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 diff --git a/docs/classes/CooldownManager.html b/docs/classes/CooldownManager.html index 9507e48a15..854e83bc04 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 53ea92c29d..f2be672494 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 0677cd50a2..e788333eee 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 {
        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 ec3ce43545..c64b8ebc3c 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 38f4d89762..ad0d466e4e 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

@@ -109,18 +109,18 @@ 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

  • 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

    • 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

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/ForgeExtension.html b/docs/classes/ForgeExtension.html index dafefbb6b8..48e2a3aeb3 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 a3c0cffede..1b371bfdef 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 fd2b0a3b86..dca011c691 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 49e717b5a0..db3e6fb060 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 51a0e958b5..94da484124 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 1b4f3f24ab..fc6860377b 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 a6edaa495e..5dad05de13 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 494ed77f78..8b5e72e948 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 c7a79f162d..835f8acc2a 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 386e17c42a..587be86248 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 ce5f03a9a7..bd05e98d8e 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 a182fd58d1..26de663e20 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 ad333b6776..c8d5efc49c 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 80f81fe7bd..0344570320 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 3ccd2290c0..dfddd30be8 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 efee8dab4a..a5057497ef 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 f0493bb240..c41a800730 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 8a351d38a5..5d8e012a98 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 bf5e677094..d9486e9d45 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 38e08a73f0..fe1608d2c9 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 4a79ecf89c..6764480d96 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 1a53b94250..e13a5a6cea 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/interfaces/IApplicationCommandData.html b/docs/interfaces/IApplicationCommandData.html index 1d226c67d8..0187ddc033 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 580d8dc3c5..d1f280abb2 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 3e9fa8b9db..1bf8688c53 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 9b99280940..3f1918e963 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 1c1d0ad5a4..4324250aef 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 ca5f448be0..0f71e455a8 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 bba7f04765..f8f941d67a 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 08eb489113..0cf69f999a 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 37810ae955..ff714ad639 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 623756ff2c..2a6d1a2c8a 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 925ee165d8..136811acec 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 2ae2cdac62..adc4a259e8 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;
    user: null | User;
}

Properties

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
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 c3a5cee893..e9f5b0fd36 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 811d1f35ac..4dee710e69 100644 --- a/docs/interfaces/IEvent.html +++ b/docs/interfaces/IEvent.html @@ -1,6 +1,6 @@ -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 {
    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

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 d3c3371a3b..10824266e0 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 1c9538c6f9..a6168ea402 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 4e67094bfe..71d93d0074 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 05e38d744b..bc2fd69276 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 77a94c596f..4ceb28b678 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 d685ed2c23..b9504fbcfd 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 5c44c19203..d2a6657865 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 8a4774d110..c6f809ee67 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 afbadc78d2..011efb1e0a 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 2dfd9a33e3..4128c47bc6 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 0ec9245fb0..18eb90ef93 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 763174e277..04917f8a25 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 bf2426a39b..a2a1269875 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 9e0234cbd5..211921858a 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 8e8249224a..f3962388da 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 b592f38d28..84ea3cf9af 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 4717b20588..eb6879b8dc 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 76935b3ea5..f7ea3b47f6 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 a499ce1c3b..90e1e8525d 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 0cc6cd90f3..1ef15336fc 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 8d2a40542a..cfde953888 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 497688d9c4..e557ede697 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;
    user: User;
    voiceEffect: VoiceChannelEffect;
    voiceState: VoiceState;
}

Properties

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
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 9d3a74e47f..7477d8cf75 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 e087dc1424..4111c15c50 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 16d678e746..f42592d9dd 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 46ea55b4c9..927cdca17e 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 515d73822a..cb5c8de113 100644 --- a/docs/types/AssertArgs.html +++ b/docs/types/AssertArgs.html @@ -1 +1 @@ -AssertArgs | @tryforge/forgescript

Type alias AssertArgs<T>

AssertArgs<T>: T extends unknown[]
    ? T
    : never

Type Parameters

  • T

Generated using TypeDoc

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

Type alias AssertArgs<T>

AssertArgs<T>: T extends unknown[]
    ? T
    : never

Type Parameters

  • T

Generated using TypeDoc

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

Type alias ClassInstance<T>

ClassInstance<T>: T extends (new (...args) => infer T)
    ? T
    : never

Type Parameters

  • T

Generated using TypeDoc

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

Type alias ClassInstance<T>

ClassInstance<T>: T extends (new (...args) => infer T)
    ? T
    : never

Type Parameters

  • T

Generated using TypeDoc

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

Type alias ClassType

ClassType: (new (...args) => any)

Type declaration

    • new (...args): any
    • Parameters

      • Rest ...args: any[]

      Returns any

Generated using TypeDoc

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

Type alias ClassType

ClassType: (new (...args) => any)

Type declaration

    • new (...args): any
    • Parameters

      • Rest ...args: any[]

      Returns any

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/CommandInteractionTypes.html b/docs/types/CommandInteractionTypes.html index 9592e0c78d..a75c204e2a 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 6818924d7a..19faa901a1 100644 --- a/docs/types/CommandType.html +++ b/docs/types/CommandType.html @@ -1 +1 @@ -CommandType | @tryforge/forgescript

Type alias CommandType

CommandType: keyof ClientEvents

Generated using TypeDoc

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

Type alias CommandType

CommandType: keyof ClientEvents

Generated using TypeDoc

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

Type alias EnumLike<T>

EnumLike<T>: {
    [id: string]: T | string;
}

Type Parameters

  • T = any

Type declaration

  • [id: string]: T | string

Generated using TypeDoc

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

Type alias EnumLike<T>

EnumLike<T>: {
    [id: string]: T | string;
}

Type Parameters

  • T = any

Type declaration

  • [id: string]: T | string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/ExpectCallback.html b/docs/types/ExpectCallback.html index 7ddc4d60e0..e5b4378cff 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 0248b8007b..9bab6c12ab 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 ed5d46e915..abac7d5c5a 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 67d9c1febe..f6d21cd516 100644 --- a/docs/types/GetEnum.html +++ b/docs/types/GetEnum.html @@ -1 +1 @@ -GetEnum | @tryforge/forgescript

Type alias GetEnum<T>

GetEnum<T>: T extends EnumLike<infer P>
    ? P
    : never

Type Parameters

  • T

Generated using TypeDoc

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

Type alias GetEnum<T>

GetEnum<T>: T extends EnumLike<infer P>
    ? P
    : never

Type Parameters

  • T

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/GetErrorArgs.html b/docs/types/GetErrorArgs.html index 3a77ec545b..ae7f3c6652 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 e56d5a8f80..a93100fa9c 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 824b2ff69b..38ee5d8b70 100644 --- a/docs/types/MarkRest.html +++ b/docs/types/MarkRest.html @@ -1 +1 @@ -MarkRest | @tryforge/forgescript

Type alias MarkRest<T, B>

MarkRest<T, B>: B extends true
    ? T[]
    : T

Type Parameters

  • T

  • B extends boolean

Generated using TypeDoc

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

Type alias MarkRest<T, B>

MarkRest<T, B>: B extends true
    ? T[]
    : T

Type Parameters

  • T

  • B extends boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/NativeFunctionExecutor.html b/docs/types/NativeFunctionExecutor.html index 96217e3dbb..3c4f28103a 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 1fedf9da73..28e60ece60 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 1421725107..d8a8787e3c 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 4f1e3c5421..9464b162db 100644 --- a/docs/types/RecursiveArray.html +++ b/docs/types/RecursiveArray.html @@ -1 +1 @@ -RecursiveArray | @tryforge/forgescript

Type alias RecursiveArray<T>

RecursiveArray<T>: T | T[]

Type Parameters

  • T

Generated using TypeDoc

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

Type alias RecursiveArray<T>

RecursiveArray<T>: T | T[]

Type Parameters

  • T

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/ReturnValue.html b/docs/types/ReturnValue.html index ca088f4d5f..172cf2075b 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 9cacde8c14..06ed222632 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

    Type declaration

      Generated using TypeDoc

      \ No newline at end of file diff --git a/docs/types/States.html b/docs/types/States.html index 96826dee77..311952795f 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 070f65b2c5..ef3bcadf38 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 e573586898..36300deca4 100644 --- a/docs/types/UnwrapArgs.html +++ b/docs/types/UnwrapArgs.html @@ -1 +1 @@ -UnwrapArgs | @tryforge/forgescript

      Type alias UnwrapArgs<T>

      UnwrapArgs<T>: T extends [infer L, ...(infer R)]
          ? [UnwrapArg<L>, ...UnwrapArgs<R>]
          : []

      Type Parameters

      • T

      Generated using TypeDoc

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

      Type alias UnwrapArgs<T>

      UnwrapArgs<T>: T extends [infer L, ...(infer R)]
          ? [UnwrapArg<L>, ...UnwrapArgs<R>]
          : []

      Type Parameters

      • T

      Generated using TypeDoc

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

      Type alias WrappedCode

      WrappedCode: ((args) => string)

      Type declaration

        • (args): string
        • Parameters

          • args: unknown[]

          Returns string

      Generated using TypeDoc

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

      Type alias WrappedCode

      WrappedCode: ((args) => string)

      Type declaration

        • (args): string
        • Parameters

          • args: unknown[]

          Returns string

      Generated using TypeDoc

      \ No newline at end of file diff --git a/docs/types/WrappedConditionCode.html b/docs/types/WrappedConditionCode.html index df872365ac..116f09527b 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 257e29d881..0951cd2da9 100644 --- a/docs/variables/Conditions.html +++ b/docs/variables/Conditions.html @@ -1 +1 @@ -Conditions | @tryforge/forgescript

      Variable ConditionsConst

      Conditions: Record<OperatorType, WrappedConditionCode> = ...

      Generated using TypeDoc

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

      Variable ConditionsConst

      Conditions: Record<OperatorType, WrappedConditionCode> = ...

      Generated using TypeDoc

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

      Variable NativeEventNameConst

      NativeEventName: "native" = "native"

      Generated using TypeDoc

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

      Variable NativeEventNameConst

      NativeEventName: "native" = "native"

      Generated using TypeDoc

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

      Variable OperatorsConst

      Operators: Set<OperatorType> = ...

      Generated using TypeDoc

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

      Variable OperatorsConst

      Operators: Set<OperatorType> = ...

      Generated using TypeDoc

      \ No newline at end of file diff --git a/metadata/changelogs.json b/metadata/changelogs.json index 222d56ba89..872c198373 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"}]} \ 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"}]} \ No newline at end of file diff --git a/metadata/functions.json b/metadata/functions.json index 511f52261e..58a41a2ba2 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","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","version":"2.4.0"},{"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":"$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 diff --git a/package.json b/package.json index 642fd63ae0..e448b9e205 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tryforge/forgescript", - "version": "2.4.0", + "version": "2.4.1", "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", diff --git a/src/native/component/deleteComponent.ts b/src/native/component/deleteComponent.ts index 910f4facff..b23e9ea3a6 100644 --- a/src/native/component/deleteComponent.ts +++ b/src/native/component/deleteComponent.ts @@ -1,3 +1,4 @@ +import { ActionRowBuilder } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ @@ -16,9 +17,16 @@ export default new NativeFunction({ ], unwrap: true, execute(ctx, [id]) { + const row = ctx.container.actionRow + const n = row?.components.findIndex((x) => "custom_id" in x.data && x.data.custom_id === id) + if (n != -1) { + if (row?.components.length === 1) delete ctx.container.actionRow + else ctx.container.actionRow?.components.splice(n!, 1) + } + for (let i = 0, len = ctx.container.components.length; i < len; i++) { const comp = ctx.container.components[i] - if (!("components" in comp)) continue + if (!(comp instanceof ActionRowBuilder)) continue const index = comp.components.findIndex((x) => "custom_id" in x.data && x.data.custom_id === id) if (index !== -1) { diff --git a/src/native/component/disableButtons.ts b/src/native/component/disableButtons.ts index d387d02caf..56e32ba1a6 100644 --- a/src/native/component/disableButtons.ts +++ b/src/native/component/disableButtons.ts @@ -21,12 +21,16 @@ export default new NativeFunction({ const data = ctx.container.components const components = Number.isFinite(index) ? new Array(data[index]) : data + ctx.container.actionRow?.components.forEach((x) => { + if (x instanceof ButtonBuilder) x.setDisabled(true) + }) + for (let i = 0, len = components.length; i < len; i++) { const row = components[i] - if (!("components" in row)) continue + if (!(row instanceof ActionRowBuilder)) continue const actionRow = new ActionRowBuilder() - row?.components.forEach(component => { - if (component instanceof ButtonBuilder) actionRow.addComponents(component.setDisabled(true)) + row?.components.forEach((x) => { + if (x instanceof ButtonBuilder) actionRow.addComponents(x.setDisabled(true)) }) } diff --git a/src/native/component/disableComponents.ts b/src/native/component/disableComponents.ts index e8b44ea89d..1876e38aed 100644 --- a/src/native/component/disableComponents.ts +++ b/src/native/component/disableComponents.ts @@ -1,4 +1,4 @@ -import { ActionRowBuilder, MessageActionRowComponentBuilder } from "discord.js" +import { ActionRowBuilder } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ @@ -8,12 +8,14 @@ export default new NativeFunction({ aliases: ["$disableAllComponents"], unwrap: false, execute(ctx) { - const components = ctx.container.components as ActionRowBuilder[] + const components = ctx.container.components + ctx.container.actionRow?.components.forEach((x) => x.setDisabled(true)) - components.forEach(row => { + for (let comp of components) { + if (!(comp instanceof ActionRowBuilder)) continue const actionRow = new ActionRowBuilder() - row?.components.forEach(component => actionRow.addComponents(component.setDisabled(true))) - }) + comp?.components.forEach((x) => actionRow.addComponents(x.setDisabled(true))) + } return this.success() }, diff --git a/src/native/component/enableButtons.ts b/src/native/component/enableButtons.ts index 8c45849802..b5088dac33 100644 --- a/src/native/component/enableButtons.ts +++ b/src/native/component/enableButtons.ts @@ -21,12 +21,16 @@ export default new NativeFunction({ const data = ctx.container.components const components = Number.isFinite(index) ? new Array(data[index]) : data + ctx.container.actionRow?.components.forEach((x) => { + if (x instanceof ButtonBuilder) x.setDisabled(false) + }) + for (let i = 0, len = components.length; i < len; i++) { const row = components[i] - if (!("components" in row)) continue + if (!(row instanceof ActionRowBuilder)) continue const actionRow = new ActionRowBuilder() - row?.components.forEach(component => { - if (component instanceof ButtonBuilder) actionRow.addComponents(component.setDisabled(false)) + row?.components.forEach((x) => { + if (x instanceof ButtonBuilder) actionRow.addComponents(x.setDisabled(false)) }) } diff --git a/src/native/component/enableComponents.ts b/src/native/component/enableComponents.ts index 41e2e7cb54..b32d475331 100644 --- a/src/native/component/enableComponents.ts +++ b/src/native/component/enableComponents.ts @@ -1,4 +1,4 @@ -import { ActionRowBuilder, MessageActionRowComponentBuilder } from "discord.js" +import { ActionRowBuilder } from "discord.js" import { ArgType, NativeFunction, Return } from "../../structures" export default new NativeFunction({ @@ -8,12 +8,14 @@ export default new NativeFunction({ aliases: ["$enableAllComponents"], unwrap: false, execute(ctx) { - const components = ctx.container.components as ActionRowBuilder[] + const components = ctx.container.components + ctx.container.actionRow?.components.forEach((x) => x.setDisabled(false)) - components.forEach(row => { + for (let comp of components) { + if (!(comp instanceof ActionRowBuilder)) continue const actionRow = new ActionRowBuilder() - row?.components.forEach(component => actionRow.addComponents(component.setDisabled(false))) - }) + comp?.components.forEach((x) => actionRow.addComponents(x.setDisabled(false))) + } return this.success() },