-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package discord | ||
|
||
import "github.com/disgoorg/snowflake/v2" | ||
|
||
type GuildOnboarding struct { | ||
GuildID snowflake.ID `json:"guild_id"` | ||
Prompts []GuildOnboardingPrompt `json:"prompts"` | ||
DefaultChannelIDs []snowflake.ID `json:"default_channel_ids"` | ||
Enabled bool `json:"enabled"` | ||
} | ||
|
||
type GuildOnboardingPrompt struct { | ||
ID snowflake.ID `json:"id"` | ||
Options []GuildOnboardingPromptOption `json:"options"` | ||
Title string `json:"title"` | ||
SingleSelect bool `json:"single_select"` | ||
Required bool `json:"required"` | ||
InOnboarding bool `json:"in_onboarding"` | ||
Type GuildOnboardingPromptType `json:"type"` | ||
} | ||
|
||
type GuildOnboardingPromptOption struct { | ||
ID snowflake.ID `json:"id"` | ||
ChannelIDs []snowflake.ID `json:"channel_ids"` | ||
RoleIDs []snowflake.ID `json:"role_ids"` | ||
EmojiID *snowflake.ID `json:"emoji_id"` | ||
EmojiName *string `json:"emoji_name"` | ||
Title string `json:"title"` | ||
Description *string `json:"description"` | ||
} | ||
|
||
type GuildOnboardingPromptType int | ||
|
||
const ( | ||
GuildOnboardingPromptTypeMultipleChoice GuildOnboardingPromptType = iota | ||
GuildOnboardingPromptTypeDropdown | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters