mirror-chatterino2/mocks/include/mocks
pajlada 9b31246502
feat: allow timeout-related commands to be used in multiple channels (#5402)
This changes the behaviour of the following commands:
 - `/ban`
 - `/timeout`
 - `/untimeout`
 - `/unban`

All of those commands now accept one or more `--channel` parameters to override which channel the action should take place in.
The `--channel` parameter accepts a channel ID or channel name with the same syntax as the other "user targets" do (e.g. `id:11148817` or `pajlada`)

examples
Ban user in the chat you're typing in:  
`/ban weeb123`

Ban user in the chat you're typing in, with a reason specified:  
`/ban weeb123 the ban reason`

Ban user in a separate chat, with a reason specified:  
`/ban --channel pajlada weeb123 the ban reason`

Ban user in two separate chats, with a reason specified:  
`/ban --channel pajlada --channel id:117166826 weeb123 the ban reason`


Timeout user in the chat you're typing in:  
`/timeout weeb123`

Timeout user in the chat you're typing in, with a reason specified:  
`/timeout weeb123 10m the timeout reason`

Timeout user in a separate chat, with a reason specified:  
`/timeout --channel pajlada weeb123 10m the timeout reason`

Timeout user in two separate chats, with a reason specified:  
`/timeout --channel pajlada --channel id:117166826 weeb123 10m the timeout reason`


Unban user in the chat you're typing in:  
`/unban weeb123`

Unban user in a separate chat:  
`/unban --channel pajlada weeb123`

Unban user in two separate chats:  
`/unban --channel pajlada --channel id:117166826 weeb123`
2024-06-16 12:22:51 +02:00
..
Channel.hpp Test filters context map & message builder (#4886) 2023-10-13 15:41:23 +00:00
ChatterinoBadges.hpp refactor: Make ChatterinoBadges less of a singleton (#5103) 2024-01-19 17:25:52 +01:00
DisabledStreamerMode.hpp refactor: turn StreamerMode into a singleton(-like thing) (#5216) 2024-03-01 21:12:02 +01:00
EmptyApplication.hpp feat: allow timeout-related commands to be used in multiple channels (#5402) 2024-06-16 12:22:51 +02:00
Helix.hpp Improved error messaging for Update Channel API (#5429) 2024-06-09 11:15:25 +00:00
LinkResolver.hpp feat: allow timeout-related commands to be used in multiple channels (#5402) 2024-06-16 12:22:51 +02:00
Logging.hpp feat: allow timeout-related commands to be used in multiple channels (#5402) 2024-06-16 12:22:51 +02:00
TwitchIrcServer.hpp chore: refactor TwitchIrcServer (#5421) 2024-06-01 12:56:40 +00:00
UserData.hpp Replace boost::optional with std::optional (#4877) 2023-10-08 16:50:48 +00:00