Jarco
Jarco
Explore posts from servers
PPrisma
Created by Jarco on 5/19/2024 in #help-and-questions
ts error in library file
that fixed btw that was stupid :FACEPALM:
12 replies
PPrisma
Created by Jarco on 5/19/2024 in #help-and-questions
ts error in library file
ah well that explains then probably lemme go try
12 replies
PPrisma
Created by Jarco on 5/19/2024 in #help-and-questions
ts error in library file
forgot to mention it but i did upgrade prisma to the latest version locally already that didn't fix it
12 replies
PPrisma
Created by Jarco on 5/19/2024 in #help-and-questions
ts error in library file
typescript ^4.5.4 and the container is using the node:18.12.1-alpine image
12 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
I have no clue where to check if it's been reported already and if not idk where to report it either
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
@SpecialSauce @Jô 🌈🦄Figured out the issue, it's a discord client side bug if you restart discord it fixes is so this is upto discord to fix
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
Managed to narrow down the probably bug further but it sure doesn't make any more sense than it did before
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
But yea i think it's some kinda weird edge case thats happening either in discord.js or discord
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
don't remember if i specificly tried that but i think so, but even in the last example (the code above here) i just recreated the entire menu from scratch and it still didn't do the job
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
I think i am going to create some code which more clearly demonstrates this and then probably create a issue on discord.js because i feel like people who know how it works internally might know what could be going on
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
I feel like there might be some weird edge case either in discord.js where it doesn't send default_values: [] to the API in this specific occurance or a weird edge case on discord's side because i doubt this is intended as that would be very inconsistand
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
This code gives the same results as in the videos I showed earlier had to create a entire new menu because referencing the old one didn't work probably because i set the default values on that one else where in the code
client.on("interactionCreate", i => {
if (i.isUserSelectMenu() && i.customId === "usersMenu") {
resetBtn.components[0].setDisabled(i.values.length === 0);
selectedUsers = i.values;
i.update({components: [usersMenu, resetBtn]});
} else if (i.isButton() && i.customId === "resetMenu") {
selectedUsers = [];

const resetBtn = new ActionRowBuilder().setComponents(
new ButtonBuilder()
.setCustomId("resetMenu")
.setLabel("Reset menu")
.setStyle(2)
.setDisabled(true)
);

const newUsersMenu = new ActionRowBuilder().setComponents(
new UserSelectMenuBuilder()
.setCustomId("usersMenu")
.setPlaceholder("Select the desired user(s)")
.setMinValues(0)
.setMaxValues(25)
);

i.update({components: [newUsersMenu, resetBtn]});
}
});
client.on("interactionCreate", i => {
if (i.isUserSelectMenu() && i.customId === "usersMenu") {
resetBtn.components[0].setDisabled(i.values.length === 0);
selectedUsers = i.values;
i.update({components: [usersMenu, resetBtn]});
} else if (i.isButton() && i.customId === "resetMenu") {
selectedUsers = [];

const resetBtn = new ActionRowBuilder().setComponents(
new ButtonBuilder()
.setCustomId("resetMenu")
.setLabel("Reset menu")
.setStyle(2)
.setDisabled(true)
);

const newUsersMenu = new ActionRowBuilder().setComponents(
new UserSelectMenuBuilder()
.setCustomId("usersMenu")
.setPlaceholder("Select the desired user(s)")
.setMinValues(0)
.setMaxValues(25)
);

i.update({components: [newUsersMenu, resetBtn]});
}
});
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
client.on("interactionCreate", i => {
if (i.isUserSelectMenu() && i.customId === "usersMenu") {
resetBtn.components[0].setDisabled(i.values.length === 0);
selectedUsers = i.values;
i.update({components: [usersMenu, resetBtn]});
} else if (i.isButton() && i.customId === "resetMenu") {
selectedUsers = [];

const resetBtn = new ActionRowBuilder().setComponents(
new ButtonBuilder()
.setCustomId("resetMenu")
.setLabel("Reset menu")
.setStyle(2)
.setDisabled(true)
);

i.update({components: [i.message.components[0], resetBtn]});
}
});
client.on("interactionCreate", i => {
if (i.isUserSelectMenu() && i.customId === "usersMenu") {
resetBtn.components[0].setDisabled(i.values.length === 0);
selectedUsers = i.values;
i.update({components: [usersMenu, resetBtn]});
} else if (i.isButton() && i.customId === "resetMenu") {
selectedUsers = [];

const resetBtn = new ActionRowBuilder().setComponents(
new ButtonBuilder()
.setCustomId("resetMenu")
.setLabel("Reset menu")
.setStyle(2)
.setDisabled(true)
);

i.update({components: [i.message.components[0], resetBtn]});
}
});
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
I've tried that and that doesn't do anything
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
I don't think you understand what i mean with no values selected, I mean that if the menu started empty and the user then selects a few values and you after that try to reset the menu you are not able to clear those selected values.
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
(also i have a idea of how to demonstrate this more clearly I'll change up some code)
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
because regardless of what it should or shouldn't be currently you can do either one depending on the situation and that doesn't seem right either 🤔
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
How so, shouldn't you be able to remove the selected values via the bot?
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
how ever this functionality is aparently not achievable if the menu didn't start off with some <UserSelectMenuBuilder>.setDeafultUsers() set before sending it
56 replies
DIAdiscord.js - Imagine an app
Created by Jarco on 1/24/2024 in #djs-questions
Users & Role select menu not clearing when it should
This 2nd video is exactly how i want it to function
56 replies