diff --git a/src/Discord.Net.Audio/AudioClient.cs b/src/Discord.Net.Audio/AudioClient.cs index 6951ff010..8fab4bd9f 100644 --- a/src/Discord.Net.Audio/AudioClient.cs +++ b/src/Discord.Net.Audio/AudioClient.cs @@ -285,7 +285,7 @@ namespace Discord.Audio { if (data == null) throw new ArgumentException(nameof(data)); if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - if (offset < 0) throw new ArgumentOutOfRangeException(nameof(count)); + if (offset < 0) throw new ArgumentOutOfRangeException(nameof(offset)); if (VoiceSocket.Server == null) return; //Has been closed if (count == 0) return; diff --git a/src/Discord.Net/InternalExtensions.cs b/src/Discord.Net/InternalExtensions.cs index be9d90b3f..1bf5ec492 100644 --- a/src/Discord.Net/InternalExtensions.cs +++ b/src/Discord.Net/InternalExtensions.cs @@ -12,17 +12,12 @@ namespace Discord { internal static readonly IFormatProvider _format = CultureInfo.InvariantCulture; - public static ulong ToId(this string value) - => ulong.Parse(value, NumberStyles.None, _format); - public static ulong? ToNullableId(this string value) - => value == null ? (ulong?)null : ulong.Parse(value, NumberStyles.None, _format); - public static bool TryToId(this string value, out ulong result) - => ulong.TryParse(value, NumberStyles.None, _format, out result); + public static ulong ToId(this string value) => ulong.Parse(value, NumberStyles.None, _format); + public static ulong? ToNullableId(this string value) => value == null ? (ulong?)null : ulong.Parse(value, NumberStyles.None, _format); + public static bool TryToId(this string value, out ulong result) => ulong.TryParse(value, NumberStyles.None, _format, out result); - public static string ToIdString(this ulong value) - => value.ToString(_format); - public static string ToIdString(this ulong? value) - => value?.ToString(_format); + public static string ToIdString(this ulong value) => value.ToString(_format); + public static string ToIdString(this ulong? value) => value?.ToString(_format); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool HasBit(this uint rawValue, byte bit) => ((rawValue >> bit) & 1U) == 1; diff --git a/src/Discord.Net/Models/Role.cs b/src/Discord.Net/Models/Role.cs index d3e9f9094..012d2bf36 100644 --- a/src/Discord.Net/Models/Role.cs +++ b/src/Discord.Net/Models/Role.cs @@ -9,7 +9,7 @@ using APIRole = Discord.API.Client.Role; namespace Discord { - public class Role : IMentionable + public class Role : IMentionable { private readonly static Action _cloner = DynamicIL.CreateCopyMethod();