Updates the poll state based on the provided data.
await pollUpdated({ data: { poll: updatedPoll, status: "started" }, polls: currentPolls, poll: currentPoll, member: "user123", islevel: "1", showAlert: (alert) => console.log(alert.message), updatePolls: (polls) => setPolls(polls), updatePoll: (poll) => setCurrentPoll(poll), updateIsPollModalVisible: (visible) => setIsPollModalVisible(visible),}); Copy
await pollUpdated({ data: { poll: updatedPoll, status: "started" }, polls: currentPolls, poll: currentPoll, member: "user123", islevel: "1", showAlert: (alert) => console.log(alert.message), updatePolls: (polls) => setPolls(polls), updatePoll: (poll) => setCurrentPoll(poll), updateIsPollModalVisible: (visible) => setIsPollModalVisible(visible),});
The options for updating the poll.
A promise that resolves when the poll update is complete.
Updates the poll state based on the provided data.
Example