decent icon indicating copy to clipboard operation
decent copied to clipboard

Add more characters to valid name spec

Open bates64 opened this issue 7 years ago • 6 comments
trafficstars

Names may consist only of alphanumeric characters, underscores (_), and dashes (-).

  • Could we consider adding some more characters to this? For example, a dot/full-stop/period (.)? I can imagine some users wanting the username foo.bar and friends.

  • We could also allow the server itself to deliver its own opinions on min length, etc. Well, technically it can reject anything, but some server config options would be nice

    • Would be really cool to see a server config option to allow non-unique channel names. This'd be greatly useful for creating Decent-backed games, for example a per-user unique #inventory channel.

@towerofnix: opinions pls

bates64 avatar Jan 15 '18 23:01 bates64

Yeah, these would be cool. Min/max length is pretty easy to implement as a server setting (a little more effort to make it settable through the client).

towerofnix avatar Jan 15 '18 23:01 towerofnix

Would be really cool to see a server config option to allow non-unique channel names. This'd be greatly useful for creating Decent-backed games, for example a per-user unique #inventory channel.

OHH YES,

towerofnix avatar Jan 15 '18 23:01 towerofnix

Could you elaborate on the non-unique channel names thing? I'm confused. :stuck_out_tongue:

PullJosh avatar Jan 16 '18 00:01 PullJosh

Basically, let multiple channels have the same name. (Internally, these channels would still have different IDs, of course.) This is handy for anybody who wants to create a bot user which runs a game. I guess you never saw dientendre/_v, two Discord-based games we were working on a while ago? (Also, if we ever do channel groups or whatever, handy then too.)

towerofnix avatar Jan 16 '18 00:01 towerofnix

Would be nice if emotes supported any character except : - I'll do that now. At the moment, you can't call an emote :+1:!

bates64 avatar Mar 01 '18 09:03 bates64

Would be really cool to see a server config option to allow non-unique channel names. This'd be greatly useful for creating Decent-backed games, for example a per-user unique #inventory channel.

Iteration of this: a { requireUnique: true } default on POST /api/channels. Only admins can create channels, so we don't really need to worry about the security of this.

How would we handle nonunique channel names in references?

bates64 avatar Mar 01 '18 09:03 bates64