Events worked out, but dealing with 'client has no attribute 'media'