OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to get a list of all dms discord.py

  • Thread starter Thread starter SirFire
  • Start date Start date
S

SirFire

Guest
I am experimenting with discord.py and I can't find out how to get a list of all the DM channels the bot is in! I basicly need a list of either channel objects or channel ids of all DMs.

I have tried:

Code:
bot.get_private_channels()
bot.get_channels()
bot.get_dms()
bot.channels

and I have looked all over the internet for an answer, but I can't find anything.

Is this even possible in discord.py?

I really appreciate any help, thanks!
<p>I am experimenting with discord.py and I can't find out how to get a list of all the DM channels the bot is in! I basicly need a list of either channel objects or channel ids of all DMs.</p>
<p>I have tried:</p>
<pre><code>bot.get_private_channels()
bot.get_channels()
bot.get_dms()
bot.channels
</code></pre>
<p>and I have looked all over the internet for an answer, but I can't find anything.</p>
<p>Is this even possible in discord.py?</p>
<p>I really appreciate any help, thanks!</p>
 
Top