Skip to content

'SlashCommand' object has no attribute 'parent' #134

@yagomichalak

Description

@yagomichalak

Summary

Whenever you put a Slash command in a cog, getting all commands from a cog will raise the error above.

Reproduction Steps

  • Create a slash command in a cog;
  • Try to get all commands from that same cog;
  • Observe.

Minimal Reproducible Code

cog.get_commands()

Expected Results

Get a full list of cog commands

Actual Results

ERROR: Command raised an exception: AttributeError: 'SlashCommand' object has no attribute 'parent' | Class: <class 'discord.ext.commands.errors.CommandInvokeError'> | Cause: 'SlashCommand' object has no attribute 'parent'

Intents

All intents

System Information

  • Python v3.9.6-final
  • pycord v2.0.0-alpha
    • pycord pkg_resources: v2.0.0a3872+g7e536bc8
  • aiohttp v3.7.4
  • system info: Windows 10 10.0.19042

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

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions