AgEnT007
AgEnT007
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/26/2024 in #djs-questions
help me to resolve
how to do that
5 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/26/2024 in #djs-questions
help me to resolve
what about the screen shot
5 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/26/2024 in #djs-questions
help me to resolve
help
5 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/25/2024 in #djs-questions
my code is not working!
Thank you
9 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/25/2024 in #djs-questions
my code is not working!
The error is not showing on my console when I call this command it did not taking the channel and role from the text message
9 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/25/2024 in #djs-questions
my code is not working!
Anybody help
9 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/25/2024 in #djs-questions
i can't get multiple roles uisng addroleopts
So how to get multiple roles?
7 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/25/2024 in #djs-questions
i can't get multiple roles uisng addroleopts
I want to make a self role select system so when I want to get multiple roles from addroleoption while entering the command like /self-role-system setup
roles:
roles:
role1, role2
7 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/21/2024 in #djs-questions
help
I resolved my error thnkx bro help
13 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/21/2024 in #djs-questions
help
Bro when I used this command for ban a user that have higher role it show error
13 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/21/2024 in #djs-questions
help
const reason = interaction.options.getString('reason')


const newBan = new ban({
userId: user.id,
guildId: interaction.guild.id,
reason: reason,

date: Date.now()
})
const confirm = new ButtonBuilder()
.setCustomId('confirm')
.setLabel('Confirm Ban')
.setStyle('Danger');

const cancel = new ButtonBuilder()
.setCustomId('cancel')
.setLabel('Cancel')
.setStyle('Secondary');

const row = new ActionRowBuilder()
.addComponents(cancel, confirm);
await interaction.reply({
content: `Are you sure you want to ban ${user} for reason: ${reason}?`,
components: [row],
});
const filter = (i) => i.customId === 'confirm' || i.customId === 'cancel';
const collector = interaction.channel.createMessageComponentCollector({ filter, time: 15000 });

collector.on('collect', async (i) => {
if (i.customId === 'confirm') {
await newBan.save()
// if(user.bot) return interaction.followUp(`you can't ban a bot`)
await interaction.guild.members.ban(user, { reason });
await interaction.followUp(`${user.tag} has been banned for ${reason}.`);

} else {
await interaction.followUp('Ban action canceled.');
}
collector.stop();
});

collector.on('end', async () => {
await interaction.editReply({ components: [] });
});

// await interaction.guild.members.ban(user, { reason });
// await interaction.reply(`${user.tag} has been banned for ${reason}.`);
}
};
const reason = interaction.options.getString('reason')


const newBan = new ban({
userId: user.id,
guildId: interaction.guild.id,
reason: reason,

date: Date.now()
})
const confirm = new ButtonBuilder()
.setCustomId('confirm')
.setLabel('Confirm Ban')
.setStyle('Danger');

const cancel = new ButtonBuilder()
.setCustomId('cancel')
.setLabel('Cancel')
.setStyle('Secondary');

const row = new ActionRowBuilder()
.addComponents(cancel, confirm);
await interaction.reply({
content: `Are you sure you want to ban ${user} for reason: ${reason}?`,
components: [row],
});
const filter = (i) => i.customId === 'confirm' || i.customId === 'cancel';
const collector = interaction.channel.createMessageComponentCollector({ filter, time: 15000 });

collector.on('collect', async (i) => {
if (i.customId === 'confirm') {
await newBan.save()
// if(user.bot) return interaction.followUp(`you can't ban a bot`)
await interaction.guild.members.ban(user, { reason });
await interaction.followUp(`${user.tag} has been banned for ${reason}.`);

} else {
await interaction.followUp('Ban action canceled.');
}
collector.stop();
});

collector.on('end', async () => {
await interaction.editReply({ components: [] });
});

// await interaction.guild.members.ban(user, { reason });
// await interaction.reply(`${user.tag} has been banned for ${reason}.`);
}
};
can anobdy find any error in this
13 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/20/2024 in #djs-questions
automod example
Any tutorials
15 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/20/2024 in #djs-questions
automod example
If you can provide a real time example it should be more helpful to me I can't understand what you mentioned above
15 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/20/2024 in #djs-questions
spam related
Ok then how should give warning s points when the user is spaming
11 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/20/2024 in #djs-questions
spam related
Do you have any examples or tutorials
11 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/20/2024 in #djs-questions
spam related
How
11 replies
DIAdiscord.js - Imagine an app
Created by AgEnT007 on 4/20/2024 in #djs-questions
spam related
Yes I want a command to prevent people from spamming messages
11 replies