Commit Graph

757 Commits

Author SHA1 Message Date
Oliver Booth a076a61ae4
Add DiscordGuild.GetMemberOrNullAsync
D#+ throws an undocumented NotFoundException when a member does not exist. This method returns null instead
2023-02-19 15:27:51 +00:00
Oliver Booth 6cd7d8d5ce
Add DiscordClient.GetUserOrNullAsync
D#+ throws an undocumented NotFoundException when a user does not exist. This method returns null instead
2023-02-19 15:27:25 +00:00
Oliver Booth eadb66f470
Add MathUtility.ScaleRange 2023-02-05 14:28:42 +00:00
Oliver Booth 384ec3f61c
[ci skip] Set ContinuousIntegrationBuild to true for CI builds 2023-02-05 13:51:58 +00:00
Oliver Booth ea51adc632
Cache Singleton<T> instance on Awake 2022-12-31 14:49:32 +00:00
Oliver Booth 35591b05e2
Add ReadOnlySpan<char> overload for TimeSpanParser
Also tidies up the code here to reduce complexity
2022-12-22 20:19:52 +00:00
Oliver Booth 8ff3447b85
[ci skip] *Actually* fix badge link
I did not read https://github.com/badges/shields/issues/8671 well enough
2022-12-22 12:31:38 +00:00
Oliver Booth ce255a86b3
[ci skip] Fix workflow badge link
https://github.com/badges/shields/issues/8671
2022-12-22 12:30:48 +00:00
Oliver Booth 94a841b2fc
Allow null input in TimeSpanParser.TryParse 2022-12-22 12:28:35 +00:00
Oliver Booth fdc9e64cbe
Remove trailing whitespace in QuaternionExtensions 2022-12-22 12:28:18 +00:00
Oliver Booth d14ecdec51
revert DebugType:None 2022-12-21 20:09:45 +00:00
Oliver Booth b6d651a5c8
DebugType: None 2022-12-21 20:01:27 +00:00
Oliver Booth 9349ead3ff
Update DSharpPlus 4.3.0 stable 2022-12-21 19:58:28 +00:00
Oliver Booth a53cb12d5d
Use n&1 rather than n%2 for integer IsEven check 2022-12-06 01:22:48 +00:00
Oliver Booth 941f3acc56
[ci skip] Condense switch statement for IsPrime 2022-12-06 01:22:08 +00:00
Oliver Booth 9d6dbaaa23
Add Quaternion.ToAxisAngle and Quaternion.ToVector3 2022-12-06 01:08:35 +00:00
Oliver Booth b60fdc495b
Add IReadOnlyList<T>.Slice 2022-12-01 13:51:30 +00:00
Oliver Booth e02fd3b1b4
Add IReadOnlyList<T>.IndexOf 2022-12-01 12:28:33 +00:00
Oliver Booth 9c2f77b203
Remove invalid DirectoryInfo.Clear test 2022-12-01 12:28:05 +00:00
Oliver Booth 0ba7781462
Fix StackOverflow in FromCircle 2022-12-01 12:05:53 +00:00
Oliver Booth c8d2a5cbec
Call .ConfigureAwait(false)
Yes I wrote true, this was a mistake.

https://media.tenor.com/YQv2NMgnGmoAAAAC/tom-hanks-forrest-gump.gif
2022-11-29 18:53:58 +00:00
Oliver Booth da5c350117
Add edge case for WaitForTimeSpan unit test
Read comment for more details
2022-11-29 18:09:41 +00:00
Oliver Booth af622a8ef7
Allow for minor differentiation in equality test 2022-11-29 17:45:27 +00:00
Oliver Booth b09b2287d2
Update project to 2021.3.14f1 2022-11-29 17:39:50 +00:00
Oliver Booth 048926011b
[ci skip] [github actions] Update unity-test-runner 2.1.0 2022-11-29 17:35:20 +00:00
Oliver Booth fe0b3647e4
[ci skip] Target .NET 7 for source validator 2022-11-29 17:30:07 +00:00
Oliver Booth 7776138909
Remove calls to no-longer-existing Clear(bool) 2022-11-29 17:27:33 +00:00
Oliver Booth aeef084dba
Mark X10D.DSharpPlus as not CLS-compliant
D#+ makes heavy use of ulong for snowflake IDs, which is not a CLS-compliant type
2022-11-29 17:27:18 +00:00
Oliver Booth 8dfe6d5082
Fix CS8600 and CS8602 2022-11-29 17:26:03 +00:00
Oliver Booth f3b40d30b3
Remove in modifier from SpanSplitEnumerator ctor 2022-11-29 17:23:14 +00:00
Oliver Booth f1815cafc2
Suppress CA1805 in .editorconfig 2022-11-29 17:17:28 +00:00
Oliver Booth 00d784eef0
Don't make exception throwing optional 2022-11-29 17:17:13 +00:00
Oliver Booth 7a1ecc6a01
Fix CA1305 violations 2022-11-29 17:13:26 +00:00
Oliver Booth deb1f2edd8
Fix CA1602 violations 2022-11-29 17:12:39 +00:00
Oliver Booth 398b0c58b1
Fix CA2225 violations 2022-11-29 17:10:10 +00:00
Oliver Booth c27334bdc8
Fix CA1307 violations 2022-11-29 16:51:48 +00:00
Oliver Booth e38c384f4d
Suppress CA5394 2022-11-29 16:23:25 +00:00
Oliver Booth 1c0c06f89c
Only create Shared random for .NET < 6 2022-11-29 16:21:02 +00:00
Oliver Booth 0aeb6ff46d
Remove unused using directive 2022-11-29 16:18:38 +00:00
Oliver Booth 3c5cecf3ff
Fix CA1028 violation 2022-11-29 16:18:14 +00:00
Oliver Booth 2431a07a66
Un-nest SpanSplitEnumerator 2022-11-29 16:17:33 +00:00
Oliver Booth f0781e5564
Directly return SpanSplitEnumerator instance 2022-11-29 16:12:16 +00:00
Oliver Booth c9e473e86f
ConfigureAwait(true) on awaited methods 2022-11-29 16:11:06 +00:00
Oliver Booth 020b06334b
throw on null client 2022-11-29 16:08:38 +00:00
Oliver Booth c5276b706e
[github actions] Use .NET 7 2022-11-29 15:55:26 +00:00
Oliver Booth 271305b056
Add .NET 7 target 2022-11-29 15:51:22 +00:00
Oliver Booth 907852316f
Update Microsoft.Extensions.Hosting.Abstractions 7.0.0 2022-11-29 15:51:00 +00:00
Oliver Booth 43e777928e
Update DSharpPlus 4.3.0-nightly-01189 2022-11-29 15:50:37 +00:00
Oliver Booth 53e8b2ff64
Repurpose Span<T>.Split to accept generic 2022-11-29 12:39:34 +00:00
Oliver Booth ed8651172b
Add [ReadOnly]Span<char>.Split
This commit also migrates CountSubstring from StringExtensions to CharSpanExtensions
2022-11-28 02:59:46 +00:00