Skip to content

Declare type for iota consts #514

Declare type for iota consts

Declare type for iota consts #514

Triggered via push March 19, 2024 12:28
Status Failure
Total duration 33s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

30 errors and 3 warnings
golangci: handler/middleware/defer.go#L5
could not import github.com/disgoorg/disgo/handler (-: # github.com/disgoorg/disgo/handler
golangci: handler/mux.go#L208
cannot use discord.ApplicationCommandTypeSlash (constant 1 of type discord.ApplicationCommandType) as int value in array or slice literal
golangci: handler/mux.go#L219
cannot use discord.ApplicationCommandTypeUser (constant 2 of type discord.ApplicationCommandType) as int value in array or slice literal
golangci: handler/mux.go#L230
cannot use discord.ApplicationCommandTypeMessage (constant 3 of type discord.ApplicationCommandType) as int value in array or slice literal
golangci: handler/mux.go#L261
cannot use discord.ComponentTypeButton (constant 2 of type discord.ComponentType) as int value in array or slice literal
golangci: handler/mux.go#L273
cannot use discord.ComponentTypeStringSelectMenu (constant 3 of type discord.ComponentType) as int value in array or slice literal
golangci: handler/mux.go#L274
cannot use discord.ComponentTypeUserSelectMenu (constant 5 of type discord.ComponentType) as int value in array or slice literal
golangci: handler/mux.go#L275
cannot use discord.ComponentTypeRoleSelectMenu (constant 6 of type discord.ComponentType) as int value in array or slice literal
golangci: handler/mux.go#L276
cannot use discord.ComponentTypeMentionableSelectMenu (constant 7 of type discord.ComponentType) as int value in array or slice literal
golangci: handler/mux.go#L277
cannot use discord.ComponentTypeChannelSelectMenu (constant 8 of type discord.ComponentType) as int value in array or slice literal) (typecheck)
gobuild: handler/mux.go#L208
cannot use discord.ApplicationCommandTypeSlash (constant 1 of type discord.ApplicationCommandType) as int value in array or slice literal
gobuild: handler/mux.go#L219
cannot use discord.ApplicationCommandTypeUser (constant 2 of type discord.ApplicationCommandType) as int value in array or slice literal
gobuild: handler/mux.go#L230
cannot use discord.ApplicationCommandTypeMessage (constant 3 of type discord.ApplicationCommandType) as int value in array or slice literal
gobuild: handler/mux.go#L261
cannot use discord.ComponentTypeButton (constant 2 of type discord.ComponentType) as int value in array or slice literal
gobuild: handler/mux.go#L273
cannot use discord.ComponentTypeStringSelectMenu (constant 3 of type discord.ComponentType) as int value in array or slice literal
gobuild: handler/mux.go#L274
cannot use discord.ComponentTypeUserSelectMenu (constant 5 of type discord.ComponentType) as int value in array or slice literal
gobuild: handler/mux.go#L275
cannot use discord.ComponentTypeRoleSelectMenu (constant 6 of type discord.ComponentType) as int value in array or slice literal
gobuild: handler/mux.go#L276
cannot use discord.ComponentTypeMentionableSelectMenu (constant 7 of type discord.ComponentType) as int value in array or slice literal
gobuild: handler/mux.go#L277
cannot use discord.ComponentTypeChannelSelectMenu (constant 8 of type discord.ComponentType) as int value in array or slice literal
gobuild
Process completed with exit code 1.
gotest: handler/mux.go#L208
cannot use discord.ApplicationCommandTypeSlash (constant 1 of type discord.ApplicationCommandType) as int value in array or slice literal
gotest: handler/mux.go#L219
cannot use discord.ApplicationCommandTypeUser (constant 2 of type discord.ApplicationCommandType) as int value in array or slice literal
gotest: handler/mux.go#L230
cannot use discord.ApplicationCommandTypeMessage (constant 3 of type discord.ApplicationCommandType) as int value in array or slice literal
gotest: handler/mux.go#L261
cannot use discord.ComponentTypeButton (constant 2 of type discord.ComponentType) as int value in array or slice literal
gotest: handler/mux.go#L273
cannot use discord.ComponentTypeStringSelectMenu (constant 3 of type discord.ComponentType) as int value in array or slice literal
gotest: handler/mux.go#L274
cannot use discord.ComponentTypeUserSelectMenu (constant 5 of type discord.ComponentType) as int value in array or slice literal
gotest: handler/mux.go#L275
cannot use discord.ComponentTypeRoleSelectMenu (constant 6 of type discord.ComponentType) as int value in array or slice literal
gotest: handler/mux.go#L276
cannot use discord.ComponentTypeMentionableSelectMenu (constant 7 of type discord.ComponentType) as int value in array or slice literal
gotest: handler/mux.go#L277
cannot use discord.ComponentTypeChannelSelectMenu (constant 8 of type discord.ComponentType) as int value in array or slice literal
gotest
Process completed with exit code 1.
golangci
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
gobuild
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
gotest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.