Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'channels' option to /tracking add #236

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

FloatingMilkshake
Copy link
Collaborator

Closes #216. Adds a new channels option to the /tracking add command. This allows moderators to filter tracking by channel, so that only messages from the user that are sent in the specified channels will be tracked.

If a user is currently being tracked, /track add will update their tracking if you have changed the list of channels. Otherwise, it will throw an error that the user is already being tracked.

Channels can be IDs and/or mentions, and can be separated by spaces and/or commas. For example, all of the following are valid:

  • #general-chat,#lounge
  • #general-chat, #lounge
  • #general-chat #lounge
  • #general-chat,885928971068387353
  • #general-chat, 885928971068387353
  • #general-chat 885928971068387353
  • 885928971068387352 885928971068387353

Events/MessageEvent.cs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Todo: Option to limit /tracking add to channel(s)
2 participants