DEV Community

Discussion on: discord.py Project 4: ✍🏽Partnership Bot!

Collapse
 
mikeywastaken profile image
terabyte.

Well, you could check if the channel's ID matches the ID that you have:

# on_message
if message.channel.id == your_id:
    # NOW i want to run the rest of the code, inside of this if statement.
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ffbboy30 profile image
ffbboy30

Thanks My problem is the channel connexion , I'm not the channel admin I just want to read message Like in my application.
Is it possible to register with mail and password like in the app ?

Thread Thread
 
mikeywastaken profile image
terabyte.

Not without using selfbots, which is highly against ToS and will get you banned from Discord. You should just get permission from a channel admin with a link that only has the send/read messages permission, so that it cannot abuse anything.