Ask coding questions

← Back to all posts
so im looking how to create channels with a discord bot
GavinVick (0)

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

Comments
hotnewtop
xfinnbar (21)

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)

GavinVick (0)

@xfinnbar so what should the guild object be?

GavinVick (0)

it is not creating the channel, and I think its because I don't have a guild object