Compare commits

..

No commits in common. "22ff10222c7b32d9f183a02e6d24bd8a1841918b" and "266f46563b3ac3e7b5e3cc8a8a166fae024bcc5e" have entirely different histories.

View file

@ -298,7 +298,6 @@ const commands = [{
if (words.length < 2){
words[1] = (await api.getEvent(event.room_id, attachedToEvent)).content.body
words[1] = words[1].length < 100 ? words[1] : words[1].slice(0, 96) + "..."
if (isFallingBack) return api.sendEvent(event.room_id, "m.room.message", {
...ctx,
msgtype: "m.text",
@ -336,14 +335,7 @@ const commands = [{
return api.sendEvent(event.room_id, "m.room.message", {
...ctx,
msgtype: "m.text",
body: "You cannot create threads in a Discord channel of the type, to which this Matrix room is bridged to. Did you try to create a thread inside a thread?"
})
}
else if (e.code === 50035) {
return api.sendEvent(event.room_id, "m.room.message", {
...ctx,
msgtype: "m.text",
body: "Specified thread name is too long - thread creation failed. Please yap a bit less in the title, thread body is for that. ;)"
body: "You cannot create a thread in a Discord channel of the type, to which this Matrix room is bridged to. Did you try to create a thread inside a thread?"
})
}
else {
@ -352,7 +344,7 @@ const commands = [{
msgtype: "m.text",
body: "Unknown error occurred during thread creation. See error message below (or on the main channel, if the command was ran inside a thread) for details."
})
throw e_raw;
throw e;
}
}
}