Discussion {sum( commentThreads.map(t => { return t.replies.length + 1; }), )}
{#each commentThreads as thread} delegate.did), )} {editComment} createReply={createComment} {reactOnComment} />
{/each}
{#key commentFormKey} { focusReply = false; commentFormKey += 1; }} submit={async ({ comment, embeds }) => { try { await createComment(comment, Array.from(embeds.values())); } finally { focusReply = false; commentFormKey += 1; } }} /> {/key}