zaida04 / guilded.js

A library for creating bots with the guilded.gg bot API.
https://guilded.js.org
MIT License
69 stars 15 forks source link

Comments structure (announcements, calendar event, docs, forum) #242

Open zaida04 opened 1 year ago

zaida04 commented 1 year ago

Create a base comment structure, and make sub classes that inherit from it for the different structures that can have comments (announcements, calendar event, docs, forum). Can be split up into multiple PRs, doesn't have to be all in one lump-sum, but the base comment model should be done before working on any sub structures. The goal of the base comment model is that sub classes can be created with as little redundancy as possible.

class Comment extends Base {
  // props that are shared by all comments
}
class AnnouncementComment extends Comment {
    // props specific to this comment
}