Commit Graph

1074 Commits

Author SHA1 Message Date
Rory& 673d99051d Guard embedless messages when checking for poll results, add reply tests 2026-06-28 00:54:05 +02:00
CyberL1 73d1ae9e59 refactor: add poll utility 2026-06-26 16:42:33 +02:00
CyberL1 5454898b84 feat: mention poll author 2026-06-26 16:42:33 +02:00
CyberL1 5b0002bb73 chore: remove test console.log 2026-06-26 16:42:33 +02:00
CyberL1 8d5995e5c5 refactor: change # imports into @spacebar/ imports 2026-06-26 16:42:33 +02:00
CyberL1 d34744b140 feat: get non-expired polls on start 2026-06-26 16:42:33 +02:00
CyberL1 fad6cfc043 fix: ddon't turn poll end messages to reply type 2026-06-26 16:42:33 +02:00
CyberL1 caf74417b5 feat: add poll ended messages 2026-06-26 16:42:33 +02:00
CyberL1 74b83801b7 fix: check if message is a poll 2026-06-26 16:42:33 +02:00
CyberL1 d6c05bdeff check opts not message 2026-06-25 17:56:49 +02:00
CyberL1 8ab688382f fix: check for poll answer limit 2026-06-25 17:56:49 +02:00
CyberL1 68ee917ccf fix: don't send loop over not voted answers 2026-06-25 17:56:49 +02:00
CyberL1 97285d545c feat: send vote poll events 2026-06-25 17:56:49 +02:00
CyberL1 a722705bb9 feat: send a MESSAGE_UPDATE event on manual poll expire 2026-06-25 17:56:49 +02:00
CyberL1 a12224536e feat: add route to expire a poll 2026-06-25 17:56:49 +02:00
CyberL1 c440735e4b feat: add route to get voters for an answer 2026-06-25 17:56:49 +02:00
CyberL1 25aa725ba1 fix: forbid poll editing/creating in non-text channels 2026-06-25 17:56:49 +02:00
CyberL1 eae999789c feat: set me_voted for poll messages 2026-06-25 17:56:49 +02:00
CyberL1 0efdb5c35a feat: add voting route 2026-06-25 17:56:49 +02:00
CyberL1 305d1d87b2 fix: poll answer id should never be 0 2026-06-25 17:56:49 +02:00
CyberL1 3896b143c6 refactor: group message poll checks under one if 2026-06-25 17:56:49 +02:00
CyberL1 4cf0e48dd0 fix: assign id to poll answers 2026-06-25 17:56:49 +02:00
CyberL1 77124c559b fix: add expiry field to polls in message handling 2026-06-25 17:56:49 +02:00
Rory& edbb6048c1 Delete messages when deleting webhook 2026-06-17 22:51:39 +02:00
Rory& 9915727ccd Routes: reduce scope of api imports to api/util 2026-06-17 02:34:50 +02:00
Rory& 4aceae2bed Clean up some imports to make API work again 2026-06-17 02:17:59 +02:00
Rory& 4c25f84431 extensions/String: use custom exception type 2026-06-17 01:48:23 +02:00
Rory& 9bb2c437cf Authentication: allow - in webhook token 2026-06-16 17:59:23 +02:00
Rory& e97c1820b7 Fix import 2026-06-16 03:33:11 +02:00
Rory& 6e0f571b35 Signify some imports more explicitly 2026-06-16 02:47:03 +02:00
Rory& 92f4099b82 Move random string to Random class in extensions 2026-06-16 02:39:15 +02:00
Rory& 4b27ee46d6 Dont fetch roles if role id set is empty 2026-06-16 01:09:56 +02:00
Rory& 89d81432d3 Dont fetch roles for non-guild mesages 2026-06-16 01:03:20 +02:00
Rory& e1de08a4d4 Account for channel id when deleting messages 2026-06-16 00:29:47 +02:00
Rory& 42406c1838 Replace APIRole with schema 2026-06-13 20:37:26 +02:00
Rory& 6995aa7f74 Split config/response voice regions, remove APIVoiceRegion alias 2026-06-13 01:57:19 +02:00
Rory& 92f25c3a22 HACKHACK: Migrate to typeorm v1.0.0, still work to do in actually updating all the queries properly 2026-06-13 01:10:59 +02:00
Rory& a437f0a64e api/widget: dont import the entirety of the CDN server 2026-06-12 17:58:18 +02:00
Rory& 03ecae4348 Move more extensions to extensions 2026-06-12 17:58:18 +02:00
Rory& c77d00e243 Move entities to database 2026-06-12 17:58:18 +02:00
Rory& 6821fe0513 Move database to toplevel 2026-06-12 17:58:18 +02:00
Rory& 2c1be0fa53 Use subpath imports for lambert-server, fix openapi.js 2026-06-12 17:58:18 +02:00
Rory& d84b8707ee Allow subpath imports, move extensions to separate module 2026-06-12 17:58:18 +02:00
Rory& c28d14b861 Dont send guild_add for autojoin guilds on register, disable bcrypt workers as doing it in thread is slightly faster 2026-06-11 02:21:03 +02:00
Rory& e46c864f9d Bcrypt worker threads 2026-06-11 00:05:37 +02:00
Rory& 02d93d2a92 Trace registration 2026-06-11 00:04:10 +02:00
Rory& 0573c394cf Use better permissions when handling webhook mentions 2026-06-05 22:59:33 +02:00
Rory& 79e5899dc1 Log silent attachment failures for webhooks 2026-06-05 22:42:59 +02:00
Rory& 46b73308b1 Return url on webhook create 2026-06-05 22:08:03 +02:00
Rory& 805f76d04b Clean up import in Monitoring, close webrtc connection on IPC failure, add LOG_API_ERRORS env var 2026-06-05 15:46:25 +02:00