Commit Graph

312 Commits

Author SHA1 Message Date
spiral 7a5ba8246e refactor: cache own user ID in IDiscordCache
- remove Cluster.User
- remove Cluster.Application (it was only being used as an alternative to Cluster.User for some reason)
- move Bot.PermissionsIn to DiscordCacheExtensions
2021-11-21 19:42:35 -05:00
spiral b1f4253efb fix: show correct file size in 'file too large' error message 2021-11-19 10:22:11 -05:00
spiral 0ca356eec3 feat: add support for attachment descriptions 2021-11-19 09:34:52 -05:00
spiral 36acb5bae6 feat: add correct error about guild boost file size limit 2021-11-19 08:11:23 -05:00
spiral 0efaab6d95 refactor: don't use 'out' in IDiscordCache methods
this change is required for async cache (.NET doesn't support async ref/out params)
2021-11-18 13:11:02 -05:00
spiral e7f36eb31f feat: async cache
this breaks logging bot permissions to Sentry.

we haven't had a need to check those recently (permissions issues were because of broken cache), so this is fine for now
this should be re-added in the future though
2021-11-17 20:41:02 -05:00
spiral f7b48ab30d fix: FromDateTimeUtc needs, as mentioned, an UTC datetime 2021-11-10 23:50:44 -05:00
spiral 343fafe9f0 feat: respect Discord permissions in pk;message and pk;edit 2021-11-10 23:46:16 -05:00
spiral ec3795f9d0 feat: globally rate-limit sending errors, rather than per-channel 2021-11-09 01:48:47 -05:00
spiral 38cbca1b34 feat: respect guild boost file size limit when re-sending attachments 2021-11-04 14:13:43 -04:00
spiral 29b28ba742 lint >:( 2021-11-02 22:47:14 -04:00
spiral 21e3e61db0 fix: correctly handle missing role cache in message embed 2021-11-02 22:36:14 -04:00
spiral 8d02af7b94 refactor: move GroupAddRemoveResponseService into GroupMemberUtils
(it's not a service)
2021-10-31 01:11:10 -04:00
Katrix b998636cbe feat: add -raw flag to pk;msg (#399) 2021-10-29 16:42:10 -04:00
spiral 3bc451eb4b feat: move scheduled tasks to separate project 2021-10-15 06:27:38 -04:00
spiral 92e45a07ff refactor: add SqlKata for SQL generation, move connection handling into ModelRepository 2021-09-29 21:51:38 -04:00
spiral 0517c76abf feat: delete command messages with pk;msg -delete 2021-09-26 22:49:43 -04:00
spiral db5fae0fb4 feat: edit messages in threads 2021-09-24 19:03:40 -04:00
spiral fc11a7b8ee feat: raise command message retention time to 24 hours 2021-09-13 02:13:19 -04:00
Ske 9bbe9df16d Clean up a few database pool uses 2021-09-03 22:20:07 +02:00
spiral 2ddef25177 refactor: don't use a class for GroupAddRemoveResponse; fix tests 2021-08-27 19:18:59 -04:00
spiral ac2671452d run dotnet format 2021-08-27 11:03:47 -04:00
spiral f912805ecc feat: make group member add/remove response code less confusing; add tests 2021-08-25 19:51:33 -04:00
spiral 0d583a2a6b fix: fetch guild settings for server tag in system card 2021-08-25 12:30:42 -04:00
Ske 4c17ee3d89 Fix proxying in channels without message history + reduce proxy latency 2021-08-08 21:56:24 +02:00
Ske 1720a28af2 Fix system card lookup in DMs 2021-08-08 15:31:03 +02:00
spiral c27cbeed01 remove some unused/legacy code 2021-08-04 01:39:41 -04:00
spiral 9fd4f327e0 refactor: clean up message logging 2021-08-04 00:41:51 -04:00
spiral 25f96dd920 Fix Discord merging webhook messages with same username
Closes #33.
2021-08-03 13:44:22 -04:00
spiral 9d4006b056 Add server-specific system tag 2021-08-02 17:22:06 -04:00
spiral e144571904 Add banner (large) image 2021-08-02 13:46:12 -04:00
spiral dcc15dc847 Move mediaproxy URL rewriting to ProxyService
This shows full size avatars in API / cards.

Also, rewrite URLs currently stored with media.discordapp.net "back" to
cdn.discordapp.com before sending them to users.
2021-08-01 12:51:54 -04:00
spiral 2bb8c084c9 add missing ) in debug string 2021-08-01 12:32:40 -04:00
spiral a8727f474b Allow any linked account to edit/delete messages sent by the same system
Closes #375.
2021-07-27 11:39:37 -04:00
spiral 620fb5be36 Add Vortex log cleanup 2021-07-24 12:02:06 -04:00
Starshine System 74140b5994 Message info embed improvements (#374)
- Fetch the user if there's no member object, so users who left the server don't show up as deleted
- Order roles by position (so potential staff roles show up first and aren't cut off)
2021-07-19 01:02:27 -04:00
Ske 1f2b9f998d Preliminary support for APIv9 and threads 2021-07-15 12:41:19 +02:00
spiral e620e30c10 Fix channel checks missing GuildNews
The log channel / logclean checks are left as-is; hopefully nobody is
using an announcements channel for their logs?
2021-07-08 09:17:35 -04:00
spiral c727a71161 Add "flat" front history view (percentages add up to 100%) 2021-06-21 11:30:38 -04:00
spiral bc32943824 fix timespan when removing no-fronters 2021-06-21 10:52:06 -04:00
Ske ae82bb4168 Updates to Elastic logging 2021-06-10 14:21:05 +02:00
Ske ae9ed0f4ee Store stard status in the database 2021-06-10 12:52:47 +02:00
Ske 41f1c58a9f Merge branch 'new-shard-handler' 2021-06-08 10:20:59 +02:00
Ske 118f2d49a6 WIP new shard implementation 2021-06-08 10:19:54 +02:00
Ske 4bd2d06b0b Add basic interactivity framework 2021-05-30 16:45:45 +02:00
Ske d7c0592947 Add preliminary support for buttons 2021-05-26 22:27:52 +02:00
spiral 1f0c75d677 Add logging message edits 2021-05-07 17:35:09 +01:00
Spectralitree b1c7fbd2df Add color to frontpercent embed (#307)
* Add color to frontpercent embed

* don't pass color as a separate argument

Co-authored-by: Astrid <mail+github@astr.cc>
2021-05-07 10:40:57 +02:00
Ske 3d624b39e4 Add message editing command
Signed-off-by: Ske <voltasalt@gmail.com>
2021-05-03 12:33:30 +02:00
Ske aa2a234f8d Fix permission error on message edit handler
Signed-off-by: Ske <voltasalt@gmail.com>
2021-05-03 10:29:22 +02:00