Little Help #1070
-
I have issues finding the correct PHP Values for some things. When starting the bot, I use a once Timer to 5s and want to get a list of all threads within a specific channel. Its a "Board" channel. I need a way to Get a list of all threads which are available in the Board Chanel. I did search in all rreps and docs, but cant find a way to get the list of the threads available. Can anyone help or send me a link to the docs where I can find an idea? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
$channel = $discord->getChannel('1084862766143246366'); get me: there you can see last_message_id but $channel->getMessageHistory(['limit' => 50])->done(function (Collection $messages) {
gives me nothing. Seams cant get the messages, as they are threads / posts or whatever in the "Board"s |
Beta Was this translation helpful? Give feedback.
-
Also in Text Channels its not working to get Messages from History: $channel = $discord->getChannel('1086284827671666828');
}); seams bug? |
Beta Was this translation helpful? Give feedback.
-
Channel::$threads not sure if this is automatically filled but I would start by checking that property for getting threads |
Beta Was this translation helpful? Give feedback.
-
Channel only fills: ChannelDiscord\Parts\Channel\Channel Object
) I can also see it in the code:
but it is never filled. as all of the "Respository" Thins never get filled. |
Beta Was this translation helpful? Give feedback.
-
Ohh I found it ;) $discord->getChannel($webchat)->threads; not filles, but working like a charm |
Beta Was this translation helpful? Give feedback.
Ohh I found it ;)
$discord->getChannel($webchat)->threads;
not filles, but working like a charm