I have a very weird problem with one of my bots : it does not detect the channels of my server, even the bot is in the server. I'm using the rewrite version.

The ids have to be between "" (that should fix it)
@davfsa, ids are integers on the rewrite branch, so no, that will not fix it.
Is the rest of your bot operating as expected? If not, verify you have actually installed the rewrite branch with pip show discord.py using the same python executable that you use to run your bot.
Also, as a note, you can do bot.load_extension("folder.cog1") which will handle the imports and setup for you instead of having to import each one "by hand"
My bot is functioning at 100% except this problem @Vexs
sorry @Vexs I didnt know it was in rewrite...