-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(model): Add guild field to interaction. #2383
Conversation
Note that this adds a new partial guild since there is a issue with the name of the fields of this specific partial guild. Closes #2381
#[derive(Clone, Debug, Eq, PartialEq, Deserialize, Serialize, Hash)] | ||
pub struct InteractionPartialGuild { | ||
/// Id of the guild. | ||
pub id: Option<Id<GuildMarker>>, | ||
/// Enabled guild features | ||
pub features: Option<Vec<GuildFeature>>, | ||
pub locale: Option<String>, | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably those fields are guaranteed to exist for interactions, but it's not documented and I'm not 100% sure about that. ig option is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this partial guild is strange so I will rather go the safe route. For example the guild id is sent in the interaction so maybe they will stop duplication it here.
Note that this adds a new partial guild since there is a issue with the name of the fields of this specific partial guild. Closes twilight-rs#2381
Note that this adds a new partial guild since there is a issue with
the name of the fields of this specific partial guild.
Closes #2381