FastComments.com
Here you can edit and run the code snippet from our documentation.
Example Code Snippet "Webhook 徽章对象"
interface CommentUserBadgeInfo { /** 授予该用户的徽章 id。 **/ id: string /** 徽章类型。 **/ type: number /** 徽章描述,悬停在徽章上时显示。 **/ description: string /** 徽章上显示的文本。 **/ displayLabel?: string | null /** 徽章使用的图片(如果使用图片)。 **/ displaySrc?: string | null backgroundColor?: string | null borderColor?: string | null textColor?: string | null /** 应用于徽章的额外 CSS 类。 **/ cssClass?: string | null }
Result