MessageReactionType
The type that describes a message reaction type.
public struct MessageReactionType: RawRepresentable, Codable, Hashable, ExpressibleByStringLiteral
The reaction has underlying type String
what gives the flexibility to choose the way how the reaction
will be displayed in the application.
Common examples are: like
, love
, smile
, etc.
Inheritance
Codable
, ExpressibleByStringLiteral
, Hashable
, RawRepresentable
Initializers
init(rawValue:)
public init(rawValue: String)
init(stringLiteral:)
public init(stringLiteral: String)
init(from:)
public init(from decoder: Decoder) throws
Properties
rawValue
public let rawValue: String
Methods
encode(to:)
public func encode(to encoder: Encoder) throws