wait post

How i listen posts in Posts channels? like: PostChannel.awaitPost() discord.js: v14.6.0 nodejs: v18.9.1
16 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
monbrey
monbrey3y ago
They're just messages. messageCreate event threadCreate for new threads
</Nexus_Prime>
</Nexus_Prime>OP3y ago
thanks hey.. do i use client.on?
monbrey
monbrey3y ago
If you want yeah For threads yes
</Nexus_Prime>
</Nexus_Prime>OP3y ago
but if I use the on, the command will not finish, because can't I stop the on I think. If I use the once, even though I filter on the scope, if another event of the same type but that doesn't pass the filter is called, the once will be disabled
monbrey
monbrey3y ago
I don't know what you're trying to do
</Nexus_Prime>
</Nexus_Prime>OP3y ago
listen posts in post channel
monbrey
monbrey3y ago
There's no specific collector for new threads
</Nexus_Prime>
</Nexus_Prime>OP3y ago
in TextChannel, we have: TextChannel.awaitMessages ...
monbrey
monbrey3y ago
That's not a helpful response
</Nexus_Prime>
</Nexus_Prime>OP3y ago
if I use on, is there any way I can stop it whenever I want?
monbrey
monbrey3y ago
off
</Nexus_Prime>
</Nexus_Prime>OP3y ago
how?
monbrey
monbrey3y ago
client.off('event', function)
d.js docs
d.js docs3y ago
node Class: EventEmitter The EventEmitter class is defined and exposed by the node:events module:
</Nexus_Prime>
</Nexus_Prime>OP3y ago
thanks broo

Did you find this page helpful?