Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hhstore committed Sep 14, 2022
1 parent d19a4c7 commit c3aa560
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/discord-cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,12 @@ async def migrate_channel_to_thread(ctx, from_chan_id: int, to_chan_id: int, to_
color=0xdb1c8b,
type="rich",
title=f"Migrate From: {from_chan.name}",
description=f"{msg.author} at: {msg.created_at.strftime('%Y-%m-%d %H:%M:%S')}",
description=f"{msg.author} 👏 at: {msg.created_at.strftime('%Y-%m-%d %H:%M:%S')}",
)

files = []
for item in msg.attachments:
embed.add_field(name="Attachment", value=item.url, inline=False)
embed.add_field(name="Attachment 💎", value=item.url, inline=False)

# 图片文件
# with os.open(f'{item.id}', mode='wb') as f:
Expand All @@ -337,9 +337,9 @@ async def migrate_channel_to_thread(ctx, from_chan_id: int, to_chan_id: int, to_
color=0xeee657,
type="rich",
title=f"Migrate From: {from_chan.name}",
description=f"{msg.author} at: {msg.created_at.strftime('%Y-%m-%d %H:%M:%S')}",
description=f"{msg.author} 👏 at: {msg.created_at.strftime('%Y-%m-%d %H:%M:%S')}",
)
embed.add_field(name="Content", value=msg.content, inline=False)
embed.add_field(name="Content 📗️", value=msg.content, inline=False)

#
# TODO X: 执行消息迁移动作
Expand Down

0 comments on commit c3aa560

Please sign in to comment.