oneyz_
oneyz_
Explore posts from servers
DIAdiscord.js - Imagine a boo! 👻
Created by oneyz_ on 1/9/2024 in #djs-questions
Edit embed in DM
Hi, I've already written on the djs-help-v14 channel and received a hint on how I can edit the embed using interaction.update({ components: [] }), but I still don't know how to do it, and I'm out of ideas. I want to achieve the following effect: When sending a private message to the user with information that they have received a warning (message in an embed), it also creates a button for an appeal in the embed. After clicking the button, it creates a modal. I want the embed in the private message to be updated after sending the modal (so that the appeal button is removed or set to .setDisabled(true) after successfully sending the modal [isModalSubmit]). Class 'interactionCreate':
if (interaction.isModalSubmit()) {
if (interaction.customId === "modal") {
const fields = interaction.fields.fields;
const administratorNameInput = fields.get("administrator-name-input").value;
const appealDescription = fields.get("appeal-description").value;
const incidentDate = fields.get("incidentDate").value;
const guild = interaction.guild || await client.guilds.fetch(config.guildID);

if (guild) {
const guildChannelId = config.guildChannelId;
const guildChannel = guild.channels.cache.get(guildChannelId);

if (guildChannel) {
guildChannel.send(`INPUT1: ${administratorNameInput}\nINPUT2: ${appealDescription}\nUser: ${interaction.user.tag} (<@${interaction.user.id}>)\nDate: ${incidentDate}`);
interaction.deferUpdate();
} else {
console.error("<interactionCreate.js:60>");
}
} else {
console.error("<interactionCreate.js:60>");
}
}
}
if (interaction.isModalSubmit()) {
if (interaction.customId === "modal") {
const fields = interaction.fields.fields;
const administratorNameInput = fields.get("administrator-name-input").value;
const appealDescription = fields.get("appeal-description").value;
const incidentDate = fields.get("incidentDate").value;
const guild = interaction.guild || await client.guilds.fetch(config.guildID);

if (guild) {
const guildChannelId = config.guildChannelId;
const guildChannel = guild.channels.cache.get(guildChannelId);

if (guildChannel) {
guildChannel.send(`INPUT1: ${administratorNameInput}\nINPUT2: ${appealDescription}\nUser: ${interaction.user.tag} (<@${interaction.user.id}>)\nDate: ${incidentDate}`);
interaction.deferUpdate();
} else {
console.error("<interactionCreate.js:60>");
}
} else {
console.error("<interactionCreate.js:60>");
}
}
}
6 replies
TIPThe Iris Project
Created by oneyz_ on 9/25/2023 in #iris-issues
Iris/Sodium/Indium
Hello, someone can help me? (version of modpack 1.20.1)
Incompatible mod set!
net.fabricmc.loader.impl.FormattedException: Mod resolution encountered an incompatible mod set!
A potential solution has been determined:
- Replace mod 'Sodium' (sodium) 0.5.2 with version 0.5.2 that is compatible with:
- indium, any version
- indium, any version
- Replace mod 'Indium' (indium) 1.0.27+mc1.20.1 with any version that is compatible with:
- sodium, version 0.5.2
- fabric-renderer-api-v1 3.1.3+92a0d36777
Unmet dependency listing:
- Mod 'Indium' (indium) 1.0.27+mc1.20.1 requires version 0.5.3 of mod 'Sodium' (sodium), but only the wrong version is present: 0.5.2!
- Mod 'Indium' (indium) 1.0.27+mc1.20.1 requires version 3.2.0 or later of mod 'Fabric Renderer API (v1)' (fabric-renderer-api-v1), but only the wrong versions are present: 3.1.3+92a0d36777/3.0.1+b3afc78b77!
- Mod 'Statement Vanilla Compatibility Module' (statement_vanilla_compatibility) 1.0.1+1.14.4-1.15.2 requires any version between 1.14.0-0 (inclusive) and 1.16.0-0 (exclusive) of 'Minecraft' (minecraft), but only the wrong version is present: 1.20.1!
at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:51)
at net.fabricmc.loader.impl.FabricLoaderImpl.load(FabricLoaderImpl.java:192)
at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:148)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Incompatible mod set!
net.fabricmc.loader.impl.FormattedException: Mod resolution encountered an incompatible mod set!
A potential solution has been determined:
- Replace mod 'Sodium' (sodium) 0.5.2 with version 0.5.2 that is compatible with:
- indium, any version
- indium, any version
- Replace mod 'Indium' (indium) 1.0.27+mc1.20.1 with any version that is compatible with:
- sodium, version 0.5.2
- fabric-renderer-api-v1 3.1.3+92a0d36777
Unmet dependency listing:
- Mod 'Indium' (indium) 1.0.27+mc1.20.1 requires version 0.5.3 of mod 'Sodium' (sodium), but only the wrong version is present: 0.5.2!
- Mod 'Indium' (indium) 1.0.27+mc1.20.1 requires version 3.2.0 or later of mod 'Fabric Renderer API (v1)' (fabric-renderer-api-v1), but only the wrong versions are present: 3.1.3+92a0d36777/3.0.1+b3afc78b77!
- Mod 'Statement Vanilla Compatibility Module' (statement_vanilla_compatibility) 1.0.1+1.14.4-1.15.2 requires any version between 1.14.0-0 (inclusive) and 1.16.0-0 (exclusive) of 'Minecraft' (minecraft), but only the wrong version is present: 1.20.1!
at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:51)
at net.fabricmc.loader.impl.FabricLoaderImpl.load(FabricLoaderImpl.java:192)
at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:148)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
3 replies