-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Server Templates part 2 #2144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server Templates part 2 #2144
Conversation
|
Regarding the To be fair, this is an issue with most objects marked as partial, and probably warrants a general once-over, but I think it's worth considering in this PR as well. |
Co-authored-by: Jerry Jiang <jerry@tpcstld.me>
|
Nihlus details a good concern, and unfortunately I have no good solution here. In general for this set of APIs, the A half-and-half approach I was thinking about is adding a new data model that kind of explains "A serialized source guild is a I agree with Nihlus, as Discord's features and endpoints become more and more complex, I definitely believe that we need to refactor the docs to make these inheritance chains more clear and understandable. However right now I'm going to kick this ball a bit further down the road, because I'd like some more data points on this issue (i.e. I want to see the next problem), and because I don't feel comfortable personally reviewing such foundational changes right now. |
|
The format of serialized_source_guild is exactly the same as what the create guild endpoint accepts: https://discord.com/developers/docs/resources/guild#create-guild It's a template, it's purpose is ... creating guilds, so the data format is just exactly what we need in order to re-create that guild. So the same rules/restrictions/conventions that the create-guild endpoint has apply here too (for example the first role is always for @-everyone, etc) icon/icon_hash are the one exception, but those are ignored for guild templates, we never copy over the icon anymore |
I have some thoughts on the matter, but it might be better to move that conversation to a new issue since it's probably going to be a rather complex and/or extensive discussion about what to do. In short, though, I'd be mostly happy with one of two things happening.
Would you like me to open an issue and elaborate a bit more? That makes sense, but also weighs in favor of breaking this out into a new type (Guild Template or Template Guild, perhaps?), since it's not exactly meant to describe an existing guild, which the base guild type ostensibly is. |
I think this is a good idea. I expect this concern to come up again and it definitely looks like a much bigger scope than this PR. But to set some expectations I'm going to avoid personally making any decisions around this area. I'm honestly not too familiar with the API, and so I'm definitely going to defer to the longstanding API doc maintainers (i.e. night and mason). But they are very busy right now so nothing will probably happen soon :P |
Document server template routes that bots could not access before (#1712 (comment))