mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
refactor(GuildChannelManager): improve addFollower errors (#10277)
refactor(GuildChannelManager): improve errors Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
4
packages/discord.js/typings/index.d.ts
vendored
4
packages/discord.js/typings/index.d.ts
vendored
@@ -2464,6 +2464,8 @@ export class NewsChannel extends BaseGuildTextChannel {
|
||||
public addFollower(channel: TextChannelResolvable, reason?: string): Promise<NewsChannel>;
|
||||
}
|
||||
|
||||
export type NewsChannelResolvable = NewsChannel | Snowflake;
|
||||
|
||||
export class OAuth2Guild extends BaseGuild {
|
||||
private constructor(client: Client<true>, data: RawOAuth2GuildData);
|
||||
public owner: boolean;
|
||||
@@ -4219,7 +4221,7 @@ export class GuildChannelManager extends CachedManager<Snowflake, GuildBasedChan
|
||||
public guild: Guild;
|
||||
|
||||
public addFollower(
|
||||
channel: NewsChannel | Snowflake,
|
||||
channel: NewsChannelResolvable,
|
||||
targetChannel: TextChannelResolvable,
|
||||
reason?: string,
|
||||
): Promise<Snowflake>;
|
||||
|
||||
Reference in New Issue
Block a user