@open-discord-bots/framework 0.3.15 → 0.3.17
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/README.md +5 -1
- package/dist/api/main.js +1 -1
- package/dist/api/modules/state.js +2 -2
- package/package.json +1 -1
- package/.gitattributes +0 -2
- package/tsconfig.json +0 -15
package/README.md
CHANGED
|
@@ -31,6 +31,8 @@ We do currently <b>NOT</b> provide support for <b>3rd party implementations</b>
|
|
|
31
31
|
|
|
32
32
|
- **Builders** - Advanced template-based message, embed, modal & component builders for extensible layouts.
|
|
33
33
|
|
|
34
|
+
- **Components** - Advanced template-based message, modal & component v2 factories for extensible & repeatable layouts.
|
|
35
|
+
|
|
34
36
|
- **Responders** - Respond to slash & text-based commands in one go with the same code!
|
|
35
37
|
|
|
36
38
|
- **Config** - Register JSON config files, use an advanced checker for validation or save/reload files in real-time.
|
|
@@ -51,7 +53,9 @@ We do currently <b>NOT</b> provide support for <b>3rd party implementations</b>
|
|
|
51
53
|
|
|
52
54
|
- **Console** - Interact with the console using a startscreen, progress bars & interactive menu's.
|
|
53
55
|
|
|
54
|
-
- **Large Ecosystem** - The same
|
|
56
|
+
- **Large Ecosystem** - The same plugins work in all projects using Open discord (e.g. Open Ticket / Moderation)
|
|
57
|
+
|
|
58
|
+
- **Message States** - Store additional metadata linked to messages. The garbage collector auto-deletes expired metadata.
|
|
55
59
|
|
|
56
60
|
## 🛠️ Contributors
|
|
57
61
|
### ❤️ Sponsors
|
package/dist/api/main.js
CHANGED
|
@@ -44,7 +44,7 @@ export class ODMain {
|
|
|
44
44
|
constructor(managers, project) {
|
|
45
45
|
this.project = project;
|
|
46
46
|
this.versions = managers.versions;
|
|
47
|
-
this.versions.add(ODVersion.fromString("opendiscord:api", "v0.3.
|
|
47
|
+
this.versions.add(ODVersion.fromString("opendiscord:api", "v0.3.17"));
|
|
48
48
|
this.versions.add(ODVersion.fromString("opendiscord:livestatus", "v2.0.0"));
|
|
49
49
|
this.debugfile = managers.debugfile;
|
|
50
50
|
this.console = managers.console;
|
|
@@ -182,8 +182,8 @@ export class ODState extends ODManagerData {
|
|
|
182
182
|
}
|
|
183
183
|
/**Delete all message states from this ODState. */
|
|
184
184
|
async clearAllMsgStates() {
|
|
185
|
-
for (const state of await this.
|
|
186
|
-
await this.database.delete(
|
|
185
|
+
for (const state of await this.listMsgStates()) {
|
|
186
|
+
await this.database.delete(this.id.value, state.key);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
/**Delete a message state using the raw key. Returns `true` when deleted. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-discord-bots/framework",
|
|
3
3
|
"author": "DJj123dj",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.17",
|
|
5
5
|
"description": "The core framework of the popular open-source discord bots: Open Ticket & Open Moderation.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
package/.gitattributes
DELETED
package/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2025",
|
|
4
|
-
"strictNullChecks": true,
|
|
5
|
-
"strictPropertyInitialization": true,
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"module": "NodeNext",
|
|
8
|
-
"moduleResolution": "NodeNext",
|
|
9
|
-
"rootDir": "./src",
|
|
10
|
-
"outDir": "./dist"
|
|
11
|
-
},
|
|
12
|
-
"include": [
|
|
13
|
-
"src/**/*"
|
|
14
|
-
]
|
|
15
|
-
}
|