lunarflu HF staff commited on
Commit
eb7e36e
1 Parent(s): 864386e

[huggingmod][admin] content = "<@&1108342563628404747>" # @alerts role

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- certain_role_id = 1108342563628404747 # role to ping (@alerts)
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=certain_role.mention, embed=embed)
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):