Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bot/cogs/help_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,11 +614,13 @@ async def notify(self) -> None:

channel = self.bot.get_channel(constants.HelpChannels.notify_channel)
mentions = " ".join(f"<@&{role}>" for role in constants.HelpChannels.notify_roles)
allowed_roles = [discord.Object(id_) for id_ in constants.HelpChannels.notify_roles]

message = await channel.send(
f"{mentions} A new available help channel is needed but there "
f"are no more dormant ones. Consider freeing up some in-use channels manually by "
f"using the `{constants.Bot.prefix}dormant` command within the channels."
f"using the `{constants.Bot.prefix}dormant` command within the channels.",
allowed_mentions=discord.AllowedMentions(everyone=False, roles=allowed_roles)
)

self.bot.stats.incr("help.out_of_channel_alerts")
Expand Down
7 changes: 6 additions & 1 deletion bot/cogs/moderation/modlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,12 @@ async def send_log_message(
content = "@everyone"

channel = self.bot.get_channel(channel_id)
log_message = await channel.send(content=content, embed=embed, files=files)
log_message = await channel.send(
content=content,
embed=embed,
files=files,
allowed_mentions=discord.AllowedMentions(everyone=True)
)

if additional_embeds:
if additional_embeds_msg:
Expand Down
7 changes: 6 additions & 1 deletion bot/cogs/sync/syncers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from collections import namedtuple
from functools import partial

import discord
from discord import Guild, HTTPException, Member, Message, Reaction, User
from discord.ext.commands import Context

Expand Down Expand Up @@ -68,7 +69,11 @@ async def _send_prompt(self, message: t.Optional[Message] = None) -> t.Optional[
)
return None

message = await channel.send(f"{self._CORE_DEV_MENTION}{msg_content}")
allowed_roles = [discord.Object(constants.Roles.core_developers)]
message = await channel.send(
f"{self._CORE_DEV_MENTION}{msg_content}",
allowed_mentions=discord.AllowedMentions(everyone=False, roles=allowed_roles)
)
else:
await message.edit(content=msg_content)

Expand Down
2 changes: 1 addition & 1 deletion config-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ filter:
notify_user_domains: false

# Filter configuration
ping_everyone: true # Ping @everyone when we send a mod-alert?
ping_everyone: true
offensive_msg_delete_days: 7 # How many days before deleting an offensive message?

guild_invite_whitelist:
Expand Down