Skip to content
Typeplugin-linked-rolesv0.1.0

ConnectionResult

What running your values for one user ended in. push() resolves to it.

  • connected: the plugin wrote the user's role connection.
  • refused: your values returned { refuse }, and message is that text. The plugin didn't write anything.
type ConnectionResult =
    | { kind: "connected"; user: APIUser }
    | { kind: "refused"; user: APIUser; message: string };