Table of Contents

Method TryPeek

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

Attempts to return the object at the beginning of the LavalinkQueue<T> without removing it.

public bool TryPeek(out T? value)

Parameters

value T

When this method returns, contains the object at the beginning of the LavalinkQueue<T>, or the default value of T if the queue is empty.

Returns

bool

true if there is an object at the beginning of the LavalinkQueue<T>; otherwise, false.