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
d.js toolkit
d.js toolkit2y ago
• 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.
The_Gam3r_King
The_Gam3r_KingOP2y ago
treble/luna
treble/luna2y ago
I dont think it is. At least i have't seen anything about it
The_Gam3r_King
The_Gam3r_KingOP2y ago
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
The_Gam3r_King
The_Gam3r_KingOP2y ago
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
The_Gam3r_King
The_Gam3r_KingOP2y ago
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)
The_Gam3r_King
The_Gam3r_KingOP2y ago
Ok, I changed the code, but it didn't work... kinda.
The_Gam3r_King
The_Gam3r_KingOP2y ago
It did not activate community, but the channels are defined
The_Gam3r_King
The_Gam3r_KingOP2y ago
I did create it
The_Gam3r_King
The_Gam3r_KingOP2y ago
The channels exist and are defined as rules and updates channel
The_Gam3r_King
The_Gam3r_KingOP2y ago
But for some reason, in the error it says undefined I don't think I understood. How exactly do I do that?
d.js docs
d.js docs2y ago
Resources to understand Promise: • MDN: learn more • Guide: learn more • JavaScript info: learn more
The_Gam3r_King
The_Gam3r_KingOP2y ago
So like this?
The_Gam3r_King
The_Gam3r_KingOP2y ago
Didn't work. Same error.
The_Gam3r_King
The_Gam3r_KingOP2y ago
The_Gam3r_King
The_Gam3r_KingOP2y ago
I FRICKING DID IT!!! Thanks @jiralite and @qjuh for the help!
Want results from more Discord servers?
Add your server