fix type in channel.ts

This commit is contained in:
dakkar 2024-10-09 17:56:40 +01:00
parent 671d71b3ba
commit dec81d32d3

View file

@ -30,7 +30,7 @@ class ChannelChannel extends Channel {
}
@bindThis
public async init(params: any) {
public async init(params: JsonObject) {
if (typeof params.channelId !== 'string') return;
this.channelId = params.channelId;
this.withFiles = !!(params.withFiles ?? false);