@thediscordlist/discord.js 0.1.0 → 0.1.1
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/index.cjs +4 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let node_events = require("node:events");
|
|
3
3
|
let discord_js = require("discord.js");
|
|
4
|
+
//#region package.json
|
|
5
|
+
var version$1 = "0.1.1";
|
|
4
6
|
/**
|
|
5
7
|
* Drops `undefined` keys recursively. An explicit `null` survives, and must:
|
|
6
8
|
* the API's `prepareForValidation` only defaults keys that are *absent*, and
|
|
@@ -674,8 +676,8 @@ var CommandsPublisher = class extends Publisher {
|
|
|
674
676
|
* client.login(process.env.DISCORD_TOKEN);
|
|
675
677
|
* ```
|
|
676
678
|
*/
|
|
677
|
-
/**
|
|
678
|
-
const version =
|
|
679
|
+
/** This package's version, inlined from package.json at build time. */
|
|
680
|
+
const version = version$1;
|
|
679
681
|
const DEFAULT_BASE_URL = "https://thediscordlist.com/api";
|
|
680
682
|
const LOG_PREFIX = "[@thediscordlist/discord.js]";
|
|
681
683
|
var Autoposter = class extends node_events.EventEmitter {
|
package/dist/index.d.cts
CHANGED
|
@@ -115,8 +115,8 @@ interface PublisherEmitter {
|
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region src/index.d.ts
|
|
118
|
-
/**
|
|
119
|
-
declare const version
|
|
118
|
+
/** This package's version, inlined from package.json at build time. */
|
|
119
|
+
declare const version: string;
|
|
120
120
|
declare const DEFAULT_BASE_URL = "https://thediscordlist.com/api";
|
|
121
121
|
interface AutopostOptions {
|
|
122
122
|
/** Discord application id. Defaults to `client.application.id`. */
|
package/dist/index.d.mts
CHANGED
|
@@ -115,8 +115,8 @@ interface PublisherEmitter {
|
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region src/index.d.ts
|
|
118
|
-
/**
|
|
119
|
-
declare const version
|
|
118
|
+
/** This package's version, inlined from package.json at build time. */
|
|
119
|
+
declare const version: string;
|
|
120
120
|
declare const DEFAULT_BASE_URL = "https://thediscordlist.com/api";
|
|
121
121
|
interface AutopostOptions {
|
|
122
122
|
/** Discord application id. Defaults to `client.application.id`. */
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from "node:events";
|
|
2
2
|
import { Events, GatewayIntentBits, Status, version as version$1 } from "discord.js";
|
|
3
|
+
//#region package.json
|
|
4
|
+
var version$2 = "0.1.1";
|
|
3
5
|
/**
|
|
4
6
|
* Drops `undefined` keys recursively. An explicit `null` survives, and must:
|
|
5
7
|
* the API's `prepareForValidation` only defaults keys that are *absent*, and
|
|
@@ -673,8 +675,8 @@ var CommandsPublisher = class extends Publisher {
|
|
|
673
675
|
* client.login(process.env.DISCORD_TOKEN);
|
|
674
676
|
* ```
|
|
675
677
|
*/
|
|
676
|
-
/**
|
|
677
|
-
const version =
|
|
678
|
+
/** This package's version, inlined from package.json at build time. */
|
|
679
|
+
const version = version$2;
|
|
678
680
|
const DEFAULT_BASE_URL = "https://thediscordlist.com/api";
|
|
679
681
|
const LOG_PREFIX = "[@thediscordlist/discord.js]";
|
|
680
682
|
var Autoposter = class extends EventEmitter {
|
package/package.json
CHANGED