Revert "Revert "TP-0000 | restricting incident creation from private channels"" (#63)
* Revert "Revert "TP-0000 | restricting incident creation from private channels (#60)" (#62)"
This reverts commit b3eed5dd63.
* TP-0000 | allow incident creation from channels where houston is invited
* TP-0000 | renaming functions
* TP-0000 | making desc mandatory
This commit is contained in:
committed by
GitHub Enterprise
parent
b3eed5dd63
commit
b135eade9c
@@ -58,3 +58,14 @@ func (c *Client) InviteUsersToConversation(channelId string, userId ...string) {
|
||||
|
||||
c.logger.Info("successfully invite users to conversation", zap.String("channel_id", channelId), zap.Any("user_ids", userId))
|
||||
}
|
||||
|
||||
func (c *Client) GetConversationInfo(channelId string) (*slack.Channel, error) {
|
||||
channel, err := c.socketModeClient.GetConversationInfo(&slack.GetConversationInfoInput{
|
||||
ChannelID: channelId,
|
||||
})
|
||||
if err != nil {
|
||||
c.logger.Info("failed while fetching conversation info", zap.Error(err))
|
||||
return nil, err
|
||||
}
|
||||
return channel, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user