mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 04:12:50 +02:00
adding basic reactions to discord messages
This commit is contained in:
parent
da6603d258
commit
4d8b74f61f
4 changed files with 45 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue