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
Add Invite Create/Delete #1105
Add Invite Create/Delete #1105
Conversation
message.go
Outdated
// This is used instead of Application to reduce the amount of memory consumption | ||
// of message objects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this PR would be right place to add this comment
structs.go
Outdated
// TODO: Remove this when compatibility is not required | ||
// Deprecated | ||
RedirectURIs *[]string `json:"-"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to remove this field, since it doesn't have a purpose anymore.
structs.go
Outdated
// TargetUserType is the type of the target user | ||
// https://discord.com/developers/docs/resources/invite#invite-object-target-user-types | ||
// TODO: Remove this when compatibility is not required | ||
// Deprecated: see InviteTargetType | ||
type TargetUserType int | ||
|
||
// Block contains known TargetUserType values | ||
// Deprecated: see InviteTargetType | ||
const ( | ||
TargetUserTypeStream TargetUserType = 1 | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the type is meant to be renamed I think it would be fair to remove the old one.
Thanks for the contribution! |
Fixes #1104
See this PR and the linked one for the change of target_user_type -> target_type
I moved the Application struct, and i noticed that there were some fields not on the discord documentation, nor in the git history of the docs repo. Does the oauth2/applications/ endpoint still exist? all i can find is this.