def me ( self ) : return self . guild . me if self . guild is not None else self . bot . user
how to check if a discord user is a user with python
Similar to : attr : . Guild . me except it may return the : class : . ClientUser in private message contexts .
def me(self):
        """Similar to :attr:`.Guild.me` except it may return the :class:`.ClientUser` in private message contexts."""
        return self.guild.me if self.guild is not None else self.bot.user