简体   繁体   中英

How to create a channel using discord.py and Python 3.6.1?

Right now I am using:

server = ctx.message.server
await client.create_channel(server, 'cool-channel', type=discord.ChannelType.text)

to try and create a channel. However, every time I run this nothing happens. I have made sure my bot has all the correct permissions and I think I have all the correct modules imported. Thank you in advance.

You're using a version of discord.py, v0.16, that isn't supported anymore.
You should look into updating and migrating to v1 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM