Channel Not Creating In A Category

  discord,, python

I want to create the channel in the category of the users liking but when i try to run the program it doesn’t make the channel in the category i want it to.

Here’s my code:

if sly.content.startswith("sly ctchan"):
x=sly.content.split("sly ctchan ",1)[1]
await"Category Name")
y=await client.wait_for('message', timeout=15.0)
z=discord.utils.get(sly.guild.categories, name =y)
await sly.guild.create_text_channel(x, overwrites=None, category=z)

Source: Python Questions