Add documentation for hybrid commands

This commit is contained in:
I. Ahmad
2022-07-26 06:19:42 +05:00
committed by GitHub
parent 3ee18e4c5d
commit a5410e6135
6 changed files with 74 additions and 0 deletions

View File

@ -11,6 +11,7 @@ The gist:
- Each cog is a Python class that subclasses :class:`.commands.Cog`.
- Every command is marked with the :func:`.commands.command` decorator.
- Every hybrid command is marked with the :func:`.commands.hybrid_command` decorator.
- Every listener is marked with the :meth:`.commands.Cog.listener` decorator.
- Cogs are then registered with the :meth:`.Bot.add_cog` call.
- Cogs are subsequently removed with the :meth:`.Bot.remove_cog` call.