Optional[:class:`TextChannel`]: Returns the guild's channel used for system messages.

        Currently this is only for new member joins. If no channel is set, then this returns ``None``.

def system_channel(self):
        """Optional[:class:`TextChannel`]: Returns the guild's channel used for system messages.

        Currently this is only for new member joins. If no channel is set, then this returns ``None``.
        """
        channel_id = self._system_channel_id
        return channel_id and self._channels.get(channel_id)