Skip to content

Check attach_files permission inside send_interactive#6552

Merged
Flame442 merged 4 commits intoCog-Creators:V3/developfrom
Kreusada:send-interactive-file-perm-check
May 25, 2025
Merged

Check attach_files permission inside send_interactive#6552
Flame442 merged 4 commits intoCog-Creators:V3/developfrom
Kreusada:send-interactive-file-perm-check

Conversation

@Kreusada
Copy link
Copy Markdown
Member

@Kreusada Kreusada commented Apr 3, 2025

Description of the changes

Closes #6540. send_interactive will only provide the file option if the bot has the attach_files permission.

Have the changes in this PR been tested?

Yes

@github-actions github-actions bot added the Category: Core - Bot Class This is related to the `redbot.core.bot.Red` class. label Apr 3, 2025
@Kreusada Kreusada added the Type: Enhancement Something meant to enhance existing Red features. label Apr 3, 2025
Kreusada and others added 3 commits May 5, 2025 12:38
Without this change, a breakage would occur in the `[p]eval` command when an output which succeeded the character limit would use this method.
@Flame442 Flame442 self-assigned this May 25, 2025
@Flame442 Flame442 added this to the 3.5.21 milestone May 25, 2025
@Flame442 Flame442 merged commit 6603cd1 into Cog-Creators:V3/develop May 25, 2025
17 checks passed
@red-githubbot red-githubbot bot added the Changelog Entry: Pending Changelog entry for this PR hasn't been added by repo maintainers yet. label May 25, 2025
@Jackenmen Jackenmen added Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. and removed Changelog Entry: Pending Changelog entry for this PR hasn't been added by repo maintainers yet. labels Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Core - Bot Class This is related to the `redbot.core.bot.Red` class. Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. Type: Enhancement Something meant to enhance existing Red features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

send_interactive should check attach_files

3 participants