Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle or prevent automatic changes of TEXT channel names #52

Open
vigenere23 opened this issue Jan 21, 2023 · 0 comments
Open

Handle or prevent automatic changes of TEXT channel names #52

vigenere23 opened this issue Jan 21, 2023 · 0 comments
Labels
bug Something isn't working level - easy
Milestone

Comments

@vigenere23
Copy link
Owner

vigenere23 commented Jan 21, 2023

Problem

Discord silently disallow special characters and uppercase letters for TEXT channel's names... This makes those channels always recreate with a falsly advertised name that will be modified by Discord on creation.

Potential solutions

Notify of Discords changes when applying changes

When applying changes (add or update), return the entity created or updated by Discord (e.g. from the API's response) and send an event if there is a diff between that and the wanted params. This would handle any possible changes that Discord makes under the hood, without having to discover and re-implement all the rules.

❌ Prevalidate or filter channel names

Problem : There are too many rules that are not documented and dependent on the channel type

Either

  • throw an error if TEXT channel name does not contain only lowercase letters and numbers.
  • parse the name and remove any non-permitted characters before comparing
@vigenere23 vigenere23 added the bug Something isn't working label Jan 21, 2023
@vigenere23 vigenere23 changed the title Prevalidate TEXT channel names Handle or prevent automatic changes of TEXT channel names Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working level - easy
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant