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
Sexus Prime
Sexus PrimeOP3y ago
thanks hey.. do i use client.on?
monbrey
monbrey3y ago
If you want yeah For threads yes
Sexus Prime
Sexus PrimeOP3y 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
Sexus Prime
Sexus PrimeOP3y ago
listen posts in post channel
monbrey
monbrey3y ago
There's no specific collector for new threads
Sexus Prime
Sexus PrimeOP3y ago
in TextChannel, we have: TextChannel.awaitMessages ...
monbrey
monbrey3y ago
That's not a helpful response
Sexus Prime
Sexus PrimeOP3y ago
if I use on, is there any way I can stop it whenever I want?
monbrey
monbrey3y ago
off
Sexus Prime
Sexus PrimeOP3y 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:
Sexus Prime
Sexus PrimeOP3y ago
thanks broo
Want results from more Discord servers?
Add your server