v14 istediğim kanala mesaj attırma

eh uh v12 den bi anda v14 geçince
6 Replies
'Vu4ll
'Vu4ll3y ago
client.channels.cache.get("id").send()
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
xkaz
xkazOP3y ago
const { SlashCommandBuilder, ActionRow, ButtonBuilder, ButtonStyle, ActionRowBuilder, Collector, PermissionsBitField, EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('addbot')
.setDescription('Addbot!')
.addStringOption(option => option.setName('input').setDescription("Enter a Your Bot ID")),
async execute(interaction) {
const string = interaction.options.getString('input');
if(!string) return interaction.reply({content:"ID Girin", components: [], ephemeral:true})
if(db.get(`${interaction.user.id}`)) return interaction.reply({content:"En fazla 1 bot ekleyebilirsiniz", ephemeral:true});
await interaction.reply({content:"Bot Sisteme Eklendi Onay Bekleyin", components: [], ephemeral:false})
db.set(`bot.${string}.durum`, false);
db.set(`${interaction.user.id}`, true)
const embed = EmbedBuilder()
.setDescription("Bir Bot istedi")
client.channels.cache.get("1003072432472588299").send({row: [embed]})
},
};
const { SlashCommandBuilder, ActionRow, ButtonBuilder, ButtonStyle, ActionRowBuilder, Collector, PermissionsBitField, EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('addbot')
.setDescription('Addbot!')
.addStringOption(option => option.setName('input').setDescription("Enter a Your Bot ID")),
async execute(interaction) {
const string = interaction.options.getString('input');
if(!string) return interaction.reply({content:"ID Girin", components: [], ephemeral:true})
if(db.get(`${interaction.user.id}`)) return interaction.reply({content:"En fazla 1 bot ekleyebilirsiniz", ephemeral:true});
await interaction.reply({content:"Bot Sisteme Eklendi Onay Bekleyin", components: [], ephemeral:false})
db.set(`bot.${string}.durum`, false);
db.set(`${interaction.user.id}`, true)
const embed = EmbedBuilder()
.setDescription("Bir Bot istedi")
client.channels.cache.get("1003072432472588299").send({row: [embed]})
},
};
kod bu göndermiyo fakat @Êrffy
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
xkaz
xkazOP3y ago
doğru la adam yağ cuuu uh ReferenceError: client is not defined
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?