guildedts / guilded.ts Goto Github PK
View Code? Open in Web Editor NEWThis library has been moved to Deno at https://github.com/guildedts/guilded.ts
Home Page: https://guildedts.js.org
License: Apache License 2.0
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
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:
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
client event listener
Please fill out the versions this bug is happening in:
Additional context
This issue may be replicated across other events but I have yet to test them
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are pending. To force PRs open, click the checkbox below.
@commitlint/cli
, @commitlint/config-angular
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@types/react
, @types/react-dom
).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
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
guilded.ts
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.
Include this in v0.21.0.
Push back the v0.21.0 update to be v0.22.0 and add this feature early.
guilded.ts
Use toString
to make make a few shortcuts when working with strings. Here are what toString
can be used for:
User
and ServerMember
(e.g. ${user}
-><@userId>
)${server}
-> server name
)Use toJSON
to return the raw JSON provided by the Guilded API.
Include in v0.21.0.
No response
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)
guilded.ts
Improve how properties are set.
null
instead of undefined
in optional fieldsmessage.isPrivate
is undefined
it is assumed to be false
)Include this in Guilded.TS v0.21.0.
No response
guilded.ts
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 });
Remove support for unneeded resolving.
No response
guilded.ts
Add a autoFetch
client option which allows a user to specify what properties the library should fetch automatically.
const client = new Client({ autoFetch: ['author'] });
This will mean that every created structure with an author
property will be fetched automatically.
if (client.options.autoFetch?.includes('property'))
// do fetching
No response
guilded.ts
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.
Make structure constructors private and add a static create
method which uses the constructor.
No response
guilded-api-typings
Rewrite the guilded-api-typings
package to be more like discord-api-types
.
include this in Guilded.TS v0.21.0.
No response
guilded.ts
Add support for forum topic comments.
Include this in the v0.21.0 update.
Push back v0.21.0 to be v0.22.0 and add this feature as soon as possible.
@guildedts/builders
Change Embed
to EmbedBuilder
in @guildedts/builders
.
Include this in v0.21.0
No response
guilded.ts
Add set member xp methods
guilded-api-typings
@guildedts/rest
guilded.ts
No response
guilded.ts
A static cache
property on managers that can be used by any instance of that manager.
Make cache
properties static.
Add a getter for cache
that returns the static cache property, for backwards compatibility reasons.
guilded.ts
Export all used core packages in guilded.ts
.
Export export every core package of guilded.ts in the main package. Some core packages include guilded-api-typings
, @guildedts/rest
and many more...
No response
guilded.ts
Update all tsdocs across the project to match the new style used in guilded-api-typings.
Update tsdocs.
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.