# Slack command to un(watch|follow|mute) tag or category

**URL:** <https://meta.discourse.org/t/slack-command-to-un-watch-follow-mute-tag-or-category/60707>\
**Category:** Feature\
**Tags:** chat-integration\
**Created:** [2017 年4 月 10 日 10:39 UTC](https://meta.discourse.org/t/slack-command-to-un-watch-follow-mute-tag-or-category/60707 "2017-04-10T10:39:31Z")\
**Posts on this page:** 5\
**Page:** 1

## AI 生成的摘要

The discussion is about implementing a Slack command to unwatch, unfollow, or unmute tags and categories in Discourse. [mcwumbly](/t/-/60707/1) proposes this feature and provides test cases to demonstrate the desired functionality. They also mention a related feature request to update the status for one tag. [mcwumbly](/t/-/60707/2) notes that several other related issues have been fixed, but this feature is still needed for sites with many channels. [mcwumbly](/t/-/60707/3) has created a PR for this feature, which includes tests. [tgxworld](/t/-/60707/4) thanks [mcwumbly](/t/-/60707/3) for the PR and appreciates the inclusion of tests, making it easier to review.

<div class="post-metadata">

作者： ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
发布日期： [2017 年4 月 10 日 10:39 UTC](https://meta.discourse.org/t/slack-command-to-un-watch-follow-mute-tag-or-category/60707/1 "2017-04-10T10:39:31Z")

</div>

> [@Cannot watch multiple tags using slash command](https://meta.discourse.org/t/cannot-watch-multiple-tags-using-slash-command/60653/3):
>
> There should probably be a command to un(watch|follow|mute) tags and categories explicitly.

Test cases:

```plaintext
/discourse watch foo #watching category foo
/discourse watch bar #watching catgeory foo and bar
/discourse unwatch too #watching category bar

```

```plaintext
/discourse watch tag:foo #watching tag foo
/discourse watch tag:bar #watching tag foo and bar
/discourse unwatch tag:foo #watching tag bar

```

* * *

And perhaps this is a separate feature request, but what about updating the status for one tag? I think today it may do this:

```plaintext
/discourse watch tag:foo #watching tag foo
/discourse watch tag:bar #watching tag foo and bar
/discourse follow tag:foo 
#watching tag foo and bar, following tag foo

```

Instead of this:

```plaintext
/discourse watch tag:foo #watching tag foo
/discourse watch tag:bar #watching tag foo and bar
/discourse follow tag:foo 
#watching tag bar, following tag foo

```

---

<div class="post-metadata">

作者： ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
发布日期： [2017 年4 月 19 日 13:56 UTC](https://meta.discourse.org/t/slack-command-to-un-watch-follow-mute-tag-or-category/60707/2 "2017-04-19T13:56:52Z")

</div>

A bunch of other issues have now been fixed:

- [`/discourse status` slack command does not show tags - #4 by mcwumbly](https://meta.discourse.org/t/discourse-status-slack-command-does-not-show-tags/60651/4)
- [Cannot watch multiple tags using slash command - #7 by mcwumbly](https://meta.discourse.org/t/cannot-watch-multiple-tags-using-slash-command/60653/7)
- [Slack (official plugin) sending topics from staff categories - #11 by mcwumbly](https://meta.discourse.org/t/slack-official-plugin-sending-topics-from-staff-categories/49578/11)
- [`/discourse status` should only show the status for the current channel - #5 by mcwumbly](https://meta.discourse.org/t/discourse-status-should-only-show-the-status-for-the-current-channel/60892/5)

This is the only one I see remaining that really prevents the plugin from being manageable for sites integrating with a slack instance that has 100’s of channels where admins need to enable users to have the ability to use the slack command as a self-service means to choose what kinds of topics their channels are subscribed to.

---

<div class="post-metadata">

作者： ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
发布日期： [2017 年5 月 7 日 03:29 UTC](https://meta.discourse.org/t/slack-command-to-un-watch-follow-mute-tag-or-category/60707/3 "2017-05-07T03:29:33Z")

</div>

Created a PR for this feature here:

[https://github.com/discourse/discourse-slack-official/pull/38](https://github.com/discourse/discourse-slack-official/pull/38)

---

<div class="post-metadata">

作者： ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
发布日期： [2017 年7 月 12 日 15:08 UTC](https://meta.discourse.org/t/slack-command-to-un-watch-follow-mute-tag-or-category/60707/4 "2017-07-12T15:08:42Z")

</div>

Thank you for the PR 👍 It was great that you added tests as well making it easier to review.

---

<div class="post-metadata">

作者： ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
发布日期： [2017 年10 月 10 日 07:30 UTC](https://meta.discourse.org/t/slack-command-to-un-watch-follow-mute-tag-or-category/60707/5 "2017-10-10T07:30:51Z")

</div>


