diff --git a/CommandHandlers/MusicModule.cs b/CommandHandlers/MusicModule.cs
index 3a9d052..c92486a 100644
--- a/CommandHandlers/MusicModule.cs
+++ b/CommandHandlers/MusicModule.cs
@@ -151,7 +151,7 @@ public async Task StopJazzAsync(CommandContext ctx) {
public async Task PlayAsync(CommandContext ctx,
[Description("URL to play from.")] Uri uri) {
var trackLoad = await Music.GetTracksAsync(uri);
- var tracks = toSeq(trackLoad.Tracks);
+ var tracks = trackLoad.Tracks.ToList();
if (trackLoad.LoadResultType == LavalinkLoadResultType.LoadFailed || !tracks.Any()) {
await common.respond(ctx, "No tracks were found at specified link.");
return;
@@ -160,7 +160,7 @@ public async Task PlayAsync(CommandContext ctx,
if (trackLoad.LoadResultType == LavalinkLoadResultType.PlaylistLoaded &&
trackLoad.PlaylistInfo.SelectedTrack > 0) {
var index = trackLoad.PlaylistInfo.SelectedTrack;
- tracks = tracks.Skip(index).Concat(tracks.Take(index));
+ tracks = tracks.Skip(index).Concat(tracks.Take(index)).ToList();
}
var trackCount = tracks.Count();
@@ -197,7 +197,7 @@ public async Task PlayJazzAsync(CommandContext ctx,
var interactivity = ctx.Client.GetInteractivity();
- var results = (await GuildMusic.getJazz("*" + term + "*")).ToSeq();
+ var results = (await GuildMusic.getJazz("*" + term + "*")).ToList();
if (!results.Any()) {
await common.respond(ctx, "Nothing was found.");
return;
@@ -206,7 +206,7 @@ public async Task PlayJazzAsync(CommandContext ctx,
if (results.Count() == 1) {
// only one result
var el_ = results.First();
- var tracks_ = el_.Tracks.ToSeq();
+ var tracks_ = el_.Tracks.ToList();
if (el_.LoadResultType == LavalinkLoadResultType.LoadFailed || !tracks_.Any()) {
await common.respond(ctx, "No tracks were found at specified link.");
return;
@@ -287,7 +287,7 @@ await common.respond(ctx,
}
var el = results.ElementAt(elInd - 1);
- var tracks = el.Tracks.ToSeq();
+ var tracks = el.Tracks.ToList();
if (el.LoadResultType == LavalinkLoadResultType.LoadFailed || !tracks.Any()) {
@@ -295,7 +295,7 @@ await common.respond(ctx,
return;
}
- var trackCount = tracks.Count();
+ var trackCount = tracks.Count;
foreach (var track in tracks)
GuildMusic.queue.Enqueue(track);
@@ -318,7 +318,7 @@ public async Task PlayAsync(CommandContext ctx,
string term) {
var interactivity = ctx.Client.GetInteractivity();
- var results = (await YouTube.SearchAsync(term)).ToSeq();
+ var results = (await YouTube.SearchAsync(term)).ToList();
if (!results.Any()) {
await common.respond(ctx, "Nothing was found.");
return;
@@ -365,13 +365,13 @@ public async Task PlayAsync(CommandContext ctx,
var url = new Uri($"https://youtu.be/{el.Id}");
var trackLoad = await Music.GetTracksAsync(url);
- var tracks = trackLoad.Tracks.ToSeq();
+ var tracks = trackLoad.Tracks.ToList();
if (trackLoad.LoadResultType == LavalinkLoadResultType.LoadFailed || !tracks.Any()) {
await common.modify(ctx, msg, "No tracks were found at specified link.");
return;
}
- var trackCount = tracks.Count();
+ var trackCount = tracks.Count;
foreach (var track in tracks) {
GuildMusic.queue.Enqueue(track);
}
diff --git a/EconomyBot.csproj b/EconomyBot.csproj
index d2f7db3..36de726 100644
--- a/EconomyBot.csproj
+++ b/EconomyBot.csproj
@@ -21,7 +21,6 @@
-
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/Program.cs b/Program.cs
index 26cd8bc..66368d4 100644
--- a/Program.cs
+++ b/Program.cs
@@ -1,8 +1,4 @@
-global using LanguageExt;
-global using static LanguageExt.Prelude;
-using System.Collections;
-using System.Diagnostics;
-using System.Globalization;
+using System.Globalization;
using System.Net;
using System.Text.RegularExpressions;
using DetectLanguage;
diff --git a/runtimeconfig.template.json b/runtimeconfig.template.json
index 871ae35..5596518 100644
--- a/runtimeconfig.template.json
+++ b/runtimeconfig.template.json
@@ -1,5 +1,4 @@
{
"configProperties": {
-
}
}
\ No newline at end of file