Documentation ¶ Index ¶ func FromContent(kind types.Type, data []byte) *discordgo.File type OSStore func NewOSStore(basePath string) (*OSStore, error) func (s *OSStore) Next() (*discordgo.File, error) func (s *OSStore) Store(_ context.Context, kind types.Type, data []byte) error type Store Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func FromContent ¶ func FromContent(kind types.Type, data []byte) *discordgo.File FromContent creates a new discordgo.File attachment using the given MIME type and data Types ¶ type OSStore ¶ type OSStore struct { // contains filtered or unexported fields } func NewOSStore ¶ func NewOSStore(basePath string) (*OSStore, error) func (*OSStore) Next ¶ func (s *OSStore) Next() (*discordgo.File, error) func (*OSStore) Store ¶ func (s *OSStore) Store(_ context.Context, kind types.Type, data []byte) error type Store ¶ type Store interface { // Next advances the Store state and returns the next available image Next() (*discordgo.File, error) // Store stores a new image in the Store Store(ctx context.Context, kind types.Type, data []byte) error } Source Files ¶ View all Source files os.go store.go Click to show internal directories. Click to hide internal directories.