A fork of https://github.com/teal-fm/piper
at fly 26 lines 858 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package atproto 4 5// schema: com.atproto.admin.disableInviteCodes 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// AdminDisableInviteCodes_Input is the input argument to a com.atproto.admin.disableInviteCodes call. 14type AdminDisableInviteCodes_Input struct { 15 Accounts []string `json:"accounts,omitempty" cborgen:"accounts,omitempty"` 16 Codes []string `json:"codes,omitempty" cborgen:"codes,omitempty"` 17} 18 19// AdminDisableInviteCodes calls the XRPC method "com.atproto.admin.disableInviteCodes". 20func AdminDisableInviteCodes(ctx context.Context, c *xrpc.Client, input *AdminDisableInviteCodes_Input) error { 21 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.disableInviteCodes", nil, input, nil); err != nil { 22 return err 23 } 24 25 return nil 26}