Skip to content

Commit

Permalink
types(GuildInvitableChannelResolvable): Allow forum channels (#9775)
Browse files Browse the repository at this point in the history
types(GuildInvitableChannelResolvable): allow forum channels

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
Jiralite and kodiakhq[bot] committed Aug 14, 2023
1 parent d5be424 commit 727dc09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/discord.js/src/managers/GuildInviteManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ class GuildInviteManager extends CachedManager {
* * VoiceChannel
* * NewsChannel
* * StageChannel
* * ForumChannel
* * Snowflake
* @typedef {TextChannel|VoiceChannel|NewsChannel|StageChannel|Snowflake}
* @typedef {TextChannel|VoiceChannel|NewsChannel|StageChannel|ForumChannel|Snowflake}
* GuildInvitableChannelResolvable
*/

Expand Down
8 changes: 7 additions & 1 deletion packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5797,7 +5797,13 @@ export interface InviteGenerationOptions {
scopes: OAuth2Scopes[];
}

export type GuildInvitableChannelResolvable = TextChannel | VoiceChannel | NewsChannel | StageChannel | Snowflake;
export type GuildInvitableChannelResolvable =
| TextChannel
| VoiceChannel
| NewsChannel
| StageChannel
| ForumChannel
| Snowflake;

export interface InviteCreateOptions {
temporary?: boolean;
Expand Down

0 comments on commit 727dc09

Please sign in to comment.