@open-discord-bots/framework 0.4.5 → 0.4.6

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/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.4.5"));
47
+ this.versions.add(ODVersion.fromString("opendiscord:api", "v0.4.6"));
48
48
  this.versions.add(ODVersion.fromString("opendiscord:livestatus", "v2.0.0"));
49
49
  this.debugfile = managers.debugfile;
50
50
  this.console = managers.console;
@@ -15,7 +15,7 @@ export declare class ODComponentFactoryInstance<Component extends ODComponent<ob
15
15
  /**The root component of this factory. */
16
16
  getComponent(): Component | null;
17
17
  /**Set the root component of this factory. */
18
- setComponent(c: Component | null): Component | null;
18
+ setComponent<SetComponent extends Component | null>(c: SetComponent): SetComponent;
19
19
  }
20
20
  /**## ODComponentFactory `class`
21
21
  * An Open Discord component factory.
@@ -20,7 +20,7 @@ export class ODComponentFactoryInstance {
20
20
  /**Set the root component of this factory. */
21
21
  setComponent(c) {
22
22
  this.rootComponent = c;
23
- return this.rootComponent;
23
+ return c;
24
24
  }
25
25
  }
26
26
  /**## ODComponentFactory `class`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@open-discord-bots/framework",
3
3
  "author": "DJj123dj",
4
- "version": "0.4.5",
4
+ "version": "0.4.6",
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",