Replacing IRC /ban and /unban with API

You would need a uservoice.

But logically you should already have the userID’s since the userID’s for the target are in the IRCv3 tags of chat.

So you don’t need to do an API call to convert a username to a userID as it’s already presented in the chat messages “meta data”.

See user-id tag in Twitch IRC Tags | Twitch Developers