GøkturkΛ
GøkturkΛ
CDCodAre Development
Created by GøkturkΛ on 4/13/2025 in #・destek
webhook multipart form data {"message": "Cannot send an empty message", "code": 50006}
sa beyler bu kod clientside ve nodeda {"message": "Cannot send an empty message", "code": 50006} döndürüyo napcaz
async sendWebhook(wh = this._wh, fileName = this.fileName) {
console.log("sendwebhook tetiklendi")
if (this.messages.data.length === 0) return;
let form = new FormData();
form.append("payload_json", JSON.stringify({
username: "Message Archiver",
content: "***Oda kapatıldı. Mesaj içeriği arşivlendi.***",
embeds: [
{
"title": "Oda Bilgileri:",
"type": "rich",
"fields": [
{
name: "Sahip:",
value: this.owner,
inline: true
},
{
name: "ID:",
value: this.id,
inline: true
},
{
name: "Açılma Zamanı:",
value: this.date,
inline: true
},
{
name: "Mesaj Sayısı:",
value: this.messages.data.length,
inline: false
}
],
"timestamp": new Date().toISOString()
}
],
attachments: [{
name: fileName,
id: 0,
description: "Mesaj Kayıtları."
}]
}));
let jsonBlob = new Blob([JSON.stringify(this.messages)])
form.append("files[0]", jsonBlob, { filename: fileName, contentType: "application/json" });
try {
await fetch(wh, {
method: "POST",
headers: form.getHeaders(),
body: form
})
} catch (error) {
console.error(error.name)
}
}
async sendWebhook(wh = this._wh, fileName = this.fileName) {
console.log("sendwebhook tetiklendi")
if (this.messages.data.length === 0) return;
let form = new FormData();
form.append("payload_json", JSON.stringify({
username: "Message Archiver",
content: "***Oda kapatıldı. Mesaj içeriği arşivlendi.***",
embeds: [
{
"title": "Oda Bilgileri:",
"type": "rich",
"fields": [
{
name: "Sahip:",
value: this.owner,
inline: true
},
{
name: "ID:",
value: this.id,
inline: true
},
{
name: "Açılma Zamanı:",
value: this.date,
inline: true
},
{
name: "Mesaj Sayısı:",
value: this.messages.data.length,
inline: false
}
],
"timestamp": new Date().toISOString()
}
],
attachments: [{
name: fileName,
id: 0,
description: "Mesaj Kayıtları."
}]
}));
let jsonBlob = new Blob([JSON.stringify(this.messages)])
form.append("files[0]", jsonBlob, { filename: fileName, contentType: "application/json" });
try {
await fetch(wh, {
method: "POST",
headers: form.getHeaders(),
body: form
})
} catch (error) {
console.error(error.name)
}
}
2 replies
CDCodAre Development
Created by GøkturkΛ on 1/24/2023 in #・destek
child process spawn ile oluşturulan bütün processler için modülleri ortak kullanmak
No description
79 replies
CDCodAre Development
Created by GøkturkΛ on 12/21/2022 in #・destek
firebase val() içinde name hatası
No description
12 replies
CDCodAre Development
Created by GøkturkΛ on 8/8/2022 in #・destek
çok tokenli botta sunucu bulmak
No description
60 replies
CDCodAre Development
Created by GøkturkΛ on 8/7/2022 in #・destek
discord client partials ayarı ne işe yarıyor
ya beyler dokümantasyonu da okudum ama pek anlamadım biri anlatabilir mi mesela channel eklemeyince dm çalışmıyor ama neden
8 replies
CDCodAre Development
Created by GøkturkΛ on 7/27/2022 in #・destek
esm kullanarak event yüklemek istiyorum
No description
4 replies
CDCodAre Development
Created by GøkturkΛ on 7/8/2022 in #・destek
v13 handler sunucuya alınca hata veriyor
ben çok anlayamadım aga bu altyapıyı aşırı class var beynim yandı çok fazla class bilmiyorum mesela application komutuna gereken parametreleri nasıl belirticez ya da client tam olarak nasıl tanımlı hiçbirini anlamadım
22 replies
CDCodAre Development
Created by GøkturkΛ on 6/29/2022 in #・destek
orio.db nesneyi unpush etmiyor
No description
54 replies