forked from cadence/out-of-your-element
Comparison of all the stuff I did. #6
1 changed files with 2 additions and 0 deletions
|
|
@ -402,7 +402,9 @@ async function setUserPowerCascade(spaceID, mxid, power, api) {
|
||||||
* @param {string} eventID
|
* @param {string} eventID
|
||||||
*/
|
*/
|
||||||
function getThreadRoomFromThreadEvent(eventID){
|
function getThreadRoomFromThreadEvent(eventID){
|
||||||
|
console.log("searching for: "+eventID)
|
||||||
const threadID = select("event_message", "message_id", {event_id: eventID}).pluck().get() //Discord thread ID === its message ID
|
const threadID = select("event_message", "message_id", {event_id: eventID}).pluck().get() //Discord thread ID === its message ID
|
||||||
|
console.log("matched to: "+threadID)
|
||||||
if (!threadID) return threadID;
|
if (!threadID) return threadID;
|
||||||
return select("channel_room", "room_id", {channel_id: threadID}).pluck().get()
|
return select("channel_room", "room_id", {channel_id: threadID}).pluck().get()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue