Method TryPeek
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
TryPeek(out T?)
Attempts to return the object at the beginning of the LavalinkQueue<T> without removing it.
public bool TryPeek(out T? value)
Parameters
value
TWhen 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.