Commit Graph
100 Commits
Author SHA1 Message Date
spiral 7aaa89c65c fix: don't automatically prompt user to unlink the current account if no arguments are passed 2021-08-27 22:27:40 -04: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 05989242f9 CI: run Docker build only on main repository 2021-08-26 12:05:27 -04:00
spiral 8e02bb294a CI: build/test separately 2021-08-26 12:03:19 -04:00
spiral 9e4f5d8e40 fix strings for group rename 2021-08-26 11:54:28 -04:00
spiral 4b944e2b20 feat: refactor external input handling code
- refactor import/export code
- make import/export use the same JSON parsing as API
- make Patch.AssertIsValid actually useful
2021-08-25 21:43:31 -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 82544cf9ce tweak: don't expose hidden channel count in pk;permcheck 2021-08-25 15:58:55 -04:00
spiral b46561cb0a refactor: move some commands out of Misc 2021-08-25 14:36:13 -04:00
spiral 603123777d add limits to switch members and proxy tag length 2021-08-25 13:42:08 -04:00
spiral 52efb3c70a fix: don't check for useless permission when deleting command messages
this allows for deleting command messages in DMs, where the bot does not have manage messages permissions
and just in general in channels where it doesn't have those permissions as well
2021-08-25 12:43:33 -04:00
spiral 87676c2045 fix: show correct command suggestion to edit server tag 2021-08-25 12:33:24 -04:00
spiral 0d583a2a6b fix: fetch guild settings for server tag in system card 2021-08-25 12:30:42 -04:00
spiral 55c56c4e58 oops, actually check guild permissions as well in channel EveryonePermissions 2021-08-15 01:04:04 -04:00
spiral 4c97a9daf6 hopefully a fix for #384 2021-08-15 00:50:31 -04:00
spiral 4761804082 add channel-specific EveryonePermissions 2021-08-15 00:38:37 -04:00
spiral 8f15065507 fix: don't check file size for banners 2021-08-08 17:44:30 -04:00
spiral 50776980e5 fix: use correct git commit abbrev 2021-08-08 16:19:31 -04:00
spiral e058d05224 fix: catch the correct exception in Paginate 2021-08-08 16:10:55 -04:00
spiral 11bd66e8d8 refactor: move JsonModelExt to PluralKit.Core (in individual model/patch files) 2021-08-08 16:10:53 -04:00
spiral 26c18d2f48 refactor: move modeltypes to own folder, move IDs to file of respective type 2021-08-08 16:10:51 -04:00
spiral a5a39cba0a fix: correctly check banner image size (don't) 2021-08-06 21:41:27 -04:00
spiral b8bd53f3c0 fix: correctly check avatar size 2021-08-06 21:41:18 -04:00
spiral 65cb937e07 feat: show relevant display option for chosen sort property in full list 2021-08-05 17:49:55 -04:00
spiral 2807906d79 feat: show display options in short member list 2021-08-05 17:48:31 -04: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
spiralandSpectralitree b9f73cadb7 feat: proxy debug command
Co-authored-by: Spectralitree <72747870+Spectralitree@users.noreply.github.com>
2021-08-03 21:06:14 -04:00
spiral d8458c0846 docs(api): clarify the term 'nullable' 2021-08-03 20:11:02 -04:00
spiral 348b87f64d docs: name is not nullable in API models 2021-08-03 20:06:08 -04:00
spiral 34a1470d1f fix shard fetch order 2021-08-03 18:57:10 -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 28bcb35bb2 fix cache error on system messages 2021-08-02 16:18:39 -04:00
spiral e144571904 Add banner (large) image 2021-08-02 13:46:12 -04:00
spiral ebf6933440 add more information about non-logger bots with PluralKit support 2021-08-01 16:29:56 -04:00
spiralandpanley01 1a0486f038 Add crosslink to the bots with support list
Co-authored-by: panley01 <52224740+panley01@users.noreply.github.com>
2021-08-01 16:26:11 -04:00
spiral 2ac5436d00 fix docker builds 2021-08-01 15:32:58 -04:00
spiral 1cb4bc9287 Expose git version in 'pk;stats' and '/v1/meta' 2021-08-01 15:22:23 -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 3d2435eb2e move database utils to Database/Utils, create DatabaseMigrator 2021-08-01 11:13:32 -04:00
spiral d633cd4906 Hotfix for missing Discord API endpoint to edit thread webhook message
See https://github.com/discord/discord-api-docs/issues/3519
2021-07-28 02:23:01 -04:00
spiral 762158e857 Update different system error in MessageEdit 2021-07-28 02:19:37 -04:00
spiral 43017c1522 Correctly log errors from gateway event enrichers 2021-07-28 02:09:52 -04:00
spiral def39b7bc5 fix interactions in DMs 2021-07-28 01:55:06 -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 52a7a015cd Document Vortex log cleanup 2021-07-27 10:36:02 -04:00
spiral 620fb5be36 Add Vortex log cleanup 2021-07-24 12:02:06 -04:00
spiralandGitHub 9d344a4ef9 Add confirmation when editing a message from DMs
Closes #373.
2021-07-17 20:39:12 -04:00
spiralandGitHub 0e7bcb993e Fix markdown formatting for privacy subject errors 2021-07-15 02:06:35 -04:00
spiral 7179e2dd1b remove incorrect command aliases 2021-07-14 20:50:06 -04:00
spiral 8992cf8a3f use context utils in Admin.cs 2021-07-14 19:59:22 -04:00
spiral 5d8c16e480 clean up compiler warnings 2021-07-14 19:50:10 -04:00
spiralandGitHub 16639f4f56 Fix link to js library 2021-07-13 23:47:12 -04:00
spiral d17e93e8b0 add API libraries to docs 2021-07-13 23:06:51 -04:00
spiral 30d1bf6926 Fix WarnOnConflict
postgres doesn't like 'value = null' for some reason
Closes #223.
2021-07-13 02:31:06 -04:00
spiral afd8983abe fix the rest of the conditionals 2021-07-08 12:45:59 -04:00
spiral a8e6a53404 ! 2021-07-08 10:57:53 -04:00
spiral 902bad110c Add missing flags to docs 2021-07-08 10:34:13 -04:00
spiral c2b6e0eeed Add groups to pk;admin 2021-07-08 10:04:05 -04:00
spiral 889e1a8331 Don't kill the gateway session when trying to resume
Sending a close code of 1000 or 1001 invalidates gateway sessions.
Instead, we use close code 1005 (no error specified)
2021-07-08 09:19:44 -04: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 dd020d8aa8 Update license in openapi.yaml 2021-07-08 09:07:45 -04:00
spiralandKatelyn Gigante a03b5a0c95 Add NuGet lock files
Co-authored-by: Katelyn Gigante <clockwork.singularity@gmail.com>
2021-07-08 09:04:20 -04:00
spiral b82dad2b9f api: correctly parse 'null' privacy as public 2021-07-06 18:07:17 -04:00
spiralandGitHub 799d6fa300 Fix wording 2021-07-02 17:59:27 -04:00
spiral ab6ab127dd move Context#PromptYesNo to buttons 2021-07-02 06:40:40 -04:00
spiral 2b15815825 listen for text response in YesNoPrompt interactive 2021-07-02 06:35:25 -04:00
spiral af801e2b01 properly encode custom emojis in emoji API routes 2021-07-01 01:59:04 -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
spiral deedb61d41 Add /v1/meta endpoint (shows shard state) 2021-06-21 09:19:47 -04:00
spiral 8cbb2424d7 Throw "no registered switches" error also with frontpercent 2021-06-16 08:56:52 -04:00
spiral 272a3430a6 move message length check *after* proxy members check 2021-06-14 11:31:14 -04:00
spiral c46177f2f5 Check if user is webhook in PermissionsFor 2021-06-14 09:57:58 -04:00
spiral c75451a572 add temporary info message about increased message character limit 2021-06-12 14:45:21 +00:00
spiralandPowi 28cd50a5bf Clarify member/group argument in command list
Co-authored-by: Powi <powi@powi.fr>
2021-06-11 21:12:58 +00:00
spiral ad551b983d docs: update dependencies 2021-06-11 21:08:28 +00:00
spiralandGitHub 0fa13f6e1e Add note about #238 discussing privacy options 2021-06-09 07:24:24 +00:00
spiralandPetal Rose 1fa2d9a093 Update documentation (#332)
Co-authored-by: Petal Rose <habonimkef@gmail.com>
2021-06-02 23:50:45 +00:00
spiral b894a9f86e Set correct REST user-agent 2021-05-26 23:09:43 +01:00
spiral ba6beab245 Add README for Myriad library 2021-05-26 23:06:55 +01:00
spiralandGitHub 0b91e71384 Merge pull request #293 from spiralw/feat/faq 2021-05-23 18:07:31 +02:00
spiral de0713277a Add Catalogger to PluralKit-compatible bots 2021-05-20 12:39:53 +01:00
spiralandGitHub 828ddf8bce Update faq.md 2021-05-12 23:54:03 +01:00
spiral 239afd9b10 Fix error when trying to edit message in DM without link 2021-05-07 22:31:43 +01:00
spiral 1f0c75d677 Add logging message edits 2021-05-07 17:35:09 +01:00
spiralandGitHub f120a592f0 add latest faq entry 2021-05-03 10:10:21 +01:00
spiralandGitHub 653c7b22bd remove random console log 2021-05-01 19:32:37 +01:00
spiral 517abf7ff1 feat: show member color in reply embed 2021-05-01 19:20:00 +01:00
spiral cf93b8b3cc fix: don't try matching commands if there is nothing to match 2021-05-01 19:18:04 +01:00
spiral 1e5ba5f985 feat: case-insensitive "text" keyword matching for proxy tags 2021-05-01 19:17:35 +01:00
spiral e6bfc6c374 Fix error on paginate timeout when missing permissions 2021-04-26 03:44:02 +01:00
spiral dfa25b77c7 Add flag to remove 'no fronter' item on frontpercent card 2021-04-22 01:18:41 +01:00
spiralandGitHub 7f3f81a111 Update error string 2021-04-21 23:09:45 +01:00
spiral b34ed5c4c0 API patch improvements
- add PatchObject.CheckIsValid
- use transaction when creating member, as to not create a member if the
patch is invalid
- return edited system in `PATCH /s` endpoint
2021-04-21 22:57:19 +01:00
spiral 85615b3f68 fix error message on invalid guild ID 2021-04-19 21:38:03 +01:00
spiral d3e3cb0abc feat: add avatar to member via attachment on 'pk;member new' command 2021-04-14 13:56:41 +01:00