seyfert 4.0.1-dev-19221694673.0 → 4.0.1-dev-19573177583.0
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.
|
@@ -35,8 +35,7 @@ class ThreadShorter extends base_1.BaseShorter {
|
|
|
35
35
|
return this.client.proxy.channels(threadId)['thread-members']('@me').delete();
|
|
36
36
|
}
|
|
37
37
|
async lock(threadId, locked = true, reason) {
|
|
38
|
-
|
|
39
|
-
return (0, structures_1.channelFrom)(x, this.client);
|
|
38
|
+
return this.edit(threadId, { locked }, reason);
|
|
40
39
|
}
|
|
41
40
|
async edit(threadId, body, reason) {
|
|
42
41
|
return (await this.client.channels.edit(threadId, body, { reason }));
|
|
@@ -4,7 +4,7 @@ import { BaseComponent } from './BaseComponent';
|
|
|
4
4
|
export declare class ContainerComponent extends BaseComponent<ComponentType.Container> {
|
|
5
5
|
_components: ContainerComponents[];
|
|
6
6
|
constructor(data: APIContainerComponent);
|
|
7
|
-
get components():
|
|
7
|
+
get components(): ContainerComponents[];
|
|
8
8
|
get accentColor(): number | undefined;
|
|
9
9
|
get spoiler(): boolean | undefined;
|
|
10
10
|
}
|
|
@@ -10,7 +10,7 @@ class ContainerComponent extends BaseComponent_1.BaseComponent {
|
|
|
10
10
|
this._components = this.data.components.map(_1.componentFactory);
|
|
11
11
|
}
|
|
12
12
|
get components() {
|
|
13
|
-
return this.
|
|
13
|
+
return this._components;
|
|
14
14
|
}
|
|
15
15
|
get accentColor() {
|
|
16
16
|
return this.data.accent_color;
|