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 User2y ago
Message Not Public
Sign In & Join Server To View
monbrey
monbrey2y ago
They're just messages. messageCreate event threadCreate for new threads
</Nexus_Prime>
thanks hey.. do i use client.on?
monbrey
monbrey2y ago
If you want yeah For threads yes
</Nexus_Prime>
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
monbrey2y ago
I don't know what you're trying to do
</Nexus_Prime>
listen posts in post channel
monbrey
monbrey2y ago
There's no specific collector for new threads
</Nexus_Prime>
in TextChannel, we have: TextChannel.awaitMessages ...
monbrey
monbrey2y ago
That's not a helpful response
</Nexus_Prime>
if I use on, is there any way I can stop it whenever I want?
monbrey
monbrey2y ago
off
</Nexus_Prime>
how?
monbrey
monbrey2y ago
client.off('event', function)
d.js docs
d.js docs2y ago
node Class: EventEmitter The EventEmitter class is defined and exposed by the node:events module:
</Nexus_Prime>
thanks broo
Want results from more Discord servers?
Add your server
More Posts
Responding to choosesHello how would you be able to respond differently depending which choose the user made using a striI have this delete-commands.js for slash commands and it isn't working.https://gist.github.com/DudeThatsErin/b0231f2a38cb85309a33de14faac0107 This is the error message I Expecting a string primitive for SlashCommandBuilderI tried making an embed command using Slash commands and a lot of paramaters(probably not a good idewhen his bot is inside a voice channel, moving others takes about 5 seconds, whilst when it’s not inthere is a very strange bug when my bot is in vocal and that it has to move a member the action but How can I get the voice states of members?How can I get the voice states of members? For some reason do I only get the voice states of the memAdding a role to owner of a server.Hello, I've searched the Internet for this answer but did not find it, so here I am. I wanted to knHow to see which option was triggered from an interactionI have a slash command where there are two options (say a and b). a has three choices say 1,2,3 b haSending files from vue front end to custom discord bot through express backend.I'm wondering what the best process to doing this is. Currently I have a vue frontend component whicIs it possible for a bot so send a message before it goes offline?I am just wondering, can I make it so my bot sends a "Going Offline" message right before it becomesMismatched parameters and command handler not to optimized.Hi devs, im triying to fix my mismatched parameters and maybe the handler its the problem!