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

Add a method for fetching a preview of a discoverable guild #9890

Open
gingershaped opened this issue Jul 18, 2024 · 1 comment · May be fixed by #9986
Open

Add a method for fetching a preview of a discoverable guild #9890

gingershaped opened this issue Jul 18, 2024 · 1 comment · May be fixed by #9986
Labels
feature request This is a feature request.

Comments

@gingershaped
Copy link

Summary

Discord has an API for fetching a preview of a discoverable guild, which is currently not used by this library.

What is the feature request for?

The core library

The Problem

Discord has an API endpoint for getting a preview of a discoverable guild. There is a type for the response in the library, but no way to actually perform the request at present. This means that bots can't see preview information of discoverable guilds.

The Ideal Solution

I would like a new method on Client called fetch_guild_preview(id: int) which returns a GuildPreview that exposes all the fields of the response.

The Current Solution

The request must be made manually and the response parsed by hand.

Additional Context

No response

@gingershaped gingershaped added the feature request This is a feature request. label Jul 18, 2024
@MCausc78
Copy link
Contributor

You can recreate this PR: #2642

@gingershaped gingershaped linked a pull request Oct 25, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request This is a feature request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants