@@ -33,9 +33,9 @@ async def on_message_delete(self, ctx):
33
33
return
34
34
35
35
# Check if the channel, user, and category are allowed
36
- if not self . is_channel_allowed (ctx .channel .id , server_data ) or \
37
- not self . is_user_allowed (ctx .author .id , server_data ) or \
38
- not self . is_category_allowed (ctx .channel .category_id , server_data ):
36
+ if not is_channel_allowed (ctx .channel .id , server_data ) or \
37
+ not is_user_allowed (ctx .author .id , server_data ) or \
38
+ not is_category_allowed (ctx .channel .category_id , server_data ):
39
39
return
40
40
41
41
# Get the log channel
@@ -84,9 +84,9 @@ async def on_message_edit(self, before, after):
84
84
return
85
85
86
86
# Check if the channel, user, and category are allowed, and the content is changed
87
- if not self . is_channel_allowed (before .channel .id , server_data ) or \
88
- not self . is_user_allowed (before .author .id , server_data ) or \
89
- not self . is_category_allowed (before .channel .category_id , server_data ) or \
87
+ if not is_channel_allowed (before .channel .id , server_data ) or \
88
+ not is_user_allowed (before .author .id , server_data ) or \
89
+ not is_category_allowed (before .channel .category_id , server_data ) or \
90
90
before .content == after .content :
91
91
return
92
92
0 commit comments