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

Cannot get parent or parentID of a channel. #4918

Closed
1 task done
notlouis opened this issue Oct 19, 2020 · 6 comments · Fixed by #4919
Closed
1 task done

Cannot get parent or parentID of a channel. #4918

notlouis opened this issue Oct 19, 2020 · 6 comments · Fixed by #4919

Comments

@notlouis
Copy link

Please describe the problem you are having in as much detail as possible:
Cannot seem to get the parent or parentID of a channel with a parent.

Include a reproducible code sample here, if possible:

console.log(message.channel.parent) //returns null
console.log(message.channel.parentID) //returns null

Further details:

  • discord.js version: 12.4.0
  • Node.js version: 14.14.0
  • Operating system: Lubuntu
  • Priority this issue should have – please be realistic and elaborate if possible:
    Medium - High, lots of commands rely on categories and being unable to get them can be a big issue.

Relevant client options:

  • partials: none

  • gateway intents: none

  • other: none

  • I have also tested the issue on latest master, commit hash:

@Fyrlex
Copy link

Fyrlex commented Oct 19, 2020

if there is no category, this will obviously happen i believe. you should make a catch to prevent errors.

you could also try fetching the channel

@almostSouji
Copy link
Member

CR on 12.4.0, though discord seems to be having hiccups at the moment I do not believe that to be related

@notlouis
Copy link
Author

if there is no category, this will obviously happen i believe. you should make a catch to prevent errors.

There is a category, i've tried it on every channel in the server and with the same result. I'll try fetching shortly.

@markito12
Copy link

same here

@adrienbrignon
Copy link
Contributor

adrienbrignon commented Oct 29, 2020

Hello,

I don't know if Discord is having issues at the moment but I am also unable to retrieve the parent category of my channels.

image

The parent of the 'debug' voice channel is null but it shouldn't be.

@SpaceEEC
Copy link
Member

That was fixed with 12.4.1, you may want to update your discord.js version.

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

Successfully merging a pull request may close this issue.

6 participants