Interface ShardGroupActionResponse

Response from any POST /api/v1/groups action (upsert, delete, assign, unassign).

interface ShardGroupActionResponse {
    action?: string;
    group?: null | AssignmentGroup;
    groups: AssignmentGroup[];
    guildId?: string;
    ok: boolean;
}

Properties

action?: string

Action that was performed.

group?: null | AssignmentGroup

The single group affected by this action, when applicable.

groups: AssignmentGroup[]

Full set of groups after the action was applied.

guildId?: string

ID of the guild the groups belong to.

ok: boolean

Whether the operation succeeded.