Skip to content

Commit 94ccbe9

Browse files
fix: Duplicate prompts with !createcategory
1 parent 0a57814 commit 94ccbe9

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

gitcord/cogs/general.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,6 @@ async def createcategory_slash(self, interaction: discord.Interaction, yaml_path
370370
existing_category = discord.utils.get(interaction.guild.categories, name=category_config['name'])
371371
if existing_category:
372372
# Category exists, check for differences and apply updates
373-
embed = create_embed(
374-
title="🔄 Updating Existing Category",
375-
description=f"Category **{category_config['name']}** already exists. Checking for differences...",
376-
color=discord.Color.blue()
377-
)
378-
await interaction.followup.send(embed=embed)
379373

380374
updated_channels = []
381375
created_channels = []
@@ -832,12 +826,6 @@ async def createcategory(self, ctx: commands.Context) -> None:
832826
existing_category = discord.utils.get(ctx.guild.categories, name=category_config['name'])
833827
if existing_category:
834828
# Category exists, check for differences and apply updates
835-
embed = create_embed(
836-
title="🔄 Updating Existing Category",
837-
description=f"Category **{category_config['name']}** already exists. Checking for differences...",
838-
color=discord.Color.blue()
839-
)
840-
await ctx.send(embed=embed)
841829

842830
updated_channels = []
843831
created_channels = []
@@ -990,7 +978,6 @@ async def createcategory(self, ctx: commands.Context) -> None:
990978
await ctx.send(embed=embed, view=delete_view)
991979
else:
992980
await ctx.send(embed=embed)
993-
await ctx.send(embed=embed)
994981
logger.info("Category '%s' processed: %d created, %d updated, %d skipped, %d extra",
995982
category_config['name'], len(created_channels), len(updated_channels),
996983
len(skipped_channels), len(extra_channels))

0 commit comments

Comments
 (0)