5
5
"strings"
6
6
"time"
7
7
8
+ "github.com/disgoorg/json"
8
9
"github.com/disgoorg/snowflake/v2"
9
10
10
11
"github.com/disgoorg/disgo/internal/flags"
@@ -18,9 +19,11 @@ type Application struct {
18
19
RPCOrigins []string `json:"rpc_origins"`
19
20
BotPublic bool `json:"bot_public"`
20
21
BotRequireCodeGrant bool `json:"bot_require_code_grant"`
22
+ Bot * User `json:"bot,omitempty"`
21
23
TermsOfServiceURL * string `json:"terms_of_service_url,omitempty"`
22
24
PrivacyPolicyURL * string `json:"privacy_policy_url,omitempty"`
23
25
CustomInstallURL * string `json:"custom_install_url,omitempty"`
26
+ InteractionsEndpointURL * string `json:"interactions_endpoint_url,omitempty"`
24
27
RoleConnectionsVerificationURL * string `json:"role_connections_verification_url"`
25
28
InstallParams * InstallParams `json:"install_params"`
26
29
Tags []string `json:"tags"`
@@ -29,10 +32,12 @@ type Application struct {
29
32
VerifyKey string `json:"verify_key"`
30
33
Team * Team `json:"team,omitempty"`
31
34
GuildID * snowflake.ID `json:"guild_id,omitempty"`
35
+ Guild * Guild `json:"guild,omitempty"`
32
36
PrimarySkuID * snowflake.ID `json:"primary_sku_id,omitempty"`
33
37
Slug * string `json:"slug,omitempty"`
34
38
CoverImage * string `json:"cover_image,omitempty"`
35
39
Flags ApplicationFlags `json:"flags,omitempty"`
40
+ ApproximateGuildCount * int `json:"approximate_guild_count,omitempty"`
36
41
}
37
42
38
43
func (a Application ) IconURL (opts ... CDNOpt ) * string {
@@ -55,6 +60,18 @@ func (a Application) CreatedAt() time.Time {
55
60
return a .ID .Time ()
56
61
}
57
62
63
+ type ApplicationUpdate struct {
64
+ CustomInstallURL * string `json:"custom_install_url,omitempty"`
65
+ Description * string `json:"description,omitempty"`
66
+ RoleConnectionsVerificationURL * string `json:"role_connections_verification_url,omitempty"`
67
+ InstallParams * InstallParams `json:"install_params,omitempty"`
68
+ Flags * ApplicationFlags `json:"flags,omitempty"`
69
+ Icon * json.Nullable [Icon ] `json:"icon,omitempty"`
70
+ CoverImage * json.Nullable [Icon ] `json:"cover_image,omitempty"`
71
+ InteractionsEndpointURL * string `json:"interactions_endpoint_url,omitempty"`
72
+ Tags []string `json:"tags,omitempty"`
73
+ }
74
+
58
75
type PartialApplication struct {
59
76
ID snowflake.ID `json:"id"`
60
77
Flags ApplicationFlags `json:"flags"`
0 commit comments