Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
[huggingmod][admin] content = "<@&1108342563628404747>" # @alerts role
Browse files
app.py
CHANGED
@@ -157,10 +157,9 @@ async def on_guild_role_update(before, after):
|
|
157 |
|
158 |
if before.permissions.administrator != after.permissions.administrator:
|
159 |
# changes involving the administrator permission / sensitive permissions (can help to prevent mistakes)
|
160 |
-
|
161 |
-
certain_role = after.guild.get_role(certain_role_id)
|
162 |
embed = Embed(description=f'Role {after.mention} had its administrator permission {"enabled" if after.permissions.administrator else "disabled"}', color=Color.red())
|
163 |
-
await bot.log_channel.send(content=
|
164 |
|
165 |
@bot.event
|
166 |
async def on_voice_state_update(member, before, after):
|
|
|
157 |
|
158 |
if before.permissions.administrator != after.permissions.administrator:
|
159 |
# changes involving the administrator permission / sensitive permissions (can help to prevent mistakes)
|
160 |
+
content = "<@&1108342563628404747>" # @alerts role
|
|
|
161 |
embed = Embed(description=f'Role {after.mention} had its administrator permission {"enabled" if after.permissions.administrator else "disabled"}', color=Color.red())
|
162 |
+
await bot.log_channel.send(content=content, embed=embed)
|
163 |
|
164 |
@bot.event
|
165 |
async def on_voice_state_update(member, before, after):
|