Tijme
Tijme
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Tijme on 2/18/2025 in #djs-questions
Limit to command option to autocomplete
I want uses to only be able to use the command when they have used a correct option. I give correct optios with auto complete. Is this possible? And if so, how?
3 replies
DIAdiscord.js - Imagine an app
Created by Tijme on 1/5/2025 in #djs-questions
Handle interaction after restart
Hello, I am making a restart command. It sends a message saying it is restarting. When it has restarted, I want it to edit the message to say it has restarted. I was thinking of doing something along the lines of this:
const i = await interaction.sendEmbed({
title: "Restarting...",
description: "The bot is restarting...",
components: [actionRow],
});

if (i) {
Deno.env.set("RESTART", i.id);
}

Deno.exit();
const i = await interaction.sendEmbed({
title: "Restarting...",
description: "The bot is restarting...",
components: [actionRow],
});

if (i) {
Deno.env.set("RESTART", i.id);
}

Deno.exit();
And then I would have to fetch the interaction on client.ready. Is there any way to do so? Thanks!
9 replies