xernerx 0.1.120-beta.39 → 0.1.120-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.cjs CHANGED
@@ -67,7 +67,7 @@ var XernerxInfo = class extends XernerxBase {
67
67
 
68
68
  // package.json
69
69
  var package_default = {
70
- version: "0.1.120-beta.39"};
70
+ version: "0.1.120-beta.40"};
71
71
 
72
72
  // src/tools/XernerxInitial.ts
73
73
  var XernerxInitial = class extends XernerxBase {
@@ -1281,16 +1281,60 @@ var XernerxMessageCommandBuilder = class extends XernerxBaseBuilder {
1281
1281
  super(id, options);
1282
1282
  options = z2.z.object({
1283
1283
  name: z2.z.string(),
1284
+ description: z2.z.string().optional(),
1284
1285
  alias: z2.z.union([z2.z.string(), z2.z.array(z2.z.string())]).default([]),
1285
1286
  prefix: z2.z.union([z2.z.string(), z2.z.array(z2.z.string())]).default([]),
1286
- premium: z2.z.any()
1287
+ separator: z2.z.string().default(" "),
1288
+ locales: z2.z.record(z2.z.string(), z2.z.object({ name: z2.z.string(), description: z2.z.string() })).optional(),
1289
+ integration: z2.z.array(z2.z.custom()).default(["GuildInstall"]),
1290
+ nsfw: z2.z.boolean().default(false),
1291
+ options: z2.z.any(),
1292
+ premium: z2.z.boolean().default(false),
1293
+ deploy: z2.z.object({ global: z2.z.boolean().default(true), guilds: z2.z.string().or(z2.z.array(z2.z.string())).default([]) }).optional(),
1294
+ info: z2.z.string().optional(),
1295
+ usage: z2.z.string().optional(),
1296
+ category: z2.z.string().optional(),
1297
+ cooldown: z2.z.number().min(0).default(0),
1298
+ strict: z2.z.object({
1299
+ owner: z2.z.boolean().default(false),
1300
+ users: z2.z.array(z2.z.string()).default([]),
1301
+ channels: z2.z.array(z2.z.string()).default([]),
1302
+ guilds: z2.z.array(z2.z.string()).default([]),
1303
+ types: z2.z.enum(discord_js.ChannelType).optional()
1304
+ }).optional(),
1305
+ ignore: z2.z.object({
1306
+ owner: z2.z.boolean().default(false),
1307
+ users: z2.z.array(z2.z.string()).default([]),
1308
+ channels: z2.z.array(z2.z.string()).default([]),
1309
+ guilds: z2.z.array(z2.z.string()).default([]),
1310
+ types: z2.z.enum(discord_js.ChannelType).optional()
1311
+ }).optional(),
1312
+ permissions: z2.z.object({
1313
+ client: z2.z.union([z2.z.array(z2.z.custom()), z2.z.number(), z2.z.bigint()]).nullable().default(null),
1314
+ user: z2.z.union([z2.z.array(z2.z.custom()), z2.z.number(), z2.z.bigint()]).nullable().default(null)
1315
+ }).default({ client: null, user: null })
1287
1316
  }).parse(options);
1288
1317
  this.name = options.name;
1289
1318
  this.alias = typeof options.alias == "string" ? [options.alias] : options.alias;
1290
1319
  this.prefix = typeof options.prefix == "string" ? [options.prefix] : options.prefix;
1291
- this.premium = options.premium;
1320
+ this.separator = options.separator || " ";
1321
+ this.description = options.description;
1322
+ this.info = options.info;
1323
+ this.usage = options.usage;
1324
+ this.category = options.category;
1325
+ this.cooldown = options.cooldown;
1326
+ this.premium = options.premium || false;
1327
+ this.deploy = {
1328
+ global: options.deploy?.global ?? true,
1329
+ guilds: typeof options.deploy?.guilds == "string" ? [options.deploy.guilds] : options.deploy?.guilds || []
1330
+ };
1331
+ this.permissions = options.permissions;
1332
+ this.strict = options.strict;
1333
+ this.ignore = options.ignore;
1292
1334
  this.filetype = "XernerxMessageCommand";
1293
1335
  }
1336
+ async conditions(args) {
1337
+ }
1294
1338
  /**
1295
1339
  * Executes the command logic. This function is intended to be overridden by subclasses.
1296
1340
  * If not overridden, it will log a warning indicating that the command will not respond.