package kook import "errors" // Sentinel errors returned by the KOOK adapter. Consumers test for them with // errors.Is; failures that mean "not connected" wrap adapter.ErrNotConnected so // the shared channel sentinel still matches. var ( // ErrMissingToken is returned when no BotToken is configured. ErrMissingToken = errors.New("kook: missing bot token") // ErrBadResponse is returned when the KOOK API replies with a non-zero code, // an unexpected payload shape, or no usable gateway URL. ErrBadResponse = errors.New("kook: bad api response") // ErrNoChatTarget is returned when an outbound message carries no usable // channel or user identifier. ErrNoChatTarget = errors.New("kook: message has no target") )