Fast-track getting a channel's parent if it does not exist
Created by: uwx
Summary
Skips the enumeration through Guild.Channels when getting a channel's parent category if it does not have one.
Details
Currently the enumeration will always return null, but this might not always be the case. Also, avoiding the enumeration I guess is faster and reduces the chance of it happening while the collection is being modified. I don't know, I'm really grasping at straws here.
Changes proposed
- Skips the enumeration through Guild.Channels when getting a channel's parent category if it does not have one.
Notes
Untested, but if there is a bug in this single line of code then I might just retire and never code again.