About the comment of yours about the following code:
import discord
client = discord.Client()
@client.event
async def on_message(message):
if message.content == "!create":
channel = await guild.create_text_channel('cool-channel')
client.run(my token)
You need to have
guild.create_text_channel
as
message.guild.create_text_channel
Hope that works