[ban] Fix: Add missing API docs

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-03-31 00:24:26 +02:00
parent a73f27abd0
commit 2ae4857a6a
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -43,9 +43,11 @@ func Register(args plugins.RegistrationArguments) error {
}) })
args.RegisterAPIRoute(plugins.HTTPRouteRegistrationArgs{ args.RegisterAPIRoute(plugins.HTTPRouteRegistrationArgs{
Description: "Executes a ban of an user in the specified channel",
HandlerFunc: handleAPIBan, HandlerFunc: handleAPIBan,
Method: http.MethodPost, Method: http.MethodPost,
Module: "ban", Module: "ban",
Name: "Ban User",
Path: "/{channel}/{user}", Path: "/{channel}/{user}",
QueryParams: []plugins.HTTPRouteParamDocumentation{ QueryParams: []plugins.HTTPRouteParamDocumentation{
{ {