Skip to content
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

Open
DanieliusDev opened this issue Dec 28, 2022 · 0 comments
Open
Assignees
Labels
Enhancement New feature or request Package: guilded.ts Related to the guilded.ts package

Comments

@DanieliusDev
Copy link
Member

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

@DanieliusDev DanieliusDev added Enhancement New feature or request Package: guilded.ts Related to the guilded.ts package labels Dec 28, 2022
@DanieliusDev DanieliusDev self-assigned this Dec 28, 2022
@DanieliusDev DanieliusDev moved this to Todo in Guilded.TS Dec 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New feature or request Package: guilded.ts Related to the guilded.ts package
Projects
Status: Todo
Development

No branches or pull requests

1 participant