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
SlashCommandMention(ulong, string, string)
public SlashCommandMention(ulong id, string name, string subCommandName)
Parameters
SlashCommandMention(ulong, string, string, string)
public SlashCommandMention(ulong id, string name, string subCommandGroupName, string subCommandName)
Parameters
Properties
Id
The unique identifier for this object.
public override ulong Id { get; }
Property Value
Name
public string Name { get; }
Property Value
SubCommandGroupName
public string? SubCommandGroupName { get; }
Property Value
SubCommandName
public string? SubCommandName { get; }
Property Value
Methods
Equals(SlashCommandMention?)
public bool Equals(SlashCommandMention? other)
Parameters
other
SlashCommandMention
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
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
Returns
Operators
operator ==(SlashCommandMention?, SlashCommandMention?)
public static bool operator ==(SlashCommandMention? left, SlashCommandMention? right)
Parameters
left
SlashCommandMentionright
SlashCommandMention
Returns
operator !=(SlashCommandMention?, SlashCommandMention?)
public static bool operator !=(SlashCommandMention? left, SlashCommandMention? right)
Parameters
left
SlashCommandMentionright
SlashCommandMention