decent
decent copied to clipboard
Add more characters to valid name spec
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 usernamefoo.barand 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
#inventorychannel.
- 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
@towerofnix: opinions pls
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).
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,
Could you elaborate on the non-unique channel names thing? I'm confused. :stuck_out_tongue:
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.)
Would be nice if emotes supported any character except : - I'll do that now. At the moment, you can't call an emote :+1:!
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?