Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
fix: embedsが10件を超えないよう制限する
Browse files Browse the repository at this point in the history
  • Loading branch information
nandenjin committed Nov 15, 2022
1 parent e701c8d commit 46201f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/message.mts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,12 @@ export class MessageClient {
...urlEmbeds,
]

// If embeds length is over 10, truncate it
if (embeds.length > 10) {
// ToDo: Show some warnings?
embeds.length = 10
}

// Deploy message
let messageManager: MessageManager | undefined = undefined
if (message.isReplyed && message.threadId) {
Expand Down

0 comments on commit 46201f0

Please sign in to comment.