Spaces:
Paused
Paused
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 Download api/pkg/discord/application.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 2.08 kB
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/discord/application.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway/api/pkg/discord/application.go
-
curl -L -o application.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/discord/application.go
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"` | |
| } | |