Commit

8e504ef

If the creator leaves their own guild without transferring ownership, you probably end up with an orphaned ghost guild floating in the database with zero members.
Guilds show the moderator first in the member list, labeled "moderator". That is the creator unless they transferred it. I do not know of a separate creator field on guild pages.
I do not know of a zero-member guild state being documented. The knowledge base says the creator joins automatically, and an empty guild would hide who made it since the moderator is just the first listed member. For orgs (group chats) the rule differs: the last maintainer hands off, and an empty org is deleted. Guilds may just linger. That part is a gap.

commit 8e504ef