¿Puedo preguntar cómo encontrar correctamente el canal (por id o por nombre) sin ninguna intervención del usuario? Estoy haciendo un canal automático, que se actualiza cada 30 segundos. Entonces, ¿hay alguna posibilidad de que pueda cambiar el nombre del canal sin ninguna interacción del usuario en el canal que estoy buscando? (Por el momento, no he visto ninguna respuesta a este tema) Si me ayudas, te lo agradeceré.
Puede usar <TextChannel>.edit() o <TextChannel>.setName() para cambiar el nombre del canal. Más información aquí para usar edit() . Más información aquí para usar setName() . Por ejemplo, estos funcionarían:
<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);¡Esperaba que esto ayudara!