diff --git a/lib/src/entities/user.ts b/lib/src/entities/user.ts index 9b34a5d..b456163 100644 --- a/lib/src/entities/user.ts +++ b/lib/src/entities/user.ts @@ -149,7 +149,10 @@ export class User { * Moderation restrictions */ - async setRestrictions(channel: Channel, params: { ban?: boolean; mute?: boolean }) { + async setRestrictions( + channel: Channel, + params: { ban?: boolean; mute?: boolean; reason?: string } + ) { if (!(this.chat.sdk as any)._config.secretKey) throw "Moderation restrictions can only be set by clients initialized with a Secret Key." return this.chat.setRestrictions(this.id, channel.id, params)