Might be stupid but ... I'm trying to get the channel name and get
@client.event
def on_message(message):
print(str(message.channel))
This way I can not distinguish between channels, any help?
python3.5
try message.channel.name
To distinguish between channels use its unique ID. message.channel.id. As per the documentation, message.channel can be an Object if unordered messages happen.
thanks
Most helpful comment
To distinguish between channels use its unique ID.
message.channel.id. As per the documentation,message.channelcan be anObjectif unordered messages happen.