Commit Graph
100 Commits
Author SHA1 Message Date
spiral 1567a74a44 fix: update GH workflows and Docker image to .NET 6 2021-11-26 22:24:24 -05:00
spiral 979ab714c3 refactor: move ContextExts to own folder, CommandTree / command defs to CommandMeta folder 2021-11-26 22:04:04 -05:00
spiral 4450ae4214 feat: go through some TODOs 2021-11-26 22:02:58 -05:00
spiral 04d78e3348 refactor: remove some unused code 2021-11-26 21:14:09 -05:00
spiral 1918c56937 feat: upgrade to .NET 6, refactor everything 2021-11-26 21:10:56 -05:00
spiral d28e99ba43 fix: get rid of top-level guild_id key in dispatch payloads 2021-11-26 14:45:58 -05:00
spiral a4a5f5c17a feat: move PKMessage JSON to PluralKit.Core 2021-11-26 14:23:57 -05:00
spiral ddd966ad58 fix: specify application/json content-type in dispatch requests 2021-11-26 12:56:32 -05:00
spiral 28a199e507 fix: serialize guild_id as string in dispatch json 2021-11-26 12:45:15 -05:00
spiral e8d9106543 fix: typo in GroupPatch json 2021-11-25 18:43:34 -05:00
spiral 8854063fe9 fix: misc docs stuff 2021-11-25 17:59:10 -05:00
spiral b8e2ebd470 Merge branch 'feat/webhooks' into main 2021-11-25 17:15:42 -05:00
spiral ec8ecb1e96 feat(webhooks): add blurb about dispatch webhooks, add to nav 2021-11-25 17:13:15 -05:00
spiral ece17f7470 feat(webhooks): verify that url is accessible before saving it 2021-11-25 16:45:00 -05:00
spiral 0a244eb9b5 feat(webhooks): add documentation for pk;s webhook command 2021-11-25 15:42:25 -05:00
spiral bc7e0df872 feat(webhooks): SUCCESSFUL_IMPORT event, better behaviour when creating entities 2021-11-25 15:33:02 -05:00
spiral a05c3cfeed fix(webhooks): docs links 2021-11-25 12:48:49 -05:00
spiral 269646a455 fix(webhook): don't try escaping backslashes in a raw string 2021-11-22 17:05:13 -05:00
spiral 51c900a378 feat(webhooks): docs 2021-11-22 14:20:43 -05:00
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 24ac0725af refactor: move guildMember caching to IDiscordCache 2021-11-21 12:06:08 -05:00
spiral 99b81085ed fix: fix 'members' string in group limit warning 2021-11-21 09:05:16 -05:00
spiral 9c95ca2ed9 fix: temporarily disable last message query in member_list 2021-11-21 09:03:47 -05:00
spiral 40dbf7dad6 fix(webhooks): don't allow Discord webhook URLs 2021-11-19 15:54:39 -05:00
spiral 75c35b7f85 fix(webhooks): CheckSystem before trying to set a webhook URL 2021-11-19 15:53:48 -05:00
spiral 7b9d2a4e5e feat(webhooks): add all events except group member events 2021-11-19 11:37:50 -05:00
spiral f071485a82 fix(webhooks): always send event data, even if null 2021-11-19 11:23:23 -05:00
spiral 1822788e4d feat(webhooks): add message create event 2021-11-19 11:14:40 -05:00
spiral e48e39eeb1 fix(webhooks): add signing token to events that are missing it 2021-11-19 11:13:21 -05:00
spiral e8beb245da fix(webhooks): fix error when DNS entry has non-ipv4 addresses 2021-11-19 10:58:12 -05:00
spiral b1f4253efb fix: show correct file size in 'file too large' error message 2021-11-19 10:22:11 -05:00
spiral 85c095a115 fix: check 'with_members' in /systems/:ref/groups against member list privacy 2021-11-19 10:18:12 -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 923ad100e5 lint 2021-11-19 07:57:01 -05:00
spiral c9f91e0c13 feat(docs): update upload screenshot for new Discord UI 2021-11-19 07:55:56 -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 3ba46ff456 update packages.lock for PluralKit.Tests 2021-11-17 20:41:22 -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 45258d519e feat: allow proxying in guild voice channels 2021-11-17 15:55:54 -05:00
spiral 4fa51da312 feat(docs): add note about query string parameters 2021-11-17 10:00:57 -05:00
spiral d72537eded feat(docs): document pagination requirement for /systems/:ref/switches endpoint 2021-11-17 09:53:17 -05:00
spiral b4b83f2c94 fix(api): have correct behaviour for 'before' param 2021-11-17 09:52:58 -05:00
spiral 1d5943b6e1 fix(api): properly ignore exceptions that result in 400 status code 2021-11-17 09:45:34 -05:00
spiral 8df259a40d feat: change member/group lookup order, add -id flag 2021-11-17 09:30:19 -05:00
spiral 19628ec400 feat: add showing avatar URL in short list 2021-11-14 11:10:19 -05:00
spiral cb38b6809d fix: don't spam Sentry with caught exceptions 2021-11-11 06:31:12 -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 48d4009c69 fix: fix reporting Discord response metrics to influxdb 2021-11-09 02:19:31 -05:00
spiral 24a549341e feat: don't call GetCurrentProcess twice 2021-11-09 01:51:02 -05:00
spiral 35bbf199f6 feat: add config setting to disable sending errors
we've disabled/re-enabled these a few times in code now...
2021-11-09 01:50:09 -05:00
spiral ec3795f9d0 feat: globally rate-limit sending errors, rather than per-channel 2021-11-09 01:48:47 -05:00
spiral e5c74edd85 feat: ignore database timing out 2021-11-09 01:31:42 -05:00
spiral b4e8dda9dd fix: update sentry, correctly configure sentry dsn 2021-11-09 01:31:06 -05:00
spiral 78fc247b7e fix(docs): fix links to guild settings models 2021-11-08 11:15:48 -05:00
spiral 7205fd1595 feat(docs): add proxy_tags to member object, add note about max proxy tag length 2021-11-08 11:11:36 -05:00
spiral 6da1bbd267 feat: sort by display name in short list 2021-11-08 10:49:50 -05:00
spiral 2a7d4ff97d fix: properly get long commit hash from git 2021-11-08 10:48:45 -05:00
spiral b273b49533 fix: throw SystemNotFound in SystemGet instead of 404ing 2021-11-07 13:56:15 -05:00
spiral 3979cdd95a feat: officially deprecate APIv1 2021-11-07 12:43:59 -05:00
spiral c9e2425a67 fix: disable error reporting... again 2021-11-07 12:25:20 -05:00
spiral be443caccf fix: off-by-one error in switching list pages 2021-11-07 12:24:06 -05:00
spiral d19f6456a7 feat: show full commit version hash in sentry logs 2021-11-07 03:09:45 -05:00
spiral 037f54b41a feat: move to Plausible self-hosted 2021-11-04 21:45:54 -04:00
spiral 38cbca1b34 feat: respect guild boost file size limit when re-sending attachments 2021-11-04 14:13:43 -04:00
spiral bdb6b61903 fix: asp.net doesn't automatically complete the response writer 2021-11-03 23:27:44 -04:00
spiral e1a5310a3a fix: check member/group limits before creating 2021-11-03 02:42:37 -04:00
spiral 00b7f76a5b fix(webhooks): actually correctly parse urls for DNS resolution 2021-11-03 02:02:07 -04:00
spiral a81ffc3399 feat(webhooks): add basic commands 2021-11-03 02:01:35 -04:00
spiral c1f05eecf8 feat: rename Commands/Token to Commands/Api 2021-11-03 01:36:03 -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 71aec0d419 feat(webhooks): init, add service/models, add JSON to patch objects 2021-11-02 06:08:17 -04:00
spiral 08c5b78cc2 fix: don't show discord URL tokens in logs 2021-11-02 05:44:47 -04:00
spiral b430446171 feat: specify custom Discord base URL
for use with twilight_http_proxy or similar
2021-11-02 05:36:53 -04:00
spiral 14b0e98791 feat: remove DiscordRequestObserver 2021-11-02 05:34:17 -04:00
spiral f78d4844e2 feat: add 'full' argument to pk;s frontpercent command 2021-11-01 02:35:29 -04:00
spiral 235d3c3c86 feat: add note about scheduled tasks worker to README 2021-11-01 01:47:10 -04:00
spiral c660ee2dae feat: add scheduled tasks worker to docker-compose 2021-11-01 01:46:07 -04:00
spiral 44ccf01f93 feat: with_members query string on /systems/:ref/members endpoint 2021-11-01 00:12:11 -04:00
spiral 8d02af7b94 refactor: move GroupAddRemoveResponseService into GroupMemberUtils
(it's not a service)
2021-10-31 01:11:10 -04:00
spiral bb8d5dcf12 fix: actually export everything from PKSystem 2021-10-30 20:45:59 -04:00
spiral 1f2043c8ac fix: 'pk;member commands' is too long and throws an error 2021-10-30 20:45:36 -04:00
spiral 9fece5dbf5 feat: add documentation for /v2/messages/{message} endpoint 2021-10-30 19:51:50 -04:00
spiral 3e2441cf3a feat: add 'pk;s <id> avatar' command 2021-10-30 19:02:21 -04:00
spiral 7c9a375393 feat: temporarily add warning message about pre-release apiv2 docs 2021-10-30 18:50:19 -04:00
spiral d9da50c189 feat: throw exception 2021-10-30 18:49:36 -04:00
spiral f44f83c809 Merge branch 'feat/apiv2' into main 2021-10-30 18:18:08 -04:00
spiral c7126840ed refactor(apiv2): rewrite group member endpoints to be cleaner 2021-10-30 18:16:18 -04:00
spiral 93eef82a83 refactor(apiv2): fix nonsense behaviour with error objects/arrays 2021-10-29 20:06:09 -04:00
spiral f897ce5a45 fix: re-enable error messages for explicit commands 2021-10-29 17:34:28 -04:00
spiral 9a34834ca9 Merge branch 'main' of ssh://github.com/xSke/pluralkit into main 2021-10-29 13:29:23 -04:00
spiral be5bf0cfb7 feat: misc pk;log channel changes
- show currently set log channel if no arguments are present
- throw error if someone tries to set the log channel to an invalid channel type
- throw error if bot is missing permissions to log in the new channel
2021-10-29 13:28:27 -04:00
spiral 13fa78987c fix: accept channel ID in MatchChannel 2021-10-29 13:04:41 -04:00
spiral 456545efe8 fix: import nickname from Tupperbox 2021-10-29 12:59:19 -04:00
spiral 8e0e393f52 feat(apiv2): docs fixes 2021-10-22 17:54:47 -04:00
spiral 7d36a39a57 feat(apiv2): documentation, misc fixes 2021-10-22 11:20:26 -04:00
spiral 2bf1617737 feat(apiv2): reorganize controllers, add stats to meta endpoint 2021-10-15 07:08:41 -04:00
spiral 8fe688e4aa Merge branch 'main' into feat/apiv2 2021-10-15 06:32:50 -04:00