deminearchiver
deminearchiver
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by deminearchiver on 1/20/2023 in #djs-questions
2+ Clients = API spam?
If I have 2 or more clients on a single IP, will this be considered API spam even though each client has a different token?
import { Client } from "discord.js";

const client1 = new Client(...);
const client2 = new Client(...);

client1.login(process.env["FIRST_TOKEN"]);
client2.login(process.env["SECOND_TOKEN"]);
import { Client } from "discord.js";

const client1 = new Client(...);
const client2 = new Client(...);

client1.login(process.env["FIRST_TOKEN"]);
client2.login(process.env["SECOND_TOKEN"]);
6 replies
DIAdiscord.js - Imagine an app
Created by deminearchiver on 10/30/2022 in #djs-questions
Creating multiple instances of Client
Is it possible for multiple Clients (different tokens) to run concurrently? Considee the following simple example:
const client1 = new Client(...);
const client2 = new Client(...);

client1.login("some token");
client2.login("other token");
const client1 = new Client(...);
const client2 = new Client(...);

client1.login("some token");
client2.login("other token");
6 replies
DIAdiscord.js - Imagine an app
Created by deminearchiver on 8/5/2022 in #djs-questions
Reply to interaction with custom avatar webhook
Is it possible to send an Interaction reply with a custom avatarURL? If it is, how to do it?
5 replies
DIAdiscord.js - Imagine an app
Created by deminearchiver on 7/15/2022 in #djs-questions
Remove Emoji from a Button?
How to remove an emoji from a button using the ButtonBuilder.setEmoji() method? I tried to put null and undefined into the arguments, but neither worked.
9 replies
DIAdiscord.js - Imagine an app
Created by deminearchiver on 7/14/2022 in #djs-questions
Update interaction on Modal Submit
I can't call interaction.update() after I received a ModalSubmitInteraction. After I send a command, the bot replies with a button. After clicking the button, I call ButtonInteraction.showModal(). I want to call ButtonInteraction.update() upon modal submit, but there seems to be no proper way to do it (I am trying to change text on the button received from the modal submit). Are there any workarounds for this?
22 replies