Open TheDiscordian opened 1 year ago
Extend the Message interface (https://github.com/TheDiscordian/onebot/blob/master/onelib/onetype.go#L284) with an Images() []Image method. Image should be an interface that has methods for retrieving data, could be anything but for example:
Images() []Image
Image
type Image interface { Data() []byte // can only be empty if URL() isn't empty URL() string // can be empty }
great idea Boris!
Extend the Message interface (https://github.com/TheDiscordian/onebot/blob/master/onelib/onetype.go#L284) with an
Images() []Image
method.Image
should be an interface that has methods for retrieving data, could be anything but for example: