feat: merge UPDATE_SWITCH_MEMBERS event into UPDATE_SWITCH event

This commit is contained in:
spiral 2021-11-28 17:35:56 -05:00
parent 6d1c7feae0
commit b9252ec615
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31
3 changed files with 1 additions and 3 deletions

View File

@ -82,7 +82,7 @@ public partial class ModelRepository
_ = _dispatch.Dispatch(switchId, new UpdateDispatchData
{
Event = DispatchEvent.UPDATE_SWITCH_MEMBERS,
Event = DispatchEvent.UPDATE_SWITCH,
EventData = JObject.FromObject(new
{
members = await GetMemberGuids(members),

View File

@ -25,7 +25,6 @@ public enum DispatchEvent
CREATE_MESSAGE,
CREATE_SWITCH,
UPDATE_SWITCH,
UPDATE_SWITCH_MEMBERS,
DELETE_SWITCH,
DELETE_ALL_SWITCHES,
SUCCESSFUL_IMPORT

View File

@ -51,7 +51,6 @@ PluralKit will send invalid requests to your endpoint, with `PING` event type, o
|CREATE_MESSAGE|a message was sent|[message object](/api/models#message-model)|
|CREATE_SWITCH|a new switch was logged|[switch object](/api/models#switch-model)|
|UPDATE_SWITCH|a switch was updated|[switch object](/api/models#switch-model) with only modified keys|
|UPDATE_SWITCH_MEMBERS|the member list of a switch was updated|list of member IDs|
|DELETE_SWITCH|a switch was deleted|null|old switch ID can be found in top-level `id` key|
|DELETE_ALL_SWITCHES|your system's switches were bulk deleted|null|
|SUCCESSFUL_IMPORT|some information was successfully imported through the `pk;import` command to your system|null|