hi ı update my bot v12 to v14. my bot online but not working. what is the problem

hi ı update my bot v12 to v14. my bot online but not working. what is the problem but dont came error in console
57 Replies
d.js toolkit
d.js toolkit17mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Post the full error stack trace, not just the top part! - Show your code! - Explain what exactly your issue is. - Not a discord.js issue? Check out #useful-servers.
grass
grass17mo ago
what do you mean by not working
d.js docs
d.js docs17mo ago
To help you we need more information: - What are you trying to do? - What is your code? - What errors and debug logs do you have?
Alperenl
AlperenlOP17mo ago
okey my bot is online but not working ı say ,help (,yardım is a turkish) but my bot not say anything
grass
grass17mo ago
show your code
Alperenl
AlperenlOP17mo ago
okey const { Client } = Discord; // Burayı değiştirdim const client = new Client({ intents: 32767 }); // Burayı değiştirdim
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs17mo ago
Tag suggestion for @alperenl: We highly recommend only specifying the intents you actually need. - Note, that 98303, 32767 or whatever other magic number you read that represents "all intents", gets outdated as soon as new intents are introduced. - The number will always represent the same set of intents, and will not include new ones. There is no magic "all intents" bit.
grass
grass17mo ago
show your code for messageCreate too oh
Alperenl
AlperenlOP17mo ago
ok ı send you
Alperenl
AlperenlOP17mo ago
const Discord = require('discord.js') const { EmbedBuilder } = require('discord.js') module.exports = { kod: "yardım", async run (client, message, args) { const kanal = new Discord.EmbedBuilder() .setTitle('komut listesi') .setDescription('') .setAuthor('Warden') .setColor("RANDOM") .setThumbnail('https://cdn.discordapp.com/avatars/845376842486775868/c7d64b45fa676e51a475554bea625940.webp?size=4096') .setFooter(' sürüm 2.2.0 ') .addFieldsss('hesap-oluştur', 'önce hesap oluturmakla başlayalım') .addFields('çalış', ' hesap kurduktan sonra rastgele para verir') .addFields('prefix-ayarla', 'ön ek değiştirmeyi sağlar') .addFields('cüzdan', 'bakiyenizi gösterir') .addFields('ping', 'botun pingini gösterir') .addFields('öneri', 'botun geliştiricisine önerinizi gönderir') .addFields('bildir', 'bot ile ilgli şikayet veya bir hata bildirir') .addFields('yatır', 'bankaya para yatırır') .addFields('çek', 'bankadan para çeker') .addFields('market', 'botun marketini açar') .addFields('para-gönder <@etiket> <miktar>', 'para transferi yapmayı sağlar') .addFields('linkler', 'Destek Sunucu | Davet | geliştirici') message.channel.send({ embeds: [kanal] }) } }
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
Alperenl
AlperenlOP17mo ago
this code
d.js docs
d.js docs17mo ago
To share long code snippets use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks.
Alperenl
AlperenlOP17mo ago
oke
const Discord = require('discord.js')
const { EmbedBuilder } = require('discord.js')
module.exports = {
kod: "yardım",
async run (client, message, args) {

const kanal = new Discord.EmbedBuilder()


.setTitle('komut listesi')
.setDescription('')
.setAuthor('Warden')
.setColor("RANDOM")
.setThumbnail('https://cdn.discordapp.com/avatars/845376842486775868/c7d64b45fa676e51a475554bea625940.webp?size=4096')
.setFooter(' sürüm 2.2.0 ')

.addFieldsss('hesap-oluştur', 'önce hesap oluturmakla başlayalım')
.addFields('çalış', ' hesap kurduktan sonra rastgele para verir')
.addFields('prefix-ayarla', 'ön ek değiştirmeyi sağlar')
.addFields('cüzdan', 'bakiyenizi gösterir')
.addFields('ping', 'botun pingini gösterir')
.addFields('öneri', 'botun geliştiricisine önerinizi gönderir')
.addFields('bildir', 'bot ile ilgli şikayet veya bir hata bildirir')
.addFields('yatır', 'bankaya para yatırır')
.addFields('çek', 'bankadan para çeker')
.addFields('market', 'botun marketini açar')
.addFields('para-gönder <@etiket> <miktar>', 'para transferi yapmayı sağlar')
.addFields('linkler', '[Destek Sunucu](https://discord.gg/PxUNhjsQ7D) | [Davet](https://discord.com/api/oauth2/authorize?client_id=845376842486775868&permissions=8&scope=bot) | [geliştirici](https://discord.com/channels/@me/534813683050610691)')

message.channel.send({ embeds: [kanal] })
}
}
const Discord = require('discord.js')
const { EmbedBuilder } = require('discord.js')
module.exports = {
kod: "yardım",
async run (client, message, args) {

const kanal = new Discord.EmbedBuilder()


.setTitle('komut listesi')
.setDescription('')
.setAuthor('Warden')
.setColor("RANDOM")
.setThumbnail('https://cdn.discordapp.com/avatars/845376842486775868/c7d64b45fa676e51a475554bea625940.webp?size=4096')
.setFooter(' sürüm 2.2.0 ')

.addFieldsss('hesap-oluştur', 'önce hesap oluturmakla başlayalım')
.addFields('çalış', ' hesap kurduktan sonra rastgele para verir')
.addFields('prefix-ayarla', 'ön ek değiştirmeyi sağlar')
.addFields('cüzdan', 'bakiyenizi gösterir')
.addFields('ping', 'botun pingini gösterir')
.addFields('öneri', 'botun geliştiricisine önerinizi gönderir')
.addFields('bildir', 'bot ile ilgli şikayet veya bir hata bildirir')
.addFields('yatır', 'bankaya para yatırır')
.addFields('çek', 'bankadan para çeker')
.addFields('market', 'botun marketini açar')
.addFields('para-gönder <@etiket> <miktar>', 'para transferi yapmayı sağlar')
.addFields('linkler', '[Destek Sunucu](https://discord.gg/PxUNhjsQ7D) | [Davet](https://discord.com/api/oauth2/authorize?client_id=845376842486775868&permissions=8&scope=bot) | [geliştirici](https://discord.com/channels/@me/534813683050610691)')

message.channel.send({ embeds: [kanal] })
}
}
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Alperenl
AlperenlOP17mo ago
can yuo send me example code
d.js docs
d.js docs17mo ago
Suggestion for @alperenl:guide Getting Started: Introduction read more
grass
grass17mo ago
have fun
Alperenl
AlperenlOP17mo ago
inş ı do it but not working
Alperenl
AlperenlOP17mo ago
grass
grass17mo ago
what do you mean by not working
Alperenl
AlperenlOP17mo ago
. ı mean this
grass
grass17mo ago
show your messagwCreate event please
Alperenl
AlperenlOP17mo ago
Alperenl
AlperenlOP17mo ago
this ?
grass
grass17mo ago
no
Alperenl
AlperenlOP17mo ago
which
treble/luna
treble/luna17mo ago
also dont use all intents
grass
grass17mo ago
client.on(“messageCreate”…
treble/luna
treble/luna17mo ago
only use the ones you need
Alperenl
AlperenlOP17mo ago
ı need all
treble/luna
treble/luna17mo ago
for what unused intents use memory and resources
Alperenl
AlperenlOP17mo ago
all categories ban game play modeartion
treble/luna
treble/luna17mo ago
yes but what part of them uses those intents
Alperenl
AlperenlOP17mo ago
economies for my bot hımmm
treble/luna
treble/luna17mo ago
what
Alperenl
AlperenlOP17mo ago
play a game
treble/luna
treble/luna17mo ago
how does that relate to my message unused intents use unecessary memory and resources
Alperenl
AlperenlOP17mo ago
Alperenl
AlperenlOP17mo ago
okey if ı delete unused intents can work ?
treble/luna
treble/luna17mo ago
no but it will improve resource usage
d.js docs
d.js docs17mo ago
To share long code snippets use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks.
Alperenl
AlperenlOP17mo ago
you mean this ?
treble/luna
treble/luna17mo ago
you define your prefix in an if loop so it wont be accessible outside of it oh
Alperenl
AlperenlOP17mo ago
hımm soo how ı can do ,change_prefix commands ? ? all time bot online or ı delete change-prefix command can working ? when ı updating , bot is offline now online but 1-5 day is offline not working
treble/luna
treble/luna17mo ago
if this is your code, that code wont work because * there is no such thing as addFieldsssss * you overwrite each field * addFields takes an array of APIEmbedField objects ({name, value, inline} * color doesnt take screaming sname case * footer/authog takes an object
Alperenl
AlperenlOP17mo ago
hıımm can you fix this ? ıcant understand not give me error on console and bot not say anything
d.js docs
d.js docs17mo ago
If you aren't getting any errors, try to place console.log checkpoints throughout your code to find out where execution stops. - Once you do, log relevant values and if-conditions - More sophisticated debugging methods are breakpoints and runtime inspections: learn more
treble/luna
treble/luna17mo ago
does your messageCreate event get triggered at all
Alperenl
AlperenlOP17mo ago
treble/luna
treble/luna17mo ago
how does that relate to my question
Alperenl
AlperenlOP17mo ago
ı dont know ı say you ı dont understand but translate cant translate this but wrong
Alperenl
AlperenlOP17mo ago
ı think ı do but not working ?
d.js docs
d.js docs17mo ago
guide Additional Information: Breaking Changes - MessageEmbed EmbedBuilder#addField() has been removed. Use EmbedBuilder#addFields() instead. read more
Alperenl
AlperenlOP17mo ago
but ı say it translate cant translate this how If you can solve the problem of the code I threw at you, do I do it by examining the code you solved?? how my english soo bad :/ but ı want 2 things 1. can you solve this my code message.create problem 2. why my code not working or solve this and ı mean this for looking code ı mean my problem a embed soo why
Alperenl
AlperenlOP17mo ago
ı say the problem embed
Alperenl
AlperenlOP17mo ago
how ı do embed thanks ı dont know this hımm okey
Want results from more Discord servers?
Add your server