lunarflu HF staff commited on
Commit
0f50857
1 Parent(s): 3b94d3a

Removing native discord embed link for linking to messages; leaving other embeds

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -63,7 +63,10 @@ async def on_message(message):
63
  user = bot.get_user(811235357663297546) #811235357663297546
64
  number_of_messages = number_of_messages + 1
65
  message_link = f"[#{message.channel.name}]({message.jump_url})"
66
- await user.send(f"{number_of_messages}|{message_link}|{message.author}: {message.content}")
 
 
 
67
 
68
  # Allow other event handlers to process the message
69
  await bot.process_commands(message)
 
63
  user = bot.get_user(811235357663297546) #811235357663297546
64
  number_of_messages = number_of_messages + 1
65
  message_link = f"[#{message.channel.name}]({message.jump_url})"
66
+ dm_message = await user.send(f"{number_of_messages}|{message_link}|{message.author}: {message.content}")
67
+
68
+ if dm_message.embeds:
69
+ await dm_message.embeds[0].delete()
70
 
71
  # Allow other event handlers to process the message
72
  await bot.process_commands(message)