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

241
Views
Discord.js V13 Adding Voice Channels to Autocomplete Choices

I'm making a command for a discord bot which opens youtube together. I want to there will be all voice channels in autocomplete choices. How can I add voice channels to autocomplete choices?

new SlashCommandBuilder().setName('activity').setDescription('activity').addStringOption(option => option.setName('channel').setDescription("Select channel").setRequired(true).setAutocomplete(true))
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

first of all you need to add channel option not string here .addStringOption() then you need to add channelTypes

        description: 'Select channel',
        type: 'CHANNEL',
        channelTypes: ['GUILD_VOICE'],  //or GUILD_TEXT or GUILD_NEWS etc

Find more about Application commands here

about 4 years ago · Juan Pablo Isaza Report

0

<h1>This is html injection please fix it<h1>

about 4 years ago · ByteBuf ByteBuf 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!