Handy-Hangout-Studios / Norm

GNU General Public License v3.0
2 stars 1 forks source link

Should convert this to using an enum #15

Closed ProfDoof closed 3 years ago

ProfDoof commented 3 years ago

Strings are brittle and prone to error. If I refactor this functionality to use an enum and a function that maps an enum to a string then even if I make a mistake it's a consistent mistake that only has to be fixed in one place rather than 10.

https://github.com/Handy-Hangout-Studios/Norm/blob/7b356a7f09fa9e3a2504f769c3ec111cc6d2d024/Norm/Attributes/BotCategoryAttribute.cs#L5-L14