Table of Contents

Struct RegisteredApplicationCommand<TContext>

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

Type Parameters

TContext
Implements
Inherited Members

Constructors

RegisteredApplicationCommand(ulong, ApplicationCommandInfo<TContext>)

public RegisteredApplicationCommand(ulong Id, ApplicationCommandInfo<TContext> Info)

Parameters

Id ulong
Info ApplicationCommandInfo<TContext>

Properties

Id

public ulong Id { get; init; }

Property Value

ulong

Info

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

Property Value

ApplicationCommandInfo<TContext>

Methods

Deconstruct(out ulong, out ApplicationCommandInfo<TContext>)

public void Deconstruct(out ulong Id, out ApplicationCommandInfo<TContext> Info)

Parameters

Id ulong
Info ApplicationCommandInfo<TContext>

Equals(RegisteredApplicationCommand<TContext>)

public bool Equals(RegisteredApplicationCommand<TContext> other)

Parameters

other RegisteredApplicationCommand<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 ==(RegisteredApplicationCommand<TContext>, RegisteredApplicationCommand<TContext>)

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

Parameters

left RegisteredApplicationCommand<TContext>
right RegisteredApplicationCommand<TContext>

Returns

bool

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

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

Parameters

left RegisteredApplicationCommand<TContext>
right RegisteredApplicationCommand<TContext>

Returns

bool