Guard interaction.guild access in has_player_role
#24
Labels
No Label
ai-changes-requested
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
in-next-release
status/in-progress
status/pr-open
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-v2#24
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
commands/injuries/management.py:57—interaction.guild.rolesis accessed without None guard. The outer@league_only()decorator does verify guild is not None, buthas_player_roleis a helper that could be called from other contexts without that guard.File Locations
commands/injuries/management.py:57Labels
bug
Priority
low
Addressed in commit
f4be20aonnext-releasebranch. Will be closed when merged to main.Addressed in commit
f4be20aonnext-releasebranch. Will be closed when merged to main.