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.

refactor: remove unnecessary resolving #104

@DanieliusDev

Description

@DanieliusDev

Package

guilded.ts

Description

Remove useless resolving. Resolving is not needed in most functions/methods.

// This is not needed
messages.edit(message, ...);
// You can instead use one of the following
message.edit(...);
messages.edit(message.id, ...);

// These are not needed
channel.send('content');
channel.send([embed]);
// Instead, you can use these
channel.send({ content: 'content', ...options });
channel.send({ embeds: [embed], ...options });

Solution

Remove support for unneeded resolving.

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