-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance interaction response and queue management
- Introduced a new `EditResponseAsync` method for string content. - Created `DefaultQueueEntry` class for track playback handling. - Updated `LavalinkConfiguration` with a customizable `QueueEntryFactory`. - Refactored `LavalinkGuildPlayer` to utilize a static `QueueInternal` for guild-specific queues. - Deprecated the `QueueEntries` property in favor of the new `Queue` property. - Implemented a new thread-safe `LavalinkQueue<T>` class for queue operations.
- Loading branch information
1 parent
050b0f3
commit 1e5541c
Showing
5 changed files
with
443 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Threading.Tasks; | ||
|
||
namespace DisCatSharp.Lavalink.Entities; | ||
public class DefaultQueueEntry : IQueueEntry | ||
{ | ||
public LavalinkTrack Track { get; set; } | ||
|
||
public Task<bool> BeforePlayingAsync(LavalinkGuildPlayer player) => Task.FromResult(true); | ||
|
||
public Task AfterPlayingAsync(LavalinkGuildPlayer player) => Task.CompletedTask; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.