Skip to content

Commit

Permalink
Merge pull request #149 from meutraa/ban-user-fix
Browse files Browse the repository at this point in the history
Fix BanUser request
  • Loading branch information
nicklaw5 authored Oct 28, 2022
2 parents 2f2d5e9 + 7ea7b78 commit 0b73b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moderation.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type BanUserParams struct {
}

type BanUserRequestBody struct {
Duration int `json:"duration"` // optional
Duration int `json:"duration,omitempty"` // optional
Reason string `json:"reason"` // required
UserId string `json:"user_id"` // required
}
Expand Down

0 comments on commit 0b73b23

Please sign in to comment.