feat(sdk): support Metadata.hide to hide Gosuda badge when opening macro server
sinwoojin committed
Nov 13, 2025 at 22:48 UTC
d66f12eeb2f66c1ecb996f313d14c7881a493d47
1 file changed
+7
sdk/sdk.go
+7
@@ -175,6 +175,7 @@ type Metadata struct {
175
Thumbnail string `json:"thumbnail"`
176
Owner string `json:"owner"`
177
Country string `json:"country"`
178
+ Hide bool `json:"hide"` // 고수다 숨김 여부
179
}
180
181
func (m Metadata) isEmpty() bool {
@@ -217,6 +218,12 @@ func WithCountry(country string) MetadataOption {
218
}
219
}
220
221
+func WithHide(hide bool) MetadataOption {
222
+ return func(m *Metadata) {
223
+ m.Hide = hide
224
+ }
225
+}
226
+
227
type RDClient struct {
228
mu sync.Mutex
229