You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: discord/guild_onboarding.go
+26-7
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,9 @@
1
1
package discord
2
2
3
-
import"github.com/disgoorg/snowflake/v2"
3
+
import (
4
+
"github.com/disgoorg/json"
5
+
"github.com/disgoorg/snowflake/v2"
6
+
)
4
7
5
8
typeGuildOnboardingstruct {
6
9
GuildID snowflake.ID`json:"guild_id"`
@@ -21,12 +24,28 @@ type GuildOnboardingPrompt struct {
21
24
}
22
25
23
26
typeGuildOnboardingPromptOptionstruct {
24
-
ID snowflake.ID`json:"id"`
25
-
ChannelIDs []snowflake.ID`json:"channel_ids"`
26
-
RoleIDs []snowflake.ID`json:"role_ids"`
27
-
EmojiPartialEmoji`json:"emoji"`
28
-
Titlestring`json:"title"`
29
-
Description*string`json:"description"`
27
+
ID snowflake.ID`json:"id"`
28
+
ChannelIDs []snowflake.ID`json:"channel_ids"`
29
+
RoleIDs []snowflake.ID`json:"role_ids"`
30
+
// When creating or updating prompts and their options, this field will be broken down into 3 separate fields in the payload: https://github.com/discord/discord-api-docs/pull/6479
0 commit comments