mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 08:34:27 -05:00 
			
		
		
		
	More cleanup
- Moved all bot files to src/NadekoBot - Fixed tests path in ci - Fixed some warnings in MusicService - Cleaned up csproj slightly
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
#nullable enable
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Diagnostics.CodeAnalysis;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using Discord;
 | 
			
		||||
using NadekoBot.Core.Common;
 | 
			
		||||
@@ -24,7 +25,7 @@ namespace NadekoBot.Modules.Music.Services
 | 
			
		||||
        public Task JoinVoiceChannelAsync(ulong guildId, ulong voiceChannelId);
 | 
			
		||||
        
 | 
			
		||||
        Task<IMusicPlayer?> GetOrCreateMusicPlayerAsync(ITextChannel contextChannel);
 | 
			
		||||
        bool TryGetMusicPlayer(ulong guildId, out IMusicPlayer musicPlayer);
 | 
			
		||||
        bool TryGetMusicPlayer(ulong guildId, [MaybeNullWhen(false)] out IMusicPlayer musicPlayer);
 | 
			
		||||
        Task<int> EnqueueYoutubePlaylistAsync(IMusicPlayer mp, string playlistId, string queuer);
 | 
			
		||||
        Task EnqueueDirectoryAsync(IMusicPlayer mp, string dirPath, string queuer);
 | 
			
		||||
        Task<int> EnqueueSoundcloudPlaylistAsync(IMusicPlayer mp, string playlist, string queuer);
 | 
			
		||||
 
 | 
			
		||||
@@ -2,6 +2,7 @@
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Concurrent;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Diagnostics.CodeAnalysis;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using Discord;
 | 
			
		||||
@@ -93,7 +94,7 @@ namespace NadekoBot.Modules.Music.Services
 | 
			
		||||
            return _players.GetOrAdd(contextChannel.GuildId, newPLayer);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public bool TryGetMusicPlayer(ulong guildId, out IMusicPlayer musicPlayer)
 | 
			
		||||
        public bool TryGetMusicPlayer(ulong guildId, [MaybeNullWhen(false)] out IMusicPlayer musicPlayer)
 | 
			
		||||
            => _players.TryGetValue(guildId, out musicPlayer);
 | 
			
		||||
 | 
			
		||||
        public async Task<int> EnqueueYoutubePlaylistAsync(IMusicPlayer mp, string query, string queuer)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user