def METHOD_NAME(self):
    async def callback(event: hikari.BanDeleteEvent, /) -> None:
        ...
    add_listener_ = mock.Mock()
    class StubClient(tanjun.Client):
        add_listener = add_listener_
    client = StubClient(mock.Mock())
    result = client.with_listener()(callback)
    assert result is callback
    add_listener_.assert_called_once_with(hikari.BanDeleteEvent, callback)