'NoXz
'NoXz
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/22/2024 in #djs-questions
Never expiring button blocks another button
just 'this interaction failed' after a bit
7 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/22/2024 in #djs-questions
Never expiring button blocks another button
and it doesnt show any error
7 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/22/2024 in #djs-questions
Never expiring button blocks another button
but now the old command doesnt work and the new command works xD
7 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/22/2024 in #djs-questions
Never expiring button blocks another button
yeah and this is why i changed to !==
7 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/7/2024 in #djs-questions
Importing embed and message variables from another file.
👍
23 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/7/2024 in #djs-questions
Importing embed and message variables from another file.
or is it embed.data.fields ?
23 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/7/2024 in #djs-questions
Importing embed and message variables from another file.
How do i get the fields in the embed ?
[
Embed {
data: {
type: 'rich',
title: 'RAID DU : A :',
image: [Object],
footer: [Object],
fields: [Array],
description: '# Caveau des Incarnations\n### <:skull:1193157255407882340> Normal (:)',
color: 9124820
}
}
]
[
Embed {
data: {
type: 'rich',
title: 'RAID DU : A :',
image: [Object],
footer: [Object],
fields: [Array],
description: '# Caveau des Incarnations\n### <:skull:1193157255407882340> Normal (:)',
color: 9124820
}
}
]
ik this is basic js but i forgot how to do it (i tried embed.fields but it returns undefined).
23 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/7/2024 in #djs-questions
Importing embed and message variables from another file.
thanks 👍
23 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/7/2024 in #djs-questions
Importing embed and message variables from another file.
okay
23 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/7/2024 in #djs-questions
Importing embed and message variables from another file.
so i could do : before:
raidembed.spliceFields(...)
await raidmessage.edit(...)
raidembed.spliceFields(...)
await raidmessage.edit(...)
after:
interaction.message.embeds.spliceFields(...)
await interaction.message.edit(...)
interaction.message.embeds.spliceFields(...)
await interaction.message.edit(...)
right ? if i understood well what you said
23 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/7/2024 in #djs-questions
Importing embed and message variables from another file.
from ./commands/Community/raid.js
23 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/7/2024 in #djs-questions
Importing embed and message variables from another file.
in index.js
23 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 1/7/2024 in #djs-questions
Importing embed and message variables from another file.
const raidembed = new Discord.EmbedBuilder()
.setTitle(`RAID DU ${interaction.options.getString(`date`)} A ${interaction.options.getString(`heure`)}`)
.setDescription(`# ${interaction.options.getString(`raid_nom`)}\n### <:skull:1193157255407882340> ${interaction.options.getString(`raid_difficulte`)} (${interaction.options.getString(`boss_vaincus`)})`)
.addFields(
{ name: `${client.emotes.tank} Tanks :`, value: `> Aucun tank pour le moment.` },
{ name: `${client.emotes.heal} Soutiens :`, value: `> Aucun soutien pour le moment.` },
{ name: `${client.emotes.dps} Dégâts :`, value: `> Aucun dégât pour le moment.` },
{ name: `\u200B`, value: `\u200B` },
{ name: `${client.emotes.abs} Absents :`, value: `> Aucun absent pour le moment.` }
)
.setColor(client.color)
.setImage(`https://michapx7.be/wp-content/uploads/2022/12/World-of-Warcraft-Dragonflight-Caveau-des-Incarnations-Head.jpg`)
.setFooter({ iconURL: `https://wowchallenges.com/images/questionmark.png`, text: `Merci de d'indiquer votre présence ou de signaler votre absence, comme demandé dans la charte de la guilde.` })


const raidmessage = await interaction.reply({
embeds: [raidembed],
components: [row]
})
const raidembed = new Discord.EmbedBuilder()
.setTitle(`RAID DU ${interaction.options.getString(`date`)} A ${interaction.options.getString(`heure`)}`)
.setDescription(`# ${interaction.options.getString(`raid_nom`)}\n### <:skull:1193157255407882340> ${interaction.options.getString(`raid_difficulte`)} (${interaction.options.getString(`boss_vaincus`)})`)
.addFields(
{ name: `${client.emotes.tank} Tanks :`, value: `> Aucun tank pour le moment.` },
{ name: `${client.emotes.heal} Soutiens :`, value: `> Aucun soutien pour le moment.` },
{ name: `${client.emotes.dps} Dégâts :`, value: `> Aucun dégât pour le moment.` },
{ name: `\u200B`, value: `\u200B` },
{ name: `${client.emotes.abs} Absents :`, value: `> Aucun absent pour le moment.` }
)
.setColor(client.color)
.setImage(`https://michapx7.be/wp-content/uploads/2022/12/World-of-Warcraft-Dragonflight-Caveau-des-Incarnations-Head.jpg`)
.setFooter({ iconURL: `https://wowchallenges.com/images/questionmark.png`, text: `Merci de d'indiquer votre présence ou de signaler votre absence, comme demandé dans la charte de la guilde.` })


const raidmessage = await interaction.reply({
embeds: [raidembed],
components: [row]
})
23 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 7/31/2022 in #djs-questions
My anti-raid function doesn't work
yes im new to node
82 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 7/31/2022 in #djs-questions
My anti-raid function doesn't work
client.on("guildMemberAdd",
82 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 7/31/2022 in #djs-questions
My anti-raid function doesn't work
this event ?
82 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 7/31/2022 in #djs-questions
My anti-raid function doesn't work
kinda, only did 2 years of web dev
82 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 7/31/2022 in #djs-questions
My anti-raid function doesn't work
nvm i did it
82 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 7/31/2022 in #djs-questions
My anti-raid function doesn't work
Ho you do the countdown ?
82 replies
DIAdiscord.js - Imagine an app
Created by 'NoXz on 7/31/2022 in #djs-questions
My anti-raid function doesn't work
Guess I'll just have to do an array Sadge
82 replies