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

fix: dont require guild cache to fill member roles in message #945

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

braindigitalis
Copy link
Contributor

@braindigitalis braindigitalis commented Oct 14, 2023

In the event all caches are disabled, roles list in the member for a message was empty. This was because it was internally using find_guild and skipping this part of the deserialisation. It does not need to do this. This fix ensures that if all caching is off, and we have the guild members intent, the guild member list in the messages member field will be popupated. I'm relying on this in the yeet bot.

Code change checklist

  • I have ensured that all methods and functions are fully documented using doxygen style comments.
  • My code follows the coding style guide.
  • I tested that my change works before raising the PR.
  • I have ensured that I did not break any existing API calls.
  • I have not built my pull request using AI, a static analysis tool or similar without any human oversight.

@braindigitalis braindigitalis self-assigned this Oct 14, 2023
@netlify
Copy link

netlify bot commented Oct 14, 2023

Deploy Preview for dpp-dev ready!

Name Link
🔨 Latest commit 19c2942
🔍 Latest deploy log https://app.netlify.com/sites/dpp-dev/deploys/652a88a941df230008cab964
😎 Deploy Preview https://deploy-preview-945--dpp-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

src/dpp/message.cpp Show resolved Hide resolved
@github-actions github-actions bot added the code Improvements or additions to code. label Oct 14, 2023
@Jaskowicz1 Jaskowicz1 changed the title dont require guild cache to fill member roles in message fix: dont require guild cache to fill member roles in message Oct 14, 2023
@braindigitalis braindigitalis merged commit 123e380 into dev Oct 14, 2023
62 checks passed
@braindigitalis braindigitalis deleted the no_cache_needed_for_roles branch October 14, 2023 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Improvements or additions to code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants