Enable Community using Discord.js
So, this might be a stupid question, but I haven't found anything about it online.
Is there any way for a bot (programmed with Discord,js) to enable the community option (the option on the image)?
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.I dont think it is. At least i have't seen anything about it
I tried that, but it wasn't working. Yet, I'm not sure if what I did was correct either.
Let me just get the code I used
So, basically what happens is, after creating a channel, I then try to enable Community and turn the channel into the Rules and Guidelines channel
I saw that, but after searching online, that seems to be an incorrect error, which I'm not sure if it is or not
After not being able to enable community, I discovered you still can turn a text channel into the Rules and Guidelines channel, without having Community enabled. But still, I just wanted there was a way to do it with the bot.
But I did that ;-; Still didn't work. Again, it probably is something in the code, just don't know what. Let me get the error it gave me
oohhh
then what's the best way to do it?
(I literally got that line of code from ChatGPT... that's how lost I was)
(The rest is mine, don't worry. I know some JavaScript)
Ok, I changed the code, but it didn't work... kinda.
It did not activate community, but the channels are defined
I did create it
The channels exist and are defined as rules and updates channel
But for some reason, in the error it says undefined
I don't think I understood. How exactly do I do that?
Resources to understand Promise:
• MDN: learn more
• Guide: learn more
• JavaScript info: learn more
So like this?
Didn't work. Same error.
I FRICKING DID IT!!!
Thanks @jiralite and @qjuh for the help!