Skip to content

Conversation

@Mygod
Copy link
Collaborator

@Mygod Mygod commented Dec 15, 2025

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the robustness of Discord guild member role fetching by enhancing error handling and API interaction patterns. The changes address issue #1179 by making the code more resilient to common Discord API scenarios.

  • Improved guild fetching to support both cached and non-cached guilds via fallback to fetch()
  • Added specific handling for Discord error code 10007 (Unknown Member) with appropriate debug logging
  • Enhanced JSDoc documentation with complete type information including return types

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kamieniarz
Copy link
Contributor

Fixes #1179? @kamieniarz

That will be hard to confirm. I guess I could confirm after few weeks or so

@Mygod
Copy link
Collaborator Author

Mygod commented Dec 16, 2025

Okay so I'll merge for now. Please report back if things break.

@Mygod Mygod merged commit b579ded into WatWowMap:develop Dec 16, 2025
8 checks passed
@Mygod Mygod deleted the robust-discord branch December 16, 2025 06:59
github-actions bot pushed a commit that referenced this pull request Dec 16, 2025
# [1.41.0-develop.3](v1.41.0-develop.2...v1.41.0-develop.3) (2025-12-16)

### Bug Fixes

* logic bug in loading non-clustered elements ([#1161](#1161)) ([a2c7f17](a2c7f17))
* more robust discord handling ([#1181](#1181)) ([b579ded](b579ded))

### Features

* default clientPrompt to none to skip permission reapproval ([d3ea283](d3ea283))
@github-actions
Copy link

🎉 This PR is included in version 1.41.0-develop.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants