Answer the question
In order to leave comments, you need to log in
Is it possible to change the name of the channel by its ID in discord (without using the name)?
In manuals and on the Internet they write like this:
client.guilds.get(GUILD_ID).channels.get(746324211768885318).setName("Проба");
TypeError: Cannot read property 'setName' of undefined
guild.channels.find(channel => CHANNEL_NAME === channel.name);
const guild = bot.guilds.cache.get("id_гильдии")
const channel = guild.channels.cache.find(channel => channel.id === "id_канала")
channel.setName("members")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question