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

191
Visualizações
how do I set my bot sending all the logs to a named channel?
let logschannel = message.guild.channels.cache.find(channel =\> channel.name === 'logs');

I want to get my bot to send logs from joining and leaving to deleting a message in a specifically named channel. Can someone help?

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

0

Please change =/> to => And then, check this out: https://discord.js.org/#/docs/discord.js/stable/typedef/WSEventType

You would probably like to run your code with every guild event in the above docs link.

about 4 years ago · Juan Pablo Isaza Relatório

0

You got one wrong code in your given code which is the =\> to do this you need to find first the channel, yes, you do it right. You just need to change =\> to =>.

Now when you finished changing that all you need to do is to call the logschannel

let logschannel = message.guild.channels.cache.find(channel => channel.name === 'logs');
loschannel.send({content: "your content"})

can do with embeds too.

let logschannel = message.guild.channels.cache.find(channel => channel.name === 'logs');
logschannel.send({embeds: [your_embed_name]});
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