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 toolkit2y 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
grass2y ago
what do you mean by not working
d.js docs
d.js docs2y 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
AlperenlOP2y ago
okey my bot is online but not working ı say ,help (,yardım is a turkish) but my bot not say anything
grass
grass2y ago
show your code
Alperenl
AlperenlOP2y ago
okey const { Client } = Discord; // Burayı değiştirdim const client = new Client({ intents: 32767 }); // Burayı değiştirdim
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs2y 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
grass2y ago
show your code for messageCreate too oh
Alperenl
AlperenlOP2y ago
ok ı send you
Alperenl
AlperenlOP2y 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
AlperenlOP2y ago
this code
d.js docs
d.js docs2y ago
To share long code snippets use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks.
Alperenl
AlperenlOP2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
Alperenl
AlperenlOP2y ago
can yuo send me example code
d.js docs
d.js docs2y ago
Suggestion for @alperenl:guide Getting Started: Introduction read more
grass
grass2y ago
have fun
Alperenl
AlperenlOP2y ago
inş ı do it but not working
Alperenl
AlperenlOP2y ago
grass
grass2y ago
what do you mean by not working
Alperenl
AlperenlOP2y ago
. ı mean this
grass
grass2y ago
show your messagwCreate event please
Alperenl
AlperenlOP2y ago
Alperenl
AlperenlOP2y ago
this ?
grass
grass2y ago
no
Alperenl
AlperenlOP2y ago
which
treble/luna
treble/luna2y ago
also dont use all intents
grass
grass2y ago
client.on(“messageCreate”…
treble/luna
treble/luna2y ago
only use the ones you need
Alperenl
AlperenlOP2y ago
ı need all
treble/luna
treble/luna2y ago
for what unused intents use memory and resources
Alperenl
AlperenlOP2y ago
all categories ban game play modeartion
treble/luna
treble/luna2y ago
yes but what part of them uses those intents
Alperenl
AlperenlOP2y ago
economies for my bot hımmm
treble/luna
treble/luna2y ago
what
Alperenl
AlperenlOP2y ago
play a game
treble/luna
treble/luna2y ago
how does that relate to my message unused intents use unecessary memory and resources
Alperenl
AlperenlOP2y ago
Alperenl
AlperenlOP2y ago
okey if ı delete unused intents can work ?
treble/luna
treble/luna2y ago
no but it will improve resource usage
d.js docs
d.js docs2y ago
To share long code snippets use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks.
Alperenl
AlperenlOP2y ago
you mean this ?
treble/luna
treble/luna2y ago
you define your prefix in an if loop so it wont be accessible outside of it oh
Alperenl
AlperenlOP2y 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/luna2y 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
AlperenlOP2y 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 docs2y 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/luna2y ago
does your messageCreate event get triggered at all
Alperenl
AlperenlOP2y ago
treble/luna
treble/luna2y ago
how does that relate to my question
Alperenl
AlperenlOP2y ago
ı dont know ı say you ı dont understand but translate cant translate this but wrong
Alperenl
AlperenlOP2y ago
ı think ı do but not working ?
d.js docs
d.js docs2y ago
guide Additional Information: Breaking Changes - MessageEmbed EmbedBuilder#addField() has been removed. Use EmbedBuilder#addFields() instead. read more
Alperenl
AlperenlOP2y 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
AlperenlOP2y ago
ı say the problem embed
Alperenl
AlperenlOP2y ago
how ı do embed thanks ı dont know this hımm okey
Want results from more Discord servers?
Add your server