Shuttle
Shuttle
DIAdiscord.js - Imagine an app
Created by Boat on 9/2/2023 in #djs-questions
avatar options
also why you require discord.js 2 times
9 replies
DIAdiscord.js - Imagine an app
Created by Boat on 9/2/2023 in #djs-questions
avatar options
const member = interaction.options.getMember('target') || interaction.member;
const member = interaction.options.getMember('target') || interaction.member;
9 replies
DIAdiscord.js - Imagine an app
Created by Boat on 9/2/2023 in #djs-questions
avatar options
please show your code properly
9 replies
DIAdiscord.js - Imagine an app
Created by -Carlos👑 on 9/1/2023 in #djs-questions
Weird Error
i guess
14 replies
DIAdiscord.js - Imagine an app
Created by -Carlos👑 on 9/1/2023 in #djs-questions
Weird Error
then if it's 0 you return "None"
14 replies
DIAdiscord.js - Imagine an app
Created by -Carlos👑 on 9/1/2023 in #djs-questions
Weird Error
check array length
14 replies
DIAdiscord.js - Imagine an app
Created by Shuttle on 8/17/2023 in #djs-questions
Events vs Audit Logs
Thx
6 replies
DIAdiscord.js - Imagine an app
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
using EmbedBuilder is not mandatory
22 replies
DIAdiscord.js - Imagine an app
Created by s a k a t a on 8/1/2023 in #djs-questions
Hey problem w my embed
A slash command name must be lowercase
22 replies
DIAdiscord.js - Imagine an app
Created by SuperPEKKA336 on 6/30/2023 in #djs-questions
Kicking a user
const response = await interaction.reply({
content: `Are you sure you want to ban ${target.username} for reason: ${reason}?`,
components: [row],
});

const collectorFilter = i => i.user.id === interaction.user.id;

try {
const confirmation = await response.awaitMessageComponent({ filter: collectorFilter, time: 60000 });
} catch (e) {
await interaction.editReply({ content: 'Confirmation not received within 1 minute, cancelling', components: [] });
}
const response = await interaction.reply({
content: `Are you sure you want to ban ${target.username} for reason: ${reason}?`,
components: [row],
});

const collectorFilter = i => i.user.id === interaction.user.id;

try {
const confirmation = await response.awaitMessageComponent({ filter: collectorFilter, time: 60000 });
} catch (e) {
await interaction.editReply({ content: 'Confirmation not received within 1 minute, cancelling', components: [] });
}
132 replies
DIAdiscord.js - Imagine an app
Created by SuperPEKKA336 on 6/30/2023 in #djs-questions
Kicking a user
132 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 6/22/2023 in #djs-questions
Dynamic Command Arg.
Yes you can, get the user items from your database and follow the autocomplete guide https://discordjs.guide/slash-commands/autocomplete.html
5 replies