Class Mentionable
public class Mentionable : Entity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>
- Inheritance
-
Mentionable
- Implements
- Inherited Members
Constructors
Mentionable(Role)
public Mentionable(Role role)
Parameters
role
Role
Mentionable(User)
public Mentionable(User user)
Parameters
user
User
Properties
Id
The unique identifier for this object.
public override ulong Id { get; }
Property Value
Role
public Role? Role { get; }
Property Value
Type
public MentionableType Type { get; }
Property Value
User
public User? User { get; }
Property Value
Methods
ToString()
public override string ToString()
Returns
TryFormat(Span<char>, out int, ReadOnlySpan<char>, IFormatProvider?)
public override bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
Parameters
destination
Span<char>charsWritten
intformat
ReadOnlySpan<char>provider
IFormatProvider