Ask coding questions

← Back to all posts
so im looking how to create channels with a discord bot
ggvick2014

i have been on the internet searching everywhere and i cant find how to create channels! can one of you guys help me please

Voters
ggvick2014
Comments
hotnewtop
xfinnbar

Use await guild.create_text_channel("The-name-of-the-new-channel")
You'll need a guild object to run this on. If it's in a command, use await ctx.guild.create_text_channel(channel_name)

ggvick2014

@xfinnbar so what should the guild object be?