
    cjh                        U d Z ddlmZ ddlmZmZmZmZmZ ddl	Z	ddl
mZ ddlmZmZ erdd	lmZ dZ ed
d      Z ededef         Ze	j(                  j*                  Zded<    G d de      Zy)ae  
The MIT License (MIT)

Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
    )annotations)TYPE_CHECKINGAnyCallable	GeneratorTypeVarN   )Cog)ApplicationCommandSlashCommandGroup   )CommandCogTr
   )boundFuncT.r   MISSINGc                  0     e Zd Zd fdZddZddZ xZS )r
   c                "    t         |   |       S )N)super__new__)clsargskwargs	__class__s      K/var/www/html/venv/lib/python3.12/site-packages/discord/ext/commands/cog.pyr   zCog.__new__/   s     ws##    c              #  *  K   ddl m} | j                  D ]v  }t        |t              s7|j
                   | t        ||      s1|j                         E d{    Jt        |t              r|j                         E d{    s| x y7 57 w)zAn iterator that recursively walks through this cog's commands and subcommands.

        Yields
        ------
        Union[:class:`.Command`, :class:`.Group`]
            A command or group from the cog.
        r   )
GroupMixinN)corer   __cog_commands__
isinstancer   parentwalk_commandsr   )selfr   commands      r   r#   zCog.walk_commands5   s      	%,, 		Gg'9:>>)!M!':6#*#8#8#:::G%67"00222		
 ;2s.   2BBBB(BBBBc                Z    | j                   D cg c]  }|j                  | c}S c c}w )a  
        Returns
        --------
        List[Union[:class:`~discord.ApplicationCommand`, :class:`.Command`]]
            A :class:`list` of commands that are defined inside this cog.

            .. note::

                This does not include subcommands.
        )r    r"   )r$   cs     r   get_commandszCog.get_commandsJ   s'      00EaAHH4DEEEs   (()r   z
type[CogT]r   r   r   r   returnr   )r)   zGenerator[Command, None, None])r)   z"list[ApplicationCommand | Command])__name__
__module____qualname__r   r#   r(   __classcell__)r   s   @r   r
   r
   .   s    $*Fr   )__doc__
__future__r   typingr   r   r   r   r   discordcogr
   commandsr   r   r   r   __all__r   r   utilsr   __annotations__ r   r   <module>r8      sl   2 # C C   =
vU#xS12}}$$ $'F# 'Fr   