@open-discord-bots/framework 0.3.9 → 0.3.10

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.3.9"));
47
+ this.versions.add(ODVersion.fromString("opendiscord:api", "v0.3.10"));
48
48
  this.versions.add(ODVersion.fromString("opendiscord:livestatus", "v2.0.0"));
49
49
  this.debugfile = managers.debugfile;
50
50
  this.console = managers.console;
@@ -12,6 +12,7 @@ import { ODWorkerManager } from "./worker.js";
12
12
  export declare class ODVerifyBar<ButtonIds extends string, WorkerIds extends string = string> extends ODManagerData {
13
13
  /**All workers that will run when a button in the verifybar is pressed. */
14
14
  workers: ODWorkerManager<ODButtonResponderInstance, "verifybar", {
15
+ verifybar: ODVerifyBar<ButtonIds, WorkerIds>;
15
16
  selectedButtonId: ButtonIds;
16
17
  }, WorkerIds>;
17
18
  constructor(id: ODValidId);
@@ -19,7 +19,7 @@ export class ODVerifyBar extends ODManagerData {
19
19
  }
20
20
  /**Activate the verifybar response to this button. */
21
21
  async activate(responder, selectedButtonId) {
22
- await this.workers.executeWorkers(responder, "verifybar", { selectedButtonId });
22
+ await this.workers.executeWorkers(responder, "verifybar", { verifybar: this, selectedButtonId });
23
23
  }
24
24
  }
25
25
  /**## ODVerifyBarManager `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.3.9",
4
+ "version": "0.3.10",
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/src/api/main.ts CHANGED
@@ -154,7 +154,7 @@ export abstract class ODMain implements ODMainManagers {
154
154
  constructor(managers:ODMainManagers,project:ODProjectType){
155
155
  this.project = project
156
156
  this.versions = managers.versions
157
- this.versions.add(ODVersion.fromString("opendiscord:api","v0.3.9"))
157
+ this.versions.add(ODVersion.fromString("opendiscord:api","v0.3.10"))
158
158
  this.versions.add(ODVersion.fromString("opendiscord:livestatus","v2.0.0"))
159
159
 
160
160
  this.debugfile = managers.debugfile
@@ -16,7 +16,7 @@ import * as discord from "discord.js"
16
16
  */
17
17
  export class ODVerifyBar<ButtonIds extends string,WorkerIds extends string = string> extends ODManagerData {
18
18
  /**All workers that will run when a button in the verifybar is pressed. */
19
- workers: ODWorkerManager<ODButtonResponderInstance,"verifybar",{selectedButtonId:ButtonIds},WorkerIds>
19
+ workers: ODWorkerManager<ODButtonResponderInstance,"verifybar",{verifybar:ODVerifyBar<ButtonIds,WorkerIds>,selectedButtonId:ButtonIds},WorkerIds>
20
20
 
21
21
  constructor(id:ODValidId){
22
22
  super(id)
@@ -25,7 +25,7 @@ export class ODVerifyBar<ButtonIds extends string,WorkerIds extends string = str
25
25
 
26
26
  /**Activate the verifybar response to this button. */
27
27
  async activate(responder:ODButtonResponderInstance,selectedButtonId:ButtonIds){
28
- await this.workers.executeWorkers(responder,"verifybar",{selectedButtonId})
28
+ await this.workers.executeWorkers(responder,"verifybar",{verifybar:this,selectedButtonId})
29
29
  }
30
30
  }
31
31