mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
types: Disallow some channel types from webhook creation (#8535)
This commit is contained in:
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -3229,7 +3229,7 @@ export class GuildChannelManager extends CachedManager<Snowflake, GuildBasedChan
|
||||
public createWebhook(
|
||||
channel: GuildChannelResolvable,
|
||||
name: string,
|
||||
options?: ChannelWebhookCreateOptions,
|
||||
options?: TextChannel | NewsChannel | VoiceChannel | Snowflake,
|
||||
): Promise<Webhook>;
|
||||
public edit(channel: GuildChannelResolvable, data: ChannelData, reason?: string): Promise<GuildChannel>;
|
||||
public fetch(id: Snowflake, options?: BaseFetchOptions): Promise<NonThreadGuildBasedChannel | null>;
|
||||
|
||||
Reference in New Issue
Block a user