DiscordRateLimitURLParts
public struct DiscordRateLimitURLParts : OptionSet
URL Parts for the purpose of rate limiting.
Combine all the parts of the URL into a list of which parts exist
Ex. /channels/232184444340011009/messages would be represented by [.channels, .channelID, .messages]
Anything that ends in ID
represents the existence of a snowflake id, but the actual ID should be
stored separately if needed. Technically, the .guildID and .channelID fields aren’t needed since
the full ID will also be stored, but they’re included to make the system more straightforward.
-
Declaration
Swift
public let rawValue: Int
-
Declaration
Swift
public init(rawValue: Int)