/[sudobot]/branches/4.x/docs/moderation/locking_channels.md
ViewVC logotype

Annotation of /branches/4.x/docs/moderation/locking_channels.md

Parent Directory Parent Directory | Revision Log Revision Log


Revision 577 - (hide annotations)
Mon Jul 29 18:52:37 2024 UTC (8 months ago) by rakinar2
File MIME type: text/markdown
File size: 1923 byte(s)
chore: add old version archive branches (2.x to 9.x-dev)
1 rakinar2 577 # Locking Channels
2    
3     You can lock channels using `-lock` command. This sets a permission override to the target channel that denies `SEND_MESSAGES` permission for `@everyone` role.
4    
5     !!! warning
6     If other roles have `SEND_MESSAGES` permission allowed then members having them could bypass the channel lock. You should take care about this.
7    
8     ##### Legacy Command
9     ```
10     -lock [ChannelID|ChannelMention]
11     ```
12    
13     ##### Slash Command
14     ```
15     /lock [Channel]
16     ```
17    
18     !!! note
19     If the channel is not specified then the system will lock the current channel.
20    
21     #### Examples
22    
23     ```
24     -lock
25     -lock 347382275362482
26     -lock #general
27     ```
28    
29     ## Locking Channels in Bulk
30    
31     ##### Legacy Command
32     ```
33     -lockall <...ChannelIDs|ChannelMentions> [--raid]
34     ```
35    
36     ##### Slash Command
37     ```
38     /lockall <...ChannelIDs> [Role] [Raid]
39     ```
40    
41     * `Role`: The channel will be locked for this role. Defaults to `@everyone`.
42     * `Raid`, `--raid`: Select and lock all Raid-protected channels.
43    
44     #### Examples
45    
46     ```
47     -lockall --raid
48     -lockall 347382275362482
49     -lockall #general
50     ```
51    
52     ## Unlocking Channels
53    
54     You can unlock channels back using `-unlock` command. This sets a permission override to the target channel that reverts the `SEND_MESSAGES` permission for `@everyone` role as it was before.
55    
56     ##### Legacy Command
57     ```
58     -unlock [ChannelID|ChannelMention]
59     ```
60    
61     ##### Slash Command
62     ```
63     /unlock [Channel]
64     ```
65    
66     !!! note
67     If the channel is not specified then the system will unlock the current channel.
68    
69     #### Examples
70    
71     ```
72     -unlock
73     -unlock 347382275362482
74     -unlock #general
75     ```
76    
77     ## Unlocking Channels in Bulk
78    
79     ##### Legacy Command
80     ```
81     -unlockall <...ChannelIDs|ChannelMentions> [--raid]
82     ```
83    
84     ##### Slash Command
85     ```
86     /unlockall <...Channels> [Role] [Raid]
87     ```
88    
89     * `Role`: The channel will be unlocked for this role. Defaults to `@everyone`.
90     * `Raid`, `--raid`: Select and unlock all Raid-protected channels.
91    
92     #### Examples
93    
94     ```
95     -unlockall --raid
96     -unlockall 347382275362482
97     -unlockall #general
98     ```

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26