Sayrix
Sayrix
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
😭
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
sorry
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
It was a permission problem
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
Oh shit i feel so bad
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
wait
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
I received the CHANNEL_UPDATE when updated the perms
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
i will try adding all perms to the bot to the specific channel
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
thats strange
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
don't worked
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
I don't received anything when opened the thread with the bot
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
client.on("raw", async (packet) => {
if (packet.t === "PRESENCE_UPDATE") return;
console.log(packet);
});
client.on("raw", async (packet) => {
if (packet.t === "PRESENCE_UPDATE") return;
console.log(packet);
});
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
Is there a way to log all events from the websocket so i can know if in raw the event is emitted by Discord
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
different
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
and here is the code to open the thread with the bot:
const thread = await interaction.channel.threads.create({
name: `Trade with @${interaction.user.username}`,
autoArchiveDuration: 4320,
type: Discord.ChannelType.PrivateThread,
invitable: false
});
const thread = await interaction.channel.threads.create({
name: `Trade with @${interaction.user.username}`,
autoArchiveDuration: 4320,
type: Discord.ChannelType.PrivateThread,
invitable: false
});
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
Here is how i create the thread manually (event emitted)
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
No description
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
He is admin
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
The only reason I can think of that could cause this bug to exist is that when the bot creates the thread, there is no message, the user is directly added, whereas when I create one manually, the Discord client forces me to send a message in order to start the thread.
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
Do you add the bot to the thread?
no but when i create one myself i don't add it too
23 replies
DIAdiscord.js - Imagine a bot
Created by Sayrix on 2/15/2024 in #djs-questions
threadCreate event emitted only when a user create a thread
client.on("threadCreate", async (thread, newlyCreated) => {
console.log(thread, newlyCreated, 0);
});
client.on("threadCreate", async (thread, newlyCreated) => {
console.log(thread, newlyCreated, 0);
});
23 replies