JDA icon indicating copy to clipboard operation
JDA copied to clipboard

Check for not blank strings instead of not empty

Open freya022 opened this issue 7 months ago • 3 comments

Pull Request Etiquette

Changes

  • [X] Internal code
  • [ ] Library interface (affecting end-user code)
  • [X] Documentation
  • [ ] Other: _____

Closes Issue: NaN

Description

So users can't pass blank IDs/URLs/labels as valid ones.

freya022 avatar Apr 11 '25 12:04 freya022

Passing blank strings for button labels seems to be allowed. I tried passing ZERO_WIDTH_SPACE as button label and it works perfectly fine

MineKing9534 avatar Apr 28 '25 12:04 MineKing9534

Whats the point of having a ZWSP as the label

freya022 avatar Apr 28 '25 12:04 freya022

Whats the point of having a ZWSP as the label

I don't know a specific use case but it is possible so I don't see a reason to prevent it

MineKing9534 avatar Apr 28 '25 13:04 MineKing9534