'module not callable' when object is converted to string
<p>I'm using an extension for python 3.5 that makes it capable of working with the Discord API for communicating with users as a chatbot.</p>

<p>The extension adds a few objects to python, including the Channel object, which holds the unique ID of a channel.</p>

<p>In this snippet of code;</p>

<pre><code>async def on_message(message):
  if message.author==bot.user or message.channel!=CHANNEL:
    print("Either not replying to myself, or recieved message from the wrong channel; '"+string(message.channel)+"' when I was expecting '"+(CHANNEL)+"'...")
    return
</code></pre>

<p>For some context, <code>CHANNEL</code> is a constant that is set to the target channel that I want the bot to interface with, <code>bot</code> is the connection to the server and <code>bot.user</code> is a Member object that contains the ID of the chatbot.</p>

<p>The if statement works fine, but when converting message.channel to a string, the following error is shown; <code>TypeError: 'module' object is not callable</code>. Why is this?</p>

<p>I can provide more details if this doesn't make sense, the API reference is also <a href="http://discordpy.readthedocs.io/en/latest/api.html#discord.Message.channel" rel="nofollow">here</a>.</p>

<p>EDIT: A little more context provided.</p>