Skip to content
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

Merged
merged 6 commits into from Feb 25, 2022

Conversation

pixelrazor
Copy link
Contributor

@pixelrazor pixelrazor commented Feb 24, 2022

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.

structs.go Show resolved Hide resolved
structs.go Outdated Show resolved Hide resolved
message.go Outdated
Comment on lines 437 to 438
// This is used instead of Application to reduce the amount of memory consumption
// of message objects
Copy link
Collaborator

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
Comment on lines 152 to 154
// TODO: Remove this when compatibility is not required
// Deprecated
RedirectURIs *[]string `json:"-"`
Copy link
Collaborator

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
Comment on lines 252 to 261
// 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
)
Copy link
Collaborator

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.

@FedorLap2006
Copy link
Collaborator

Thanks for the contribution!

@FedorLap2006 FedorLap2006 merged commit 70e8296 into bwmarrin:master Feb 25, 2022
@pixelrazor pixelrazor deleted the feature/invite-events branch February 25, 2022 21:20
@FedorLap2006 FedorLap2006 added the breaking changes Contains breaking changes. Should be reflected in the changelog label Feb 26, 2022
@FedorLap2006 FedorLap2006 added this to the v0.24.0 milestone Feb 27, 2022
@FedorLap2006 FedorLap2006 added the feature Feature implementation label Mar 2, 2022
@FedorLap2006 FedorLap2006 modified the milestones: v0.24.0, v0.25.0 Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking changes Contains breaking changes. Should be reflected in the changelog feature Feature implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing gateway events for invite create/delete
2 participants