Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a method for fetching presences #1429

Closed
planet-bluto opened this issue Jan 12, 2025 · 1 comment
Closed

Make a method for fetching presences #1429

planet-bluto opened this issue Jan 12, 2025 · 1 comment
Assignees
Labels
Feature Request a new feature

Comments

@planet-bluto
Copy link

Which package is the feature request for?

The core library

Feature

I wanted to fetch presences for a project but the wrapper offered no method to do that. Currently, I have to use the client.rest/RESTManager private to make a reqeust to the presences endpoint.

Ideal solution or implementation

I think the best way to do this would be to refactor client.presences to include all presences (not just the client's- but probably have some sort of identifier for if the presence is the clients or not on the presence class) and add a fetch method that just fetches from the /presences endpoint.

Alternative solutions or implementations

No response

Other context

No response

@planet-bluto planet-bluto added the Feature Request a new feature label Jan 12, 2025
@aiko-chan-ai aiko-chan-ai self-assigned this Jan 13, 2025
aiko-chan-ai added a commit that referenced this issue Jan 21, 2025
@aiko-chan-ai
Copy link
Owner

// Test code
console.log(client.presences.cache);
await client.presences.fetch();
console.log(client.presences.cache);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request a new feature
Projects
None yet
Development

No branches or pull requests

2 participants