diff options
| author | 2021-06-07 16:50:21 -0400 | |
|---|---|---|
| committer | 2021-06-07 16:50:21 -0400 | |
| commit | 8dac3ec26caa819f83316169ac6911119e376356 (patch) | |
| tree | 98bc8c0a38202e356da86db2bf87fb24f04f1b0c | |
| parent | Merge pull request #1 from JakeM0001/griff/helpdm (diff) | |
Add helpdm participating embed
| -rw-r--r-- | bot/exts/help_channels/_cog.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py index 919115e95..32e082949 100644 --- a/bot/exts/help_channels/_cog.py +++ b/bot/exts/help_channels/_cog.py @@ -574,7 +574,18 @@ class HelpChannels(commands.Cog): 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) |