This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
feat: replace structure constructors with static create
method
#98
Labels
create
method
#98
Package
guilded.ts
Description
Make structure constructors private and add a static
create
method that in most cases will be async. This will allow us to use async code while creating a new structure instance. In this new static method it will fetch all the needed structures such as the channel of a message.Solution
Make structure constructors private and add a static
create
method which uses the constructor.Alternative Solutions
No response
The text was updated successfully, but these errors were encountered: