Documentation
¶
Index ¶
Constants ¶
View Source
const ( OperationNameSyncUser = "SYNC_USER" OperationNameSendMessage = "SEND_MESSAGE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type MessageSend ¶
type MessageSend = discordgo.MessageSend
type OperationName ¶
type OperationName string
type Request ¶
type Request[T RequestPayload] struct { Operation string `json:"op"` Data T `json:"data"` }
func ConvertRequest ¶
func ConvertRequest[T RequestPayload](req Request[json.RawMessage]) Request[T]
type RequestPayload ¶
type RequestPayload interface { json.RawMessage | RequestPayloadSyncUser | RequestPayloadSendMessage }
type RequestPayloadSendMessage ¶
type RequestPayloadSendMessage struct { Channel string `json:"channel"` Message MessageSend `json:"message"` Webhook bool `json:"webhook"` }
type RequestPayloadSyncUser ¶
Click to show internal directories.
Click to hide internal directories.