Documentation
¶
Index ¶
- Constants
- func GetMessageHash(url string) string
- type Attachment
- type AttachmentsAndUploadRequest
- type AttachmentsAndUploadResponse
- type AttachmentsRequest
- type AttachmentsResponse
- type Client
- func (c *Client) Attachments(ctx context.Context, attachmentsReq *AttachmentsRequest) (*AttachmentsResponse, error)
- func (c *Client) AttachmentsAndUpload(ctx context.Context, attachmentsAndUploadReq *AttachmentsAndUploadRequest) (*AttachmentsAndUploadResponse, error)
- func (c *Client) Describe(ctx context.Context, describeReq *DescribeRequest) error
- func (c *Client) Imagine(ctx context.Context, imgReq *ImagineRequest) error
- func (c *Client) Upscale(ctx context.Context, upscaleReq *UpscaleRequest) error
- func (c *Client) Variation(ctx context.Context, variationReq *VariationRequest) error
- type Config
- type DescribeRequest
- type File
- type ImagineRequest
- type InteractionsRequest
- type UpscaleRequest
- type VariationRequest
Constants ¶
View Source
const (
ApplicationID string = "936929561302675456"
)
Variables ¶
This section is empty.
Functions ¶
func GetMessageHash ¶
Types ¶
type Attachment ¶
type AttachmentsAndUploadRequest ¶
type AttachmentsAndUploadRequest struct { *AttachmentsRequest Image []byte }
type AttachmentsRequest ¶
type AttachmentsResponse ¶
type AttachmentsResponse struct {
Attachments []Attachment
}
type Client ¶
func (*Client) Attachments ¶
func (c *Client) Attachments(ctx context.Context, attachmentsReq *AttachmentsRequest) (*AttachmentsResponse, error)
func (*Client) AttachmentsAndUpload ¶
func (c *Client) AttachmentsAndUpload(ctx context.Context, attachmentsAndUploadReq *AttachmentsAndUploadRequest) (*AttachmentsAndUploadResponse, error)
func (*Client) Describe ¶
func (c *Client) Describe(ctx context.Context, describeReq *DescribeRequest) error
func (*Client) Imagine ¶
func (c *Client) Imagine(ctx context.Context, imgReq *ImagineRequest) error
type DescribeRequest ¶
type ImagineRequest ¶
type InteractionsRequest ¶
type InteractionsRequest struct { Type int `json:"type"` ApplicationID string `json:"application_id"` MessageFlags *int `json:"message_flags,omitempty"` MessageID *string `json:"message_id,omitempty"` GuildID string `json:"guild_id"` ChannelID string `json:"channel_id"` SessionID string `json:"session_id"` Data map[string]any `json:"data"` }
type UpscaleRequest ¶
Click to show internal directories.
Click to hide internal directories.