Table of Contents

Class SlashCommandMention

Namespace
NetCord
Assembly
NetCord.dll
public class SlashCommandMention : Entity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IEquatable<SlashCommandMention>
Inheritance
SlashCommandMention
Implements
Inherited Members

Constructors

SlashCommandMention(ulong, string)

public SlashCommandMention(ulong id, string name)

Parameters

id ulong
name string

SlashCommandMention(ulong, string, string)

public SlashCommandMention(ulong id, string name, string subCommandName)

Parameters

id ulong
name string
subCommandName string

SlashCommandMention(ulong, string, string, string)

public SlashCommandMention(ulong id, string name, string subCommandGroupName, string subCommandName)

Parameters

id ulong
name string
subCommandGroupName string
subCommandName string

Properties

Id

The unique identifier for this object.

public override ulong Id { get; }

Property Value

ulong

Name

public string Name { get; }

Property Value

string

SubCommandGroupName

public string? SubCommandGroupName { get; }

Property Value

string

SubCommandName

public string? SubCommandName { get; }

Property Value

string

Methods

Equals(SlashCommandMention?)

public bool Equals(SlashCommandMention? other)

Parameters

other SlashCommandMention

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

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

Operators

operator ==(SlashCommandMention?, SlashCommandMention?)

public static bool operator ==(SlashCommandMention? left, SlashCommandMention? right)

Parameters

left SlashCommandMention
right SlashCommandMention

Returns

bool

operator !=(SlashCommandMention?, SlashCommandMention?)

public static bool operator !=(SlashCommandMention? left, SlashCommandMention? right)

Parameters

left SlashCommandMention
right SlashCommandMention

Returns

bool