XurxoMF
XurxoMF
DIAdiscord.js - Imagine an app
Created by XurxoMF on 7/18/2023 in #djs-questions
Member timeout event?
I want to send an automatic message and save some data on a DB when a member get's timed out using the discord timeout function. Is there any event or something that I can use to catch those timeouts??
32 replies
DIAdiscord.js - Imagine an app
Created by XurxoMF on 7/9/2023 in #djs-questions
Error ActionRowBuilder() and TypeScript
const avanzarDis = new ButtonBuilder()
.setCustomId("avanzar")
.setLabel(">")
.setStyle(ButtonStyle.Primary)
.setDisabled(true);
const retrocederDis = new ButtonBuilder()
.setCustomId("retroceder")
.setLabel("<")
.setStyle(ButtonStyle.Primary)
.setDisabled(true);

const row = new ActionRowBuilder().addComponents([
retrocederDis,
avanzarDis,
]);

const filter = (i: any) => i.user.id === interaction.user.id;

const res = await interaction.reply({
embeds: [embed],
components: [row], <-- ERROR HERE
});
const avanzarDis = new ButtonBuilder()
.setCustomId("avanzar")
.setLabel(">")
.setStyle(ButtonStyle.Primary)
.setDisabled(true);
const retrocederDis = new ButtonBuilder()
.setCustomId("retroceder")
.setLabel("<")
.setStyle(ButtonStyle.Primary)
.setDisabled(true);

const row = new ActionRowBuilder().addComponents([
retrocederDis,
avanzarDis,
]);

const filter = (i: any) => i.user.id === interaction.user.id;

const res = await interaction.reply({
embeds: [embed],
components: [row], <-- ERROR HERE
});
8 replies
DIAdiscord.js - Imagine an app
Created by XurxoMF on 7/4/2023 in #djs-questions
ContextMenuCommand same name as a SlashCommand
If I create a SlashCommand called test and a ContextMenuCommand called test too, it will crash/not work fine or it's ok?
13 replies
DIAdiscord.js - Imagine an app
Created by XurxoMF on 7/3/2023 in #djs-questions
TypeScript client.cooldowns
6 replies