added role reaction dynamic embed changes

This commit is contained in:
DeSqBlocki
2026-08-15 00:32:27 +02:00
parent 7c49e05aec
commit 832863c1e4
8 changed files with 986 additions and 311 deletions
+12 -5
View File
@@ -221,13 +221,17 @@ async function selectMenuHandler(interaction) {
async function modalHandler(interaction) {
const baseCustomId =
interaction.customId.split(":")[0];
const customId =
interaction.customId
.split(":")[0];
const modal =
interaction.client.modals.get(
baseCustomId
);
interaction.client
.modals
.get(
customId
);
if (!modal) {
@@ -245,6 +249,7 @@ async function modalHandler(interaction) {
} catch (error) {
console.error(error);
if (
interaction.replied ||
interaction.deferred
@@ -252,6 +257,7 @@ async function modalHandler(interaction) {
await interaction.followUp({
content:
"There was an error while executing this modal!",
flags:
MessageFlags.Ephemeral
});
@@ -260,6 +266,7 @@ async function modalHandler(interaction) {
await interaction.reply({
content:
"There was an error while executing this modal!",
flags:
MessageFlags.Ephemeral
});