Skip to content

Commit

Permalink
fix(inbox): fix render max length data of embeded msg discord (#1629)
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenHuy1812 authored Mar 26, 2024
1 parent b2af52c commit c5116da
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/commands/inbox/index/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Context = {
page: number
}

const PAGE_SIZE = 10
const PAGE_SIZE = 8

export async function render(userDiscordId: string, ctx: Context) {
const dataProfile = await profile.getByDiscord(userDiscordId)
Expand Down Expand Up @@ -115,10 +115,7 @@ export async function render(userDiscordId: string, ctx: Context) {
.setCustomId("inbox_view-activity")
.addOptions(
list.map((a, i: number) => ({
emoji:
i === 9
? getEmoji("CHAT" as EmojiKey)
: getEmoji(`NUM_${i + 1}` as EmojiKey),
emoji: getEmoji(`NUM_${i + 1}` as EmojiKey),
label: `🟩 ${a.content}`,
value: `value-${i}-${a.content}`,
})),
Expand Down

0 comments on commit c5116da

Please sign in to comment.