Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
DJS v13 - Renaming a channel without any user interaction

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.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

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:

Using <TextChannel>.edit()

// Edit a channel
channel.edit({ name: 'new-channel' })
  .then(console.log)
  .catch(console.error);

Using <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!

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!