The owner_only() function was accessing ctx.author.id, which caused an AttributeError when called with Interaction objects from slash commands (which use .user instead of .author). Updated both utils.py and helpers/utils.py to handle both Context and Interaction objects by checking for .user first, then falling back to .author for backward compatibility with traditional commands. Fixes: Command 'reset-image' raised an exception: AttributeError: 'Interaction' object has no attribute 'author' 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| constants.py | ||
| discord_utils.py | ||
| main.py | ||
| random_content.py | ||
| search_utils.py | ||
| utils.py | ||