andersfylling / disgord

Go module for interacting with the documented Discord's bot interface; Gateway, REST requests and voice
BSD 3-Clause "New" or "Revised" License
502 stars 71 forks source link

chore: enforce naming concistency #432

Open andersfylling opened 2 years ago

andersfylling commented 2 years ago

Recently came across some variables names that used the same convention as some rest params. Given that there are.. probably hundreds of vars/consts and well over a hundred types, I'm adding a new way to enforce naming convention for certain types using go generate.

This is going to cause a breaking change and will take some time to clean up. If the rework is too massive, I might dismiss this PR and figure out a simpler solution.

andersfylling commented 2 years ago

I think this could be a nice idea, but I would like to be able to map which types are REST calls and which are events.