adding basic reactions to discord messages

This commit is contained in:
Cadence Ember 2023-05-09 17:13:59 +12:00
commit 4d8b74f61f
4 changed files with 45 additions and 6 deletions

View file

@ -42,6 +42,7 @@ async function createSim(user) {
/**
* Ensure a sim is registered for the user.
* If there is already a sim, use that one. If there isn't one yet, register a new sim.
* @param {import("discord-api-types/v10").APIUser} user
* @returns mxid
*/
async function ensureSim(user) {
@ -57,6 +58,7 @@ async function ensureSim(user) {
/**
* Ensure a sim is registered for the user and is joined to the room.
* @param {import("discord-api-types/v10").APIUser} user
* @returns mxid
*/
async function ensureSimJoined(user, roomID) {