Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
gvvq authored Jun 20, 2024
1 parent 9fe6271 commit ccf804d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions QoL/cchannel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@bot.command()
async def cchannel(ctx, channel_name):
try:
new_channel = await ctx.guild.create_text_channel(name=channel_name)
await ctx.send(f"Channel {new_channel.mention} created successfully!")
except discord.errors.HTTPException as e:
pass

0 comments on commit ccf804d

Please sign in to comment.