can i ask, how to properly find channel (by id or by name) without any user input? I am doing automatic channel, which updates every 30 seconds. So, is there any chance, that I can rename channel without any user interaction in the channel I am looking for? (By far, I haven't seen any answers to this topic) If you'd help me, I will thank you.
You can use <TextChannel>.edit() or <TextChannel>.setName() to change the channel name. More info here for using edit(). More info here for using setName(). For example, these would work:
<TextChannel>.edit()// Edit a channel
channel.edit({ name: 'new-channel' })
.then(console.log)
.catch(console.error);
<TextChannel>.setName()// Set a new channel name
channel.setName('not_general')
.then(newChannel => console.log(`Channel's new name is ${newChannel.name}`))
.catch(console.error);
Hoped this helped!