Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

feat: replace structure constructors with static create method #98

@DanieliusDev

Description

@DanieliusDev

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions