|
|
|
@ -9,7 +9,6 @@ import (
@@ -9,7 +9,6 @@ import (
|
|
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
"samhofi.us/x/keybase/v2/types/chat1" |
|
|
|
|
"samhofi.us/x/keybase/v2/types/keybase1" |
|
|
|
|
"samhofi.us/x/keybase/v2/types/stellar1" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -701,9 +700,9 @@ func (k *Keybase) ClearCommands() error {
@@ -701,9 +700,9 @@ func (k *Keybase) ClearCommands() error {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ListMembers returns member information for a channel or conversation
|
|
|
|
|
func (k *Keybase) ListMembers(options ListMembersOptions) (keybase1.TeamDetails, error) { |
|
|
|
|
func (k *Keybase) ListMembers(options ListMembersOptions) (chat1.ChatMembersDetails, error) { |
|
|
|
|
type res struct { |
|
|
|
|
Result keybase1.TeamDetails `json:"result"` |
|
|
|
|
Result chat1.ChatMembersDetails `json:"result"` |
|
|
|
|
Error *Error `json:"error,omitempty"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -731,7 +730,7 @@ func (k *Keybase) ListMembers(options ListMembersOptions) (keybase1.TeamDetails,
@@ -731,7 +730,7 @@ func (k *Keybase) ListMembers(options ListMembersOptions) (keybase1.TeamDetails,
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ListMembersOfChannel returns member information for a channel
|
|
|
|
|
func (k *Keybase) ListMembersOfChannel(channel chat1.ChatChannel) (keybase1.TeamDetails, error) { |
|
|
|
|
func (k *Keybase) ListMembersOfChannel(channel chat1.ChatChannel) (chat1.ChatMembersDetails, error) { |
|
|
|
|
opts := ListMembersOptions{ |
|
|
|
|
Channel: channel, |
|
|
|
|
} |
|
|
|
@ -739,7 +738,7 @@ func (k *Keybase) ListMembersOfChannel(channel chat1.ChatChannel) (keybase1.Team
@@ -739,7 +738,7 @@ func (k *Keybase) ListMembersOfChannel(channel chat1.ChatChannel) (keybase1.Team
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ListMembersOfConversation returns member information for a conversation
|
|
|
|
|
func (k *Keybase) ListMembersOfConversation(convID chat1.ConvIDStr) (keybase1.TeamDetails, error) { |
|
|
|
|
func (k *Keybase) ListMembersOfConversation(convID chat1.ConvIDStr) (chat1.ChatMembersDetails, error) { |
|
|
|
|
opts := ListMembersOptions{ |
|
|
|
|
ConversationID: convID, |
|
|
|
|
} |
|
|
|
|