summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/entities/Channel.ts2
-rw-r--r--src/util/interfaces/Event.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/util/entities/Channel.ts b/src/util/entities/Channel.ts

index 3ee4df43..454f6b6c 100644 --- a/src/util/entities/Channel.ts +++ b/src/util/entities/Channel.ts
@@ -549,7 +549,7 @@ export class Channel extends BaseClass { }), }, channel_id: channel.id, - } as ChannelRecipientRemoveEvent); + } satisfies ChannelRecipientRemoveEvent); } static async deleteChannel(channel: Channel) { diff --git a/src/util/interfaces/Event.ts b/src/util/interfaces/Event.ts
index 3e1483d9..ed4f70a9 100644 --- a/src/util/interfaces/Event.ts +++ b/src/util/interfaces/Event.ts
@@ -190,7 +190,7 @@ export interface ChannelRecipientAddEvent extends Event { event: "CHANNEL_RECIPIENT_ADD"; data: { channel_id: string; - user: User; + user: PublicUser; }; } @@ -198,7 +198,7 @@ export interface ChannelRecipientRemoveEvent extends Event { event: "CHANNEL_RECIPIENT_REMOVE"; data: { channel_id: string; - user: User; + user: PublicUser; }; }