httpsms-gateway / api /pkg /discord /application.go
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca
Raw History Blame
2.08 kB
package discord
// CommandCreateRequest is the request for creating a new command
type CommandCreateRequest struct {
Name string `json:"name"`
Type int `json:"type"`
Description string `json:"description"`
Options []CommandCreateRequestOption `json:"options"`
}
// CommandCreateRequestOption are options for creating a command
type CommandCreateRequestOption struct {
Name string `json:"name"`
Description string `json:"description"`
Type int `json:"type"`
Required bool `json:"required"`
}
// CommandCreateResponse is the response after creating a command
type CommandCreateResponse struct {
ID string `json:"id"`
ApplicationID string `json:"application_id"`
Version string `json:"version"`
DefaultMemberPermissions any `json:"default_member_permissions"`
Type int `json:"type"`
Name string `json:"name"`
NameLocalizations any `json:"name_localizations"`
Description string `json:"description"`
DescriptionLocalizations any `json:"description_localizations"`
GuildID string `json:"guild_id"`
Options []CommandCreateResponseOption `json:"options"`
Nsfw bool `json:"nsfw"`
}
// CommandCreateResponseOption are options after creating a command
type CommandCreateResponseOption struct {
Type int `json:"type"`
Name string `json:"name"`
NameLocalizations any `json:"name_localizations"`
Description string `json:"description"`
DescriptionLocalizations any `json:"description_localizations"`
Required bool `json:"required"`
}