initial polls support (not exactly working)

This commit is contained in:
Ellie Algase
2026-01-25 14:33:09 +13:00
committed by Cadence Ember
parent 2496f4c3b0
commit e565342ac8
16 changed files with 749 additions and 14 deletions
+10
View File
@@ -32,6 +32,8 @@ const speedbump = sync.require("./actions/speedbump")
const retrigger = sync.require("./actions/retrigger")
/** @type {import("./actions/set-presence")} */
const setPresence = sync.require("./actions/set-presence")
/** @type {import("./actions/add-or-remove-vote")} */
const vote = sync.require("./actions/add-or-remove-vote")
/** @type {import("../m2d/event-dispatcher")} */
const matrixEventDispatcher = sync.require("../m2d/event-dispatcher")
/** @type {import("../discord/interactions/matrix-info")} */
@@ -370,6 +372,14 @@ module.exports = {
await createSpace.syncSpaceExpressions(data, false)
},
async MESSAGE_POLL_VOTE_ADD(client, data){
await vote.addVote(data)
},
async MESSAGE_POLL_VOTE_REMOVE(client, data){
await vote.removeVote(data)
},
/**
* @param {import("./discord-client")} client
* @param {DiscordTypes.GatewayPresenceUpdateDispatchData} data