I think this should work, at least something similar works in my addon (in a more complex form), when I auto decline ready check if player is afk
Lua Code:
EVENT_MANAGER:RegisterForEvent('election', EVENT_GROUP_ELECTION_REQUESTED, function(_, descriptor)
if descriptor == ZO_GROUP_ELECTION_DESCRIPTORS.READY_CHECK then
CastGroupVote(GROUP_VOTE_CHOICE_AGAINST)
end
end)