NadekoBot.Extensions should now be fully annotated with nullable reference types as well as many classes from NadekoBot.Common

This commit is contained in:
Kwoth
2021-12-28 10:44:00 +01:00
parent 0634470a8a
commit 59f5056035
543 changed files with 1895 additions and 1448 deletions

View File

@@ -1,4 +1,5 @@
using System.Reflection;
#nullable disable
using System.Reflection;
using Ayu.Discord.Voice;
namespace NadekoBot.Modules.Music.Services;
@@ -211,4 +212,4 @@ public sealed class AyuVoiceStateService : INService
public bool TryGetProxy(ulong guildId, out IVoiceProxy proxy)
=> _voiceProxies.TryGetValue(guildId, out proxy);
}
}

View File

@@ -1,5 +1,4 @@
#nullable enable
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.CodeAnalysis;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Modules.Music.Services;
@@ -33,4 +32,4 @@ public interface IMusicService : IPlaceholderProvider
Task<bool> ToggleAutoDisconnectAsync(ulong guildId);
Task<QualityPreset> GetMusicQualityAsync(ulong guildId);
Task SetMusicQualityAsync(ulong guildId, QualityPreset preset);
}
}

View File

@@ -1,5 +1,4 @@
#nullable enable
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.CodeAnalysis;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
@@ -444,4 +443,4 @@ public sealed class MusicService : IMusicService
}, preset);
#endregion
}
}

View File

@@ -1,4 +1,5 @@
namespace NadekoBot.Modules.Music.Services;
#nullable disable
namespace NadekoBot.Modules.Music.Services;
public sealed partial class YtLoader
{
@@ -68,4 +69,4 @@ public sealed partial class YtLoader
_videoId = videoId;
}
}
}
}

View File

@@ -1,4 +1,5 @@
using System.Globalization;
#nullable disable
using System.Globalization;
using System.Text;
using System.Text.Json;
@@ -126,4 +127,4 @@ public sealed partial class YtLoader
endIndex - startIndex
);
}
}
}