We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielsimonjr/substack-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
comment.ts•841 B
import type { SubstackComment } from '../internal'
import type { HttpClient } from '../internal/http-client'
/**
* Comment entity representing a comment on a post or note
*/
export class Comment {
public readonly id: number
public readonly body: string
public readonly author: {
id: number
name: string
isAdmin?: boolean
}
public readonly createdAt: Date
public readonly likesCount?: number
constructor(
private readonly rawData: SubstackComment,
private readonly client: HttpClient
) {
this.id = rawData.id
this.body = rawData.body
this.author = {
id: rawData.author_id,
name: rawData.author_name,
isAdmin: rawData.author_is_admin
}
this.createdAt = new Date(rawData.created_at)
this.likesCount = undefined // TODO: Extract from rawData when available
}
}