channels not creating
hey folks can anyone check this code if I run the setup commmand and choose options voice and default only the category is created the channels does not create also the value of options logs empty
16 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.node version latest
type
s are numbers. you can fully utilize the ChannelTypes
enum literally
Names of Channel Types: usealso that ternary ordering without enclosing with parentheses could cause unexpected behaviorObject.keys()
and filter numbers out type:ChannelTypes['GuildVoice']
orChannelTypes.GuildVoice
but that can't be reason due to which I'm getting empty value when I log the options value
bruh.. the question you asked and the name of the channel are totally different. anywho, prolly you missing an intent..
what intent does I need for it
you got
GuildMessages
and GuildMessageContent
intent?I got guildMessages
btw is there any method in discord.js by which i can get all intents like there is a method in hikari to get all intents which is hikari.intents.all
there is not guildMessageContent
you there @lil bubby
my bad, it's
MessageContent
intent. either way, your vscode intellisense would tell yousolved that error due to which i was not getting option value btw can you look at this
and what's the issue?
I'm getting this error
coz one of those values you passed to the property
id
aren't a User
or Role
typei think this is due category.id
hey can you also check this it's giving me wrong number of counts
also this code does not places the category at the top position
Tag suggestion for @adityakirad:
Getting your bot's member count
•
client.users.cache.size
is unreliable because it will only return cached users
• The preferred method is using collection.reduce()
on client.guilds.cache
prolly set the position to 0