Table of Contents

Struct RegisteredApplicationCommandInfo<TContext>

Namespace
NetCord.Services.ApplicationCommands
Assembly
NetCord.Services.dll
public readonly struct RegisteredApplicationCommandInfo<TContext> : IEquatable<RegisteredApplicationCommandInfo<TContext>> where TContext : IApplicationCommandContext

Type Parameters

TContext
Implements
Inherited Members

Constructors

RegisteredApplicationCommandInfo(ApplicationCommand, ApplicationCommandInfo<TContext>)

public RegisteredApplicationCommandInfo(ApplicationCommand Command, ApplicationCommandInfo<TContext> CommandInfo)

Parameters

Command ApplicationCommand
CommandInfo ApplicationCommandInfo<TContext>

Properties

Command

public ApplicationCommand Command { get; init; }

Property Value

ApplicationCommand

CommandInfo

public ApplicationCommandInfo<TContext> CommandInfo { get; init; }

Property Value

ApplicationCommandInfo<TContext>

Methods

Deconstruct(out ApplicationCommand, out ApplicationCommandInfo<TContext>)

public void Deconstruct(out ApplicationCommand Command, out ApplicationCommandInfo<TContext> CommandInfo)

Parameters

Command ApplicationCommand
CommandInfo ApplicationCommandInfo<TContext>

Equals(RegisteredApplicationCommandInfo<TContext>)

public bool Equals(RegisteredApplicationCommandInfo<TContext> other)

Parameters

other RegisteredApplicationCommandInfo<TContext>

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

Operators

operator ==(RegisteredApplicationCommandInfo<TContext>, RegisteredApplicationCommandInfo<TContext>)

public static bool operator ==(RegisteredApplicationCommandInfo<TContext> left, RegisteredApplicationCommandInfo<TContext> right)

Parameters

left RegisteredApplicationCommandInfo<TContext>
right RegisteredApplicationCommandInfo<TContext>

Returns

bool

operator !=(RegisteredApplicationCommandInfo<TContext>, RegisteredApplicationCommandInfo<TContext>)

public static bool operator !=(RegisteredApplicationCommandInfo<TContext> left, RegisteredApplicationCommandInfo<TContext> right)

Parameters

left RegisteredApplicationCommandInfo<TContext>
right RegisteredApplicationCommandInfo<TContext>

Returns

bool