Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

195
Visualizações
DiscordJS setting welcomer to a certain channel
const channel = member.guild.channels.cache.find(ch => ch.type === 'text' && ch.permissionsFor(client.user.id).has('SEND_MESSAGES'))
member.guild.channels.cache.find(channel => channel.name === 'greetings' || 'welcome')
channel.send(welcomeembed);

I am trying to set the my welcomer to any channel called greetings or welcome i have tried to implement it with line 2 of the example above but did not work, how would i fix this

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

I am trying to set the my welcomer to any channel called greetings or welcome

member.guild.channels.cache.find(channel => channel.name === 'greetings' || channel.name === 'welcome')

This should works

about 4 years ago · Juan Pablo Isaza Relatório

0

const channel = member.guild.channels.cache.find(ch => ch.type === 'text' && ch.permissionsFor(client.user.id).has('SEND_MESSAGES') && ch.name === 'welcome')
if(channel) {
channel.send(welcomeembed);
}

fixed it

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda