feat: merge UPDATE_SWITCH_MEMBERS event into UPDATE_SWITCH event
This commit is contained in:
parent
6d1c7feae0
commit
b9252ec615
@ -82,7 +82,7 @@ public partial class ModelRepository
|
|||||||
|
|
||||||
_ = _dispatch.Dispatch(switchId, new UpdateDispatchData
|
_ = _dispatch.Dispatch(switchId, new UpdateDispatchData
|
||||||
{
|
{
|
||||||
Event = DispatchEvent.UPDATE_SWITCH_MEMBERS,
|
Event = DispatchEvent.UPDATE_SWITCH,
|
||||||
EventData = JObject.FromObject(new
|
EventData = JObject.FromObject(new
|
||||||
{
|
{
|
||||||
members = await GetMemberGuids(members),
|
members = await GetMemberGuids(members),
|
||||||
|
@ -25,7 +25,6 @@ public enum DispatchEvent
|
|||||||
CREATE_MESSAGE,
|
CREATE_MESSAGE,
|
||||||
CREATE_SWITCH,
|
CREATE_SWITCH,
|
||||||
UPDATE_SWITCH,
|
UPDATE_SWITCH,
|
||||||
UPDATE_SWITCH_MEMBERS,
|
|
||||||
DELETE_SWITCH,
|
DELETE_SWITCH,
|
||||||
DELETE_ALL_SWITCHES,
|
DELETE_ALL_SWITCHES,
|
||||||
SUCCESSFUL_IMPORT
|
SUCCESSFUL_IMPORT
|
||||||
|
@ -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_MESSAGE|a message was sent|[message object](/api/models#message-model)|
|
||||||
|CREATE_SWITCH|a new switch was logged|[switch object](/api/models#switch-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|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_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|
|
|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|
|
|SUCCESSFUL_IMPORT|some information was successfully imported through the `pk;import` command to your system|null|
|
||||||
|
Loading…
Reference in New Issue
Block a user