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 image field to GuildScheduledEvent model #7860

Closed
limone-eth opened this issue Apr 28, 2022 · 4 comments
Closed

Add image field to GuildScheduledEvent model #7860

limone-eth opened this issue Apr 28, 2022 · 4 comments

Comments

@limone-eth
Copy link

Which package is the feature request for?

discord.js

Feature

Hey there, I'm developing a Discord bot which listens to GuildScheduledEvent events of creation, update and deletion. However, it seems that discord.js does not include the image field in the event received, even if the Discord interface allows me to upload a cover image for my event.

Actually, I noticed that the official Discord REST API supports that field in the GuildScheduledEvent docs.

I'm wondering if that "image" field could be added, or if there's another way to obtain the cover image that one uploads.

Thank you!

Ideal solution or implementation

Add the "image" field to the events fired when a GuildScheduledEvent is created or updated.

Alternative solutions or implementations

No response

Other context

GuildScheduledEvent model on Discord official docs

@almeidx
Copy link
Member

almeidx commented Apr 28, 2022

Done in #7337 (main branch) and #7613 (v13)

@limone-eth
Copy link
Author

limone-eth commented Apr 28, 2022

So it's already there? I'm using the latest version (13.6.0) but I can't see that field in the type definitions.

@almeidx
Copy link
Member

almeidx commented Apr 28, 2022

No, you need to wait for the next stable release (13.7.0). Or use v14-dev

@limone-eth
Copy link
Author

Okay thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants