Skip to content

Update API events, structures, enums#169

Closed
ThePedroo wants to merge 8 commits into
devfrom
update/gencodecs
Closed

Update API events, structures, enums#169
ThePedroo wants to merge 8 commits into
devfrom
update/gencodecs

Conversation

@ThePedroo

@ThePedroo ThePedroo commented Jan 30, 2024

Copy link
Copy Markdown
Collaborator

Notice

  • I understand the code that I have edited, and have the means
    to test it before making changes to Concord.

What?

This PR updates (all) codecs from gencodecs, updating Concord structures and ensuring that Concord users can benefit of the latest functions & fields from Discord.

Why?

This allows to people use newer functions, fields and events, that were not available previously (main/dev/etc branch), blocking people from creating new features that needs them.

How?

By updating gencodecs, include and lib folder, in files where include data of events, functions and fields.

Testing?

This is a draft PR, testing was not made yet.

Anything Else?

Already updated parts will be reviewed again.

Closes #161, #176, #190

@ThePedroo ThePedroo added the missing feature Missing Discord API feature label Jan 30, 2024
@InterLinked1

Copy link
Copy Markdown
Contributor

Tested it and running this branch - works for me, and no observed issues yet.

@ThePedroo ThePedroo linked an issue Sep 8, 2024 that may be closed by this pull request
@lcsmuller

Copy link
Copy Markdown
Collaborator

Is this ready for review?

@ThePedroo

Copy link
Copy Markdown
Collaborator Author

Sadly not even close to, there are a lot of things missing

@lcsmuller

Copy link
Copy Markdown
Collaborator

Is this still being worked on? Please close it otherwise! @ThePedroo

@ThePedroo

Copy link
Copy Markdown
Collaborator Author

Not abandonned, just on hold till I have some more time, which is soon :)

Comment thread gencodecs/Makefile
$(API_DIR)/channel.h \
$(API_DIR)/custom.h \
$(API_DIR)/emoji.h \
$(API_DIR)/entitlements.h \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: use spaces to keep aligned with the rest

Comment thread gencodecs/Makefile
$(API_DIR)/message_components.h \
$(API_DIR)/oauth2.h \
$(API_DIR)/permissions.h \
$(API_DIR)/poll.h \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Comment thread src/Makefile
poll.o \
stage_instance.o \
sticker.o \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

This commit updates gencodecs API events, structures, enums, etc.
This commit adds support for Discord polls, stickers and also updates the gencodecs for numerous other fields, also corrects "discord_get_original_interaction_response" response parsing.
This commit fixes the behavior of expecting a description while creation message application commands.
This commit updates the information for "thread_create" event gencodecs.
This commit adds the new "global_name" in "discord_user" structure which represents the name selected by the holder of the account that will globally identify that account.
…structure

This commit fixes the structure used to pass information to Discod's bulk guild overwrite guild applications (https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands) where before the fix it wouldn't take an array of application command like structure, but rather a single structure.
This commit adds support for "contexts" to application command structures, in structures like creating global commands and receiving information about triggered command.
This commit updates gencodecs structures for "application" and "application commands" to again have all latest fields available.
@ThePedroo

Copy link
Copy Markdown
Collaborator Author

Superseded by #225;

@ThePedroo ThePedroo closed this Feb 5, 2026
@lcsmuller lcsmuller deleted the update/gencodecs branch May 13, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

missing feature Missing Discord API feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enums to pointer to enums messages: Support silent flag discord_bulk_overwrite_guild_application_commands() only takes single command

3 participants