GithubHelp home page GithubHelp logo

guildedts / guilded.ts Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 5.0 8.11 MB

This library has been moved to Deno at https://github.com/guildedts/guilded.ts

Home Page: https://guildedts.js.org

License: Apache License 2.0

TypeScript 98.91% JavaScript 0.53% Shell 0.05% CSS 0.17% SCSS 0.34%
guilded javascript typescipt wrapper

guilded.ts's People

Contributors

6km avatar gamertike avatar github-actions[bot] avatar itsbrunodev avatar jade3375 avatar renovate[bot] avatar tovade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

guilded.ts's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • chore(deps): update dependency @changesets/cli to v2.26.1
  • chore(deps): update dependency @types/node-fetch to v2.6.3
  • chore(deps): update dependency postcss to v8.4.23
  • chore(deps): update dependency prettier to v2.8.8
  • fix(deps): update dependency yaml to v2.2.2
  • chore(deps): update commitlint monorepo to v17.6.1 (@commitlint/cli, @commitlint/config-angular)
  • chore(deps): update dependency @types/node to v18.16.2
  • chore(deps): update dependency eslint to v8.39.0
  • chore(deps): update dependency lint-staged to v13.2.2
  • chore(deps): update dependency turbo to v1.9.3
  • fix(deps): update dependency @discordjs/collection to v1.5.0
  • fix(deps): update dependency joi to v17.9.2
  • fix(deps): update dependency ws to v8.13.0
  • fix(deps): update dependency commander to v10

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v3
  • actions/setup-node v3
  • pnpm/action-setup v2
.github/workflows/release.yml
  • actions/checkout v3
  • actions/setup-node v3
  • pnpm/action-setup v2
  • changesets/action v1
  • actions/checkout v3
  • actions/setup-node v3
  • pnpm/action-setup v2
  • actions/checkout v3
  • actions/setup-node v3
  • pnpm/action-setup v2
npm
apps/guide/package.json
  • @vuepress/client 2.0.0-beta.60
  • @vuepress/plugin-search 2.0.0-beta.60
  • vue ^3.2.47
  • vuepress-vite 2.0.0-beta.60
apps/website/package.json
  • next ^13.2.0
  • react ^18.2.0
  • react-dom ^18.2.0
  • react-icons ^4.7.1
  • @types/react 18.0.28
  • @types/react-dom ^18.0.11
  • autoprefixer ^10.4.13
  • eslint-config-next ^13.2.0
  • postcss ^8.4.21
  • tailwindcss ^3.2.7
  • typescript ^4.9.5
package.json
  • @changesets/cli ^2.26.0
  • @commitlint/cli ^17.4.4
  • @commitlint/config-angular ^17.4.4
  • @favware/npm-deprecate ^1.0.7
  • @types/node ^18.14.1
  • @types/node-fetch ^2.6.2
  • @typescript-eslint/eslint-plugin ^5.53.0
  • @typescript-eslint/parser ^5.53.0
  • eslint ^8.34.0
  • eslint-config-prettier ^8.6.0
  • eslint-plugin-markdown ^3.0.0
  • eslint-plugin-prettier ^4.2.1
  • husky ^8.0.3
  • lint-staged ^13.1.2
  • prettier ^2.8.4
  • ts-node ^10.9.1
  • tsup ^6.6.3
  • turbo ^1.8.2
  • typedoc ^0.23.25
  • typedoc-plugin-missing-exports ^1.0.0
  • typescript ^4.9.5
  • pnpm 7.28.0
packages/builders/package.json
packages/framework/package.json
  • @discordjs/collection ^1.3.0
  • chalk ^4.1.2
  • commander ^10.0.0
  • fast-glob ^3.2.12
  • joi ^17.8.3
  • yaml ^2.2.1
packages/guilded-api-typings/package.json
packages/guilded.ts/package.json
  • @discordjs/collection ^1.3.0
packages/rest/package.json
  • node-fetch ^2.6.9
packages/util/package.json
packages/ws/package.json
  • @types/ws ^8.5.4
  • ws ^8.12.1

  • Check this box to trigger a request for Renovate to run again on this repository

feat: `server.members.me` and `server.members.fetchMe`

Package

guilded.ts

Description

Add a server.members.me getter that gets the client member in that server. Along with this, there would be a server.members.fetchMe method as server.members.me won't always be present.

Solution

Include this in v0.21.0.

Alternative Solutions

Push back the v0.21.0 update to be v0.22.0 and add this feature early.

feat: export core packages

Package

guilded.ts

Description

Export all used core packages in guilded.ts.

Solution

Export export every core package of guilded.ts in the main package. Some core packages include guilded-api-typings, @guildedts/rest and many more...

Alternative Solutions

No response

memberEdit event is returning unUpdated nickname

Describe the bug
when listening to the memberEdit event the client returns cached data instead of the updated data from the WS

To Reproduce
Steps to reproduce the behavior:

  1. listen to memberEdit event
  2. change nickname in server to trigger event
  3. note nickname
  4. change to a different nickname to trigger event again
  5. note nickname

Expected behavior
The nickname should be updated to reflect the 2nd change (or member in its entirety)

Screenshots
output of event vs raw ws data
output of event vs raw ws data
client event listener
Client event listener

Please fill out the versions this bug is happening in:

  • Node.JS: V16.15.0
  • Package manager (NPM): V8.13.2
  • Package (Guilded.TS): V0.10.0

Additional context
This issue may be replicated across other events but I have yet to test them

feat: forum topic comments

Package

guilded.ts

Description

Add support for forum topic comments.

Solution

Include this in the v0.21.0 update.

Alternative Solutions

Push back v0.21.0 to be v0.22.0 and add this feature as soon as possible.

refactor: remove unnecessary resolving

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

feat: set member XP

Package

guilded.ts

Description

Add set member xp methods

Solution

  • Add required typing to guilded-api-typings
  • Add router methods in @guildedts/rest
  • Add methods to guilded.ts

Alternative Solutions

No response

feat: auto fetching

Package

guilded.ts

Description

Add a autoFetch client option which allows a user to specify what properties the library should fetch automatically.

Example

const client = new Client({ autoFetch: ['author'] });

This will mean that every created structure with an author property will be fetched automatically.

Solution

if (client.options.autoFetch?.includes('property'))
    // do fetching

Alternative Solutions

No response

feat: global cache

Package

guilded.ts

Description

A static cache property on managers that can be used by any instance of that manager.

Solution

Make cache properties static.

Alternative Solutions

Add a getter for cache that returns the static cache property, for backwards compatibility reasons.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (config:preserveSemverRanges)

feat: replace structure constructors with static `create` method

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

feat: use `toString` and `toJSON` methods

Package

guilded.ts

Description

Use toString to make make a few shortcuts when working with strings. Here are what toString can be used for:

  • Make mentions for structures such as User and ServerMember (e.g. ${user} -><@userId>)
  • Get the name of a structure (e.g. ${server} -> server name)

Use toJSON to return the raw JSON provided by the Guilded API.

Solution

Include in v0.21.0.

Alternative Solutions

No response

feat: improve properties

Package

guilded.ts

Description

Improve how properties are set.

  • Use null instead of undefined in optional fields
  • Add default values when needed (e.g. if message.isPrivate is undefined it is assumed to be false)

Solution

Include this in Guilded.TS v0.21.0.

Alternative Solutions

No response

refactor: jsdocs/tsdocs

Package

guilded.ts

Description

Update all tsdocs across the project to match the new style used in guilded-api-typings.

Solution

Update tsdocs.

Alternative Solutions

No response

refactor: guilded-api-typings

Package

guilded-api-typings

Description

Rewrite the guilded-api-typings package to be more like discord-api-types.

Solution

include this in Guilded.TS v0.21.0.

Alternative Solutions

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.