src/utils/subclasses.py
async def maybe_reply(self, content=None, mention_author=False, **kwargs):
        """Replies if there is a message in between the command invoker and the bot's message."""
        await asyncio.sleep(0.05)
        with contextlib.suppress(discord.HTTPException):
            if getattr(self.channel, "last_message", False) != self.message:
                return await super().reply(
                    content, mention_author=mention_author, **kwargs
                )
        return await self.send(content, **kwargs)
Replies if there is a message in between the command invoker and the bot's message.
Replies if there is a message in between the command invoker and the bot's message.
Replies if there is a message in between the command invoker and the bot ' s message .
async def maybe_reply(self, content=None, mention_author=False, **kwargs):
        await asyncio.sleep(0.05)
        with contextlib.suppress(discord.HTTPException):
            if getattr(self.channel, "last_message", False) != self.message:
                return await super().reply(
                    content, mention_author=mention_author, **kwargs
                )
        return await self.send(content, **kwargs)
async def maybe_reply ( self , content = None , mention_author = False , ** kwargs ) : await asyncio . sleep ( 0.05 ) with contextlib . suppress ( discord . HTTPException ) : if getattr ( self . channel , "last_message" , False ) != self . message : return await super ( ) . reply ( content , mention_author = mention_author , ** kwargs ) return await self . send ( content , ** kwargs )
Replies if there is a message in between the command invoker and the bot's message.
Replies if there is a message in between the command invoker and the bot ' s message .
"""Replies if there is a message in between the command invoker and the bot's message."""
self
content
mention_author