def client(self) -> discord.Client: """ The client to use :return: The client, or None if not attached to a registry """ return None if self.registry is None else self.registry.client