Skip to content

Commit

Permalink
Add helpdm participating embed
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmonck committed Jun 7, 2021
1 parent c808ca0 commit 8dac3ec
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bot/exts/help_channels/_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,18 @@ async def notify_session_participants(self, message: discord.Message) -> None:

if not message.author.id in session_participants:
session_participants.add(message.author.id)
await message.author.send("Purple")

user = self.bot.get_user(message.author.id)

embed = discord.Embed(
title="Currently Helping",
description=f"You're currently helping in <#{message.channel.id}>",
color=discord.Colour.green(),
timestamp=message.created_at
)
embed.add_field(name="Conversation", value=f"[Jump to message]({message.message.jump_url})")
await user.send(embed=embed)

await _caches.session_participants.set(
message.channel.id,
self._serialise_session_participants(session_participants)
Expand Down

0 comments on commit 8dac3ec

Please sign in to comment.