Skip to content

[Highlight]: Changed guild highlights & black formatting#242

Closed
Evanroby wants to merge 2 commits intoflaree:masterfrom
Evanroby:highlight
Closed

[Highlight]: Changed guild highlights & black formatting#242
Evanroby wants to merge 2 commits intoflaree:masterfrom
Evanroby:highlight

Conversation

@Evanroby
Copy link
Contributor

@Evanroby Evanroby commented Jul 3, 2025

I made that guild highlights are only working if the user that added an highlight can see the channel. I heard it is against TOS to let the highlight in channels we cannot see.
Also black reformatted everything, and changed the docstring a little to make it more clear (nvm, pre-commit reverted).
On line 44, I made the min_len 4 instead of 5, I think it is better that way.

I have tested the changes, it works like expected.

Thanks for looking! Real code changes starts from line 777, everything else is automatic reformat.

Evanroby and others added 2 commits July 3, 2025 19:46
I made that guild highlights are only working if the user that added an
highlight can see the channel. I heard it is against TOS to let the
highlight in channels we cannot see.
@flaree
Copy link
Owner

flaree commented Jul 4, 2025

Im struggling to actually understand this PR, what does it actually do?

Guild highlights already check permissions, line 202. If a user cannot see a channel they wont get a dm

@Evanroby
Copy link
Contributor Author

Evanroby commented Jul 4, 2025

some peoples asked me for this, they told me they already got one dm
I didn't test, I just made a more robust detection (for me).

@flaree flaree closed this Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants