Table of Contents

Class Mentionable

Namespace
NetCord.Services
Assembly
NetCord.Services.dll
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

ulong

Role

public Role? Role { get; }

Property Value

Role

Type

public MentionableType Type { get; }

Property Value

MentionableType

User

public User? User { get; }

Property Value

User

Methods

ToString()

public override string ToString()

Returns

string

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 int
format ReadOnlySpan<char>
provider IFormatProvider

Returns

bool