Skip to content

Commit

Permalink
Merge pull request #121 from jewlexx/non-exhaustive-types
Browse files Browse the repository at this point in the history
Mark ActivityType as non-exhaustive
  • Loading branch information
jewlexx authored Aug 23, 2024
2 parents 3cad8f2 + 8182b63 commit 5016609
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/models/rich_presence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,15 @@ impl SendActivityJoinInviteArgs {
}

/// [`ActivityType`] enum
///
/// Lists all activity types currently supported by Discord.
///
/// This may change in future if Discord adds support for more types,
/// or removes support for some.
#[cfg(feature = "activity_type")]
#[cfg_attr(docsrs, doc(cfg(feature = "activity_type")))]
#[repr(u8)]
#[non_exhaustive]
#[derive(Clone, Debug, PartialEq, Eq, Deserialize_repr, Serialize_repr, Hash)]
pub enum ActivityType {
/// Playing a game
Expand Down

0 comments on commit 5016609

Please sign in to comment.