@@ -8,16 +8,16 @@ class Moderation(commands.Cog):
8
8
def __init__ (self , client ):
9
9
self .client = client
10
10
11
- # Закрытие канала
11
+ # Closing channel
12
12
13
13
@commands .command (aliases = ["lock" ])
14
14
@commands .has_permissions (manage_channels = True )
15
15
async def lockdown (self , ctx ):
16
16
await ctx .message .delete ()
17
17
await ctx .channel .set_permissions (ctx .guild .default_role , send_messages = False )
18
- await ctx .send ( ctx .channel .mention + " - **Channel locked.**" )
18
+ await ctx .send (ctx .channel .mention + " - **Channel locked.**" )
19
19
20
- # Открытие канала
20
+ # Opening channel
21
21
22
22
@commands .command ()
23
23
@commands .has_permissions (manage_channels = True )
@@ -26,7 +26,7 @@ async def unlock(self, ctx):
26
26
await ctx .channel .set_permissions (ctx .guild .default_role , send_messages = True )
27
27
await ctx .send ( ctx .channel .mention + " - **Channel unclocked.**" )
28
28
29
- # Бан
29
+ # Ban
30
30
31
31
@commands .command ()
32
32
@commands .has_permissions (ban_members = True )
@@ -40,7 +40,7 @@ async def ban(self, ctx, member: Member, *, reason: Optional[str] = "No reason."
40
40
await ctx .send (embed = embed )
41
41
await member .ban (reason = reason )
42
42
43
- # Разбан
43
+ # Unban
44
44
45
45
@commands .command ()
46
46
@commands .has_permissions (administrator = True )
@@ -63,6 +63,8 @@ async def unban(self, ctx, *, member, reason: Optional[str] = "No reason."):
63
63
await ctx .send (embed = embed )
64
64
return
65
65
66
+ # Kick
67
+
66
68
@commands .command ()
67
69
@commands .has_permissions (kick_members = True )
68
70
async def kick (self , ctx , member : nextcord .Member , * , reason : Optional [str ] = "No reason." ):
@@ -76,6 +78,8 @@ async def kick(self, ctx, member: nextcord.Member, *, reason: Optional[str] = "N
76
78
embed .set_footer (text = f'Administrator - { ctx .author .name } #{ ctx .author .discriminator } ' , icon_url = ctx .author .avatar .url )
77
79
await ctx .send (embed = embed )
78
80
81
+ # Clear / Purge
82
+
79
83
@commands .command (aliases = ["purge" ])
80
84
@commands .has_permissions (manage_messages = True )
81
85
async def clear (self , ctx , * , amount : int = None ):
0 commit comments