Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread Parent Type can not be a GuildForm #8666

Closed
ryanagillie opened this issue Sep 22, 2022 · 1 comment
Closed

Thread Parent Type can not be a GuildForm #8666

ryanagillie opened this issue Sep 22, 2022 · 1 comment

Comments

@ryanagillie
Copy link

ryanagillie commented Sep 22, 2022

Which package is this bug report for?

discord.js

Issue description

The way to check if a thread was created in a forum channel is to check if the parent's type is a GuildForum. However, the types say that there is no overlap.

image

Code sample

client.on('threadCreate', async (thread) => {
  if (thread.type === ChannelType.PublicThread && thread.parent?.type === ChannelType.GuildForum) {

  }
});

Package version

14.4.0

Node.js version

16.17.0

Operating system

Windows 11

Priority this issue should have

Low (slightly annoying)

Which partials do you have configured?

Message

Which gateway intents are you subscribing to?

Guilds, GuildMessages, MessageContent

I have tested this issue on a development release

abb7226

@ryanagillie
Copy link
Author

ryanagillie commented Sep 22, 2022

Neverminded, I forgot to check PRs and this is being fixed in #8664. Keep up the good work!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants