Group creator
#1176
Replies: 2 comments 14 replies
-
Sure, you can use something like this: import discord from "discord.js-selfbot-v13";
const client = new discord.Client();
client.on("ready", async () => {
console.log(`${client?.user?.tag} is ready !`);
// here you have to change the user IDs (min 2 users is required to create a group dm)
const usersIds = ["id1", "id2"];
const usersToAdd = await Promise.all(
usersIds.map((userId) => client.users.fetch(userId))
);
const group = await client.channels.createGroupDM(usersToAdd);
await group.setName("My cool group");
await group.send("Hello guys !");
});
client.login(
"token"
); |
Beta Was this translation helpful? Give feedback.
2 replies
-
i know but i want it add two guy and he deleted two guy to be one person
Le mer. 29 mai 2024 à 07:53, ghosty ***@***.***> a écrit :
… but with just him bc i want he create a groupdm, it add 2 randoms friends
and he delete they
You can't create a group with just one person (you). It require to have
min 2 plus you (3 in total).
—
Reply to this email directly, view it on GitHub
<#1176 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATKD6SIFQIM2NXDKAY54MGLZEVUN3AVCNFSM6AAAAABIHUFJXSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TKOBZGAZTI>
.
You are receiving this because you authored the thread.Message ID:
<aiko-chan-ai/discord.
***@***.***>
|
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
can the script can create an group and send an message on it?
Beta Was this translation helpful? Give feedback.
All reactions