mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-29 08:26:17 +00:00
Bump github.com/SevereCloud/vksdk/v2 from 2.11.0 to 2.13.0 (#1698)
Bumps [github.com/SevereCloud/vksdk/v2](https://github.com/SevereCloud/vksdk) from 2.11.0 to 2.13.0. - [Release notes](https://github.com/SevereCloud/vksdk/releases) - [Commits](https://github.com/SevereCloud/vksdk/compare/v2.11.0...v2.13.0) --- updated-dependencies: - dependency-name: github.com/SevereCloud/vksdk/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
34
vendor/github.com/SevereCloud/vksdk/v2/api/errors.go
generated
vendored
34
vendor/github.com/SevereCloud/vksdk/v2/api/errors.go
generated
vendored
@ -598,6 +598,12 @@ const (
|
||||
// This user can't be added to the work chat, as they aren't an employe.
|
||||
ErrMessagesAccessWorkChat ErrorType = 967
|
||||
|
||||
// Message cannot be forwarded.
|
||||
ErrMessagesCantForwarded ErrorType = 969
|
||||
|
||||
// Cannot pin an expiring message.
|
||||
ErrMessagesPinExpiringMessage ErrorType = 970
|
||||
|
||||
// Invalid phone number.
|
||||
ErrParamPhone ErrorType = 1000
|
||||
|
||||
@ -994,3 +1000,31 @@ func (e AdsError) Is(target error) bool {
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// AuthSilentTokenError struct.
|
||||
type AuthSilentTokenError struct {
|
||||
Token string `json:"token"`
|
||||
Code ErrorType `json:"code"`
|
||||
Description string `json:"description"`
|
||||
}
|
||||
|
||||
// Error returns the description of a AuthSilentTokenError.
|
||||
func (e AuthSilentTokenError) Error() string {
|
||||
return "api: " + e.Description
|
||||
}
|
||||
|
||||
// Is unwraps its first argument sequentially looking for an error that matches
|
||||
// the second.
|
||||
func (e AuthSilentTokenError) Is(target error) bool {
|
||||
var tError *AuthSilentTokenError
|
||||
if errors.As(target, &tError) {
|
||||
return e.Code == tError.Code && e.Description == tError.Description
|
||||
}
|
||||
|
||||
var tErrorType ErrorType
|
||||
if errors.As(target, &tErrorType) {
|
||||
return e.Code == tErrorType
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user