diff --git a/README.md b/README.md index f42594f..e8bc2c9 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This project provides a means of archiving a Slack conversation or thread as mar gh slack -i # defaults to read command gh slack read gh slack read -i - gh slack send -m -c -t + gh slack send -m -c -t # Example configuration (add to gh's configuration file at $HOME/.config/gh/config.yml): extensions: diff --git a/cmd/gh-slack/cmd/root.go b/cmd/gh-slack/cmd/root.go index 99a2cca..81cbc85 100644 --- a/cmd/gh-slack/cmd/root.go +++ b/cmd/gh-slack/cmd/root.go @@ -23,7 +23,7 @@ var rootCmd = &cobra.Command{ Example: ` gh-slack -i # defaults to read command gh-slack read gh-slack read -i - gh-slack send -m -c -t + gh-slack send -m -c -t ` + sendConfigExample, } diff --git a/internal/slackclient/client.go b/internal/slackclient/client.go index e66f09b..6e679db 100644 --- a/internal/slackclient/client.go +++ b/internal/slackclient/client.go @@ -326,9 +326,8 @@ func (c *SlackClient) conversations() ([]Channel, error) { "exclude_archived": "true", "limit": "1000", - // TODO: this is the default, we might want to support private - // channels and DMs in the future - "types": "public_channel", + // TODO: we might want to support DMs in the future + "types": "public_channel, private_channel", }, ) if err != nil {