Reputation: 13
I Want To Set System Channel Messages With Discordjs v12
i tried:
message.guild.systemChannel.set(channel)
But It Doesent Work
Upvotes: 0
Views: 201
Reputation: 643
First you should look for the specific channel like:
const testChannel = client.channels.cache.find(channel => channel.name === "yourchannelname");
and then:
message.guild.systemChannel.set(testChannel)
I would do it when client.once is ready or guildMemberAdd
Let me remind you that this is working for me in discord.js 12.5.1
and last version is 13.5.0
Upvotes: 2