UNPKG

forgescript

Version:

ForgeScript is a comprehensive package that empowers you to effortlessly interact with Discord's API. It ensures scripting remains easy to learn and consistently effective.

29 lines 895 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../structures"); exports.default = new structures_1.NativeFunction({ name: "$setGuildSplash", version: "1.0.0", description: "Sets a guild splash, returns boolean", unwrap: true, args: [ { name: "guild ID", rest: false, type: structures_1.ArgType.Guild, required: true, description: "The guild to set splash on", }, { name: "url", description: "The new splash", rest: false, type: structures_1.ArgType.String, }, ], brackets: true, async execute(_, [guild, icon]) { return this.success((await guild.setSplash(icon || null).catch(() => false)) !== false); }, }); //# sourceMappingURL=setGuildSplash.js.map