Resident Of Prey
Resident Of Prey
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Resident Of Prey on 5/6/2024 in #djs-questions
AutoComplete Problem
for a moment i forgot that BooleanOption even exists thanks anyways
4 replies
DIAdiscord.js - Imagine an app
Created by Resident Of Prey on 5/6/2024 in #djs-questions
AutoComplete Problem
data: new SlashCommandBuilder()
.setName("tag")
.setDescription("Search the documentation for small pieces of info")
.addStringOption(option => option.setName("tag").setDescription("name of the tag to search for").setRequired(true).setAutocomplete(true))
.addStringOption(option => option.setName("hidden").setDescription("should the response be hidden?").setRequired(false).setAutocomplete(true))
data: new SlashCommandBuilder()
.setName("tag")
.setDescription("Search the documentation for small pieces of info")
.addStringOption(option => option.setName("tag").setDescription("name of the tag to search for").setRequired(true).setAutocomplete(true))
.addStringOption(option => option.setName("hidden").setDescription("should the response be hidden?").setRequired(false).setAutocomplete(true))
4 replies
DIAdiscord.js - Imagine an app
Created by Resident Of Prey on 2/2/2024 in #djs-questions
Modal submit problem
thanks
21 replies
DIAdiscord.js - Imagine an app
Created by Resident Of Prey on 2/2/2024 in #djs-questions
Modal submit problem
unclear part was what do you mean by confuse those two messages
21 replies
DIAdiscord.js - Imagine an app
Created by Resident Of Prey on 2/2/2024 in #djs-questions
Modal submit problem
want to know what causes disturbance with the moadal when triggered again for 2nd time after it was cancelled 1st time
21 replies
DIAdiscord.js - Imagine an app
Created by Resident Of Prey on 2/2/2024 in #djs-questions
Modal submit problem
so what exactly are you saying i didnt get it
21 replies
DIAdiscord.js - Imagine an app
Created by Resident Of Prey on 2/2/2024 in #djs-questions
Modal submit problem
yes i made it
21 replies
DIAdiscord.js - Imagine an app
Created by Resident Of Prey on 2/2/2024 in #djs-questions
Modal submit problem
?
21 replies
DIAdiscord.js - Imagine an app
Created by Resident Of Prey on 2/2/2024 in #djs-questions
Modal submit problem
you mean
-filter: async (mm) => mm.user.id === message.author.id && mm.customId == message.id,

+filter: async (mm) => mm.user.id === message.user.id && mm.customId == message.id,
-filter: async (mm) => mm.user.id === message.author.id && mm.customId == message.id,

+filter: async (mm) => mm.user.id === message.user.id && mm.customId == message.id,
21 replies
DIAdiscord.js - Imagine an app
Created by Resident Of Prey on 2/2/2024 in #djs-questions
Modal submit problem
module.exports = {
name: `thread`,
description: `Create a thread for tryout purposes`,
aliases: ['t'],
async execute(client, message, args) {
//...

const msg = await thread.send({ content: null, embeds: [embed], components: [row] });

const collector = await msg.createMessageComponentCollector();
collector.on('collect', async (m) => {

const modal = new ModalBuilder()
.setCustomId(message.id)
.setTitle('Choose the region of participant')

const textInput = new TextInputBuilder()
.setCustomId('region01')
.setLabel('Region Role (2 letters Capitalized)')
.setPlaceholder('AS / EU / NA')
.setStyle(TextInputStyle.Short)
.setRequired(true);

const oneRow = new ActionRowBuilder().addComponents(textInput)
modal.addComponents(oneRow)
await m.showModal(modal).catch(console.error);

try {
// const filter = (message) => message.customId === 'threadRole';
const modalSubmit = await m.awaitModalSubmit({
filter: async (mm) => mm.user.id === message.author.id && mm.customId == message.id,
time: 1_800_000
});
if (modalSubmit instanceof ModalSubmitInteraction) {
const regionRole = modalSubmit.fields.getTextInputValue('region01');
module.exports = {
name: `thread`,
description: `Create a thread for tryout purposes`,
aliases: ['t'],
async execute(client, message, args) {
//...

const msg = await thread.send({ content: null, embeds: [embed], components: [row] });

const collector = await msg.createMessageComponentCollector();
collector.on('collect', async (m) => {

const modal = new ModalBuilder()
.setCustomId(message.id)
.setTitle('Choose the region of participant')

const textInput = new TextInputBuilder()
.setCustomId('region01')
.setLabel('Region Role (2 letters Capitalized)')
.setPlaceholder('AS / EU / NA')
.setStyle(TextInputStyle.Short)
.setRequired(true);

const oneRow = new ActionRowBuilder().addComponents(textInput)
modal.addComponents(oneRow)
await m.showModal(modal).catch(console.error);

try {
// const filter = (message) => message.customId === 'threadRole';
const modalSubmit = await m.awaitModalSubmit({
filter: async (mm) => mm.user.id === message.author.id && mm.customId == message.id,
time: 1_800_000
});
if (modalSubmit instanceof ModalSubmitInteraction) {
const regionRole = modalSubmit.fields.getTextInputValue('region01');
21 replies
DIAdiscord.js - Imagine an app
Created by Resident Of Prey on 2/2/2024 in #djs-questions
Modal submit problem
it does show
21 replies
DIAdiscord.js - Imagine an app
Created by Resident Of Prey on 2/2/2024 in #djs-questions
Modal submit problem
interaction doesnt get involved here its a message which was triggered from a prefix cmd
21 replies
DIAdiscord.js - Imagine an app
Created by youngdragon77 on 1/30/2024 in #djs-voice
why i am getting this and how to fix ?
use a .catch() on this line await ttsPlayer.voice.connect(memberChannel); and see if it tells anything different
16 replies
DIAdiscord.js - Imagine an app
Created by youngdragon77 on 1/30/2024 in #djs-voice
why i am getting this and how to fix ?
ok show your code in which you have used this
16 replies
DIAdiscord.js - Imagine an app
Created by youngdragon77 on 1/30/2024 in #djs-voice
why i am getting this and how to fix ?
whatever part you get the err from do you have a command?
16 replies
DIAdiscord.js - Imagine an app
Created by youngdragon77 on 1/30/2024 in #djs-voice
why i am getting this and how to fix ?
can you show your code
16 replies