Pycord-Development/pycord

walk_application_commands() return None if 1 command is not loaded

Lumabots opened this issue · 3 comments

Summary

walk_application_commands() return None if 1 command is not loaded

Reproduction Steps

Create a command that cant be added, and check the walk_application_commands()

Minimal Reproducible Code

@commands.slash_command()
    async def ping(self, ctx: LumabotContext, test: str = None):
        await ctx.respond(ctx.translator.bot.test.success.format(test=test))

    @commands.slash_command()
    async def ping(self, ctx: LumabotContext, test: str = None):
        await ctx.respond(ctx.translator.bot.test.success.format(test=test))

Expected Results

2024-06-20 08:08:09 [CRITICAL] : Error loading command: 400 Bad Request (error code: 50035): Invalid Form Body
In 3.options.6: Option names are not unique in locale en-GB
But then walk_application_commands should return all the commands excpet the one duplicate

Actual Results

walk_application_commands return None

Intents

all

System Information

2.5

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

cog.get_commands() also return None with that issue