mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-07 13:22:32 +02:00
add Kick.
This commit is contained in:
parent
ceb4e0c3f1
commit
d62acec443
1 changed files with 5 additions and 2 deletions
|
@ -304,8 +304,11 @@ func (s *session) wsToBackend(msg []byte) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: No WS equivalent, call HTTP API.
|
// TODO: we need to send a message to the user before kicking them
|
||||||
return fmt.Errorf("event not implemented: %s", header.Event)
|
// that they are being kicked so they will not automatically rejoin
|
||||||
|
return s.apiReq(http.MethodPost, "/api/members/"+request.ID, map[string]any{
|
||||||
|
"can_login": false,
|
||||||
|
}, nil)
|
||||||
|
|
||||||
case oldEvent.ADMIN_MUTE:
|
case oldEvent.ADMIN_MUTE:
|
||||||
request := &oldMessage.Admin{}
|
request := &oldMessage.Admin{}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue