diff --git a/X10D.DSharpPlus/src/DiscordClientExtensions.cs b/X10D.DSharpPlus/src/DiscordClientExtensions.cs
index 5835d93..c9f21f4 100644
--- a/X10D.DSharpPlus/src/DiscordClientExtensions.cs
+++ b/X10D.DSharpPlus/src/DiscordClientExtensions.cs
@@ -15,8 +15,18 @@ public static class DiscordClientExtensions
/// to automatically rejoin a thread if this client was removed; otherwise,
/// .
///
+ /// is .
public static void AutoJoinThreads(this DiscordClient client, bool rejoinIfRemoved = true)
{
+#if NET6_0_OR_GREATER
+ ArgumentNullException.ThrowIfNull(client);
+#else
+ if (client is null)
+ {
+ throw new ArgumentNullException(nameof(client));
+ }
+#endif
+
client.GuildAvailable += (_, args) => args.Guild.JoinAllThreadsAsync();
client.ThreadCreated += (_, args) => args.Thread.JoinThreadAsync();