You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the way the getREST functions work, they cannot support a lot of the normal functions. I think they should be split into multiple classes, at least, as far as typings go. Having different types would avoid random issues where guild members, shards, etc are missing when they usually wouldn't be. Currently, the only way to know these are missing is common sense (which isn't common, and things can get overlooked sometimes), or actually having the errors happen. For instance, running removeRole on a rest guild member will produce something like this:
[Eris code] [my code]
Finding ways to still run these functions, or separating them from shards somehow, or just flat out removing them, if it comes to that, can help with a lot of confusion around why certain things don't work on REST objects.
The text was updated successfully, but these errors were encountered:
DonovanDMC
changed the title
Split normal & Rest classes
Split Rest Classes & Normal Classes
Jan 3, 2021
Due to the way the
getREST
functions work, they cannot support a lot of the normal functions. I think they should be split into multiple classes, at least, as far as typings go. Having different types would avoid random issues where guild members, shards, etc are missing when they usually wouldn't be. Currently, the only way to know these are missing is common sense (which isn't common, and things can get overlooked sometimes), or actually having the errors happen. For instance, running removeRole on a rest guild member will produce something like this:[Eris code] [my code]
Finding ways to still run these functions, or separating them from shards somehow, or just flat out removing them, if it comes to that, can help with a lot of confusion around why certain things don't work on REST objects.
The text was updated successfully, but these errors were encountered: