mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 12:36:08 +00:00
fix: Error with ThreadChannel#webhooks for bad patchClass interaction (#341)
This commit is contained in:
parent
e4f715515c
commit
5de23ffe58
@ -581,13 +581,15 @@ export class ForumChannel extends BaseGuildChannel {
|
||||
|
||||
export interface ThreadChannel
|
||||
extends ObjectToLower<Omit<APIThreadChannel, 'permission_overwrites' | 'guild_id'>>,
|
||||
Omit<TextBaseGuildChannel, 'edit' | 'parentId'> {}
|
||||
Omit<TextBaseGuildChannel, 'edit' | 'parentId'> {
|
||||
parentId: string;
|
||||
}
|
||||
@mix(TextBaseGuildChannel)
|
||||
export class ThreadChannel extends BaseChannel<
|
||||
ChannelType.PublicThread | ChannelType.AnnouncementThread | ChannelType.PrivateThread
|
||||
> {
|
||||
parentId!: string;
|
||||
declare type: ChannelType.PublicThread | ChannelType.AnnouncementThread | ChannelType.PrivateThread;
|
||||
|
||||
webhooks = WebhookChannelMethods.channel({
|
||||
client: this.client,
|
||||
channelId: this.parentId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user