// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: org.tangled.temp.spindle.moderation.getBan import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( TempSpindleModerationGetBanNSID = "org.tangled.temp.spindle.moderation.getBan" ) // TempSpindleModerationGetBan_Output is the output of a org.tangled.temp.spindle.moderation.getBan call. type TempSpindleModerationGetBan_Output struct { // ban: active ban matching the requested DID Ban *TempSpindleModerationDefs_Ban `json:"ban" cborgen:"ban"` } // TempSpindleModerationGetBan calls the XRPC method "org.tangled.temp.spindle.moderation.getBan". // // did: DID of the repository or account owner to look up func TempSpindleModerationGetBan(ctx context.Context, c util.LexClient, did string) (*TempSpindleModerationGetBan_Output, error) { var out TempSpindleModerationGetBan_Output params := map[string]interface{}{} params["did"] = did if err := c.LexDo(ctx, util.Query, "", "org.tangled.temp.spindle.moderation.getBan", params, nil, &out); err != nil { return nil, err } return &out, nil }