This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deprecated Update(..) in favour of UpdateBuilder(..) + avoid breaking…
… change with deprecate note
- Loading branch information
1 parent
2209632
commit cc60bb8
Showing
14 changed files
with
828 additions
and
741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package disgord | ||
|
||
// Deprecated: use UpdateBuilder | ||
func (m messageQueryBuilder) Update(flags ...Flag) (builder *updateMessageBuilder) { | ||
return m.UpdateBuilder(flags...) | ||
} | ||
|
||
// Deprecated: use UpdateBuilder | ||
func (g guildMemberQueryBuilder) Update(flags ...Flag) UpdateGuildMemberBuilder { | ||
return g.UpdateBuilder(flags...) | ||
} | ||
|
||
// Deprecated: use UpdateBuilder | ||
func (g guildQueryBuilder) Update(flags ...Flag) UpdateGuildBuilder { return g.UpdateBuilder(flags...) } | ||
|
||
// Deprecated: use UpdateBuilder | ||
func (g guildEmojiQueryBuilder) Update(flags ...Flag) UpdateGuildEmojiBuilder { | ||
return g.UpdateBuilder(flags...) | ||
} | ||
|
||
// Deprecated: use UpdateBuilder | ||
func (c channelQueryBuilder) Update(flags ...Flag) (builder *updateChannelBuilder) { | ||
return c.UpdateBuilder(flags...) | ||
} | ||
|
||
// Deprecated: use UpdateBuilder | ||
func (guildQueryBuilderNop) Update(flags ...Flag) UpdateGuildBuilder { | ||
return nil | ||
} | ||
|
||
// Deprecated: use UpdateBuilder | ||
func (currentUserQueryBuilderNop) Update(_ ...Flag) UpdateCurrentUserBuilder { | ||
return nil | ||
} | ||
|
||
// Deprecated: use UpdateBuilder | ||
func (g guildRoleQueryBuilder) Update(flags ...Flag) UpdateGuildRoleBuilder { | ||
return g.UpdateBuilder(flags...) | ||
} | ||
|
||
// Deprecated: use UpdateBuilder | ||
func (c currentUserQueryBuilder) Update(flags ...Flag) UpdateCurrentUserBuilder { | ||
return c.UpdateBuilder(flags...) | ||
} | ||
|
||
// Deprecated: use UpdateBuilder | ||
func (w webhookQueryBuilder) Update(flags ...Flag) (builder *updateWebhookBuilder) { | ||
return w.UpdateBuilder(flags...) | ||
} | ||
|
||
// Deprecated: use UpdateBuilder | ||
func (w webhookWithTokenQueryBuilder) Update(flags ...Flag) (builder *updateWebhookBuilder) { | ||
return w.UpdateBuilder(flags...) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.