File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -82,15 +82,17 @@ const (
82
82
)
83
83
84
84
type DeleteUserOptions struct {
85
- User DeleteType `json:"user"`
86
- Messages DeleteType `json:"messages,omitempty"`
87
- Conversations DeleteType `json:"conversations,omitempty"`
85
+ User DeleteType `json:"user"`
86
+ Messages DeleteType `json:"messages,omitempty"`
87
+ Conversations DeleteType `json:"conversations,omitempty"`
88
+ NewChannelOwnerID string `json:"new_channel_owner_id,omitempty"`
88
89
}
89
90
90
91
// DeleteUsers deletes users asynchronously.
91
92
// User will be deleted either "hard" or "soft"
92
93
// Conversations (1to1 channels) will be deleted if either "hard" or "soft"
93
94
// Messages will be deleted if either "hard" or "soft"
95
+ // NewChannelOwnerID any channels owned by the hard-deleted user will be transferred to this user ID
94
96
// It returns a task ID, the status of the task can be check with client.GetTask method.
95
97
func (c * Client ) DeleteUsers (userIDs []string , options DeleteUserOptions ) (string , error ) {
96
98
if len (userIDs ) == 0 {
You can’t perform that action at this time.
0 commit comments