Undocumented helix/moderation/banned modification

You can cross reference the unban with the last action taken on the account in your reference table, then seen if it was a timeout, or a ban that was lifted.

But yes you are correct the unban eventsub and pubsub moderation actions topic just report an event occured and doesn’t reference a secondary event.

For this I use the ban and unban topics together and can see if a unabn was an early timeout removal. As my Database table stores the needed information from the two events.

If this doesn’t fit for you then you need a uservoice to ask Twitch to expand on the data

Raised the typo as 613 Get Banned Users - refers to /events in the optional query parameters · Issue #613 · twitchdev/issues · GitHub