mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46: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
|
export interface ThreadChannel
|
||||||
extends ObjectToLower<Omit<APIThreadChannel, 'permission_overwrites' | 'guild_id'>>,
|
extends ObjectToLower<Omit<APIThreadChannel, 'permission_overwrites' | 'guild_id'>>,
|
||||||
Omit<TextBaseGuildChannel, 'edit' | 'parentId'> {}
|
Omit<TextBaseGuildChannel, 'edit' | 'parentId'> {
|
||||||
|
parentId: string;
|
||||||
|
}
|
||||||
@mix(TextBaseGuildChannel)
|
@mix(TextBaseGuildChannel)
|
||||||
export class ThreadChannel extends BaseChannel<
|
export class ThreadChannel extends BaseChannel<
|
||||||
ChannelType.PublicThread | ChannelType.AnnouncementThread | ChannelType.PrivateThread
|
ChannelType.PublicThread | ChannelType.AnnouncementThread | ChannelType.PrivateThread
|
||||||
> {
|
> {
|
||||||
parentId!: string;
|
|
||||||
declare type: ChannelType.PublicThread | ChannelType.AnnouncementThread | ChannelType.PrivateThread;
|
declare type: ChannelType.PublicThread | ChannelType.AnnouncementThread | ChannelType.PrivateThread;
|
||||||
|
|
||||||
webhooks = WebhookChannelMethods.channel({
|
webhooks = WebhookChannelMethods.channel({
|
||||||
client: this.client,
|
client: this.client,
|
||||||
channelId: this.parentId,
|
channelId: this.parentId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user