@tixyel/streamelements 6.0.1 → 6.0.2
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.d.ts +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1874,7 +1874,7 @@ interface CommandOptions {
|
|
|
1874
1874
|
run: (this: Client, args: string[], event: CommandEvent) => void;
|
|
1875
1875
|
test?: string;
|
|
1876
1876
|
aliases?: string[];
|
|
1877
|
-
permissions?: string[];
|
|
1877
|
+
permissions?: string[] | boolean;
|
|
1878
1878
|
admins?: string[];
|
|
1879
1879
|
}
|
|
1880
1880
|
type CommandEvent = {
|
package/dist/index.es.js
CHANGED
|
@@ -6090,7 +6090,7 @@ var y;
|
|
|
6090
6090
|
})(y || (y = {}));
|
|
6091
6091
|
class it {
|
|
6092
6092
|
constructor(e) {
|
|
6093
|
-
this.field = "button", this.template = "button", this.name = "Button", this.value = "", window.client instanceof G && (this.field = e.field ?? this.field, this.template = e.template ?? this.template, this.name = e.name ?? this.name, this.value = e.value ?? this.value, this.run = e.run, window.client.actions.buttons.push(this), window.client.emit("action", this, "created"));
|
|
6093
|
+
this.field = "button", this.template = "button", this.name = "Button", this.value = "", window.client instanceof G && (this.field = e.field ?? this.field, this.template = e.template ?? (typeof this.field == "string" ? this.field : this.template), this.name = e.name ?? this.name, this.value = e.value ?? this.value, this.run = e.run, window.client.actions.buttons.push(this), window.client.emit("action", this, "created"));
|
|
6094
6094
|
}
|
|
6095
6095
|
generate(e) {
|
|
6096
6096
|
return y.utils.typedValues(e).reduce(
|