diff --git a/DiscordRPC/Configuration.cs b/DiscordRPC/Configuration.cs
index 33378c32..5508c342 100644
--- a/DiscordRPC/Configuration.cs
+++ b/DiscordRPC/Configuration.cs
@@ -24,9 +24,16 @@ public class Configuration
public string CdnHost { get; set; }
///
- /// The type of enviroment the connection on. Usually Production.
+ /// The type of environment the connection on. Usually Production.
+ ///
+ [JsonProperty("environment")]
+ public string Environment { get; set; }
+
+ ///
+ /// Obsolete: Use "environment" instead. The type of environment the connection on. Usually Production.
///
[JsonProperty("enviroment")]
+ [Obsolete("This property is obsolete: use \"environment\" instead", false)]
public string Enviroment { get; set; }
}
}
diff --git a/DiscordRPC/IO/ManagedNamedPipeClient.cs b/DiscordRPC/IO/ManagedNamedPipeClient.cs
index 14fec151..75baa2a9 100644
--- a/DiscordRPC/IO/ManagedNamedPipeClient.cs
+++ b/DiscordRPC/IO/ManagedNamedPipeClient.cs
@@ -471,7 +471,7 @@ public static string GetPipeName(int pipe)
=> GetPipeName(pipe, "");
///
- /// Gets the name of the possible sandbox enviroment the pipe might be located within. If the platform doesn't support sandboxed Discord, then it will return null.
+ /// Gets the name of the possible sandbox environment the pipe might be located within. If the platform doesn't support sandboxed Discord, then it will return null.
///
///
public static string GetPipeSandbox()
@@ -486,7 +486,7 @@ public static string GetPipeSandbox()
}
///
- /// Gets the temporary path for the current enviroment. Only applicable for UNIX based systems.
+ /// Gets the temporary path for the current environment. Only applicable for UNIX based systems.
///
///
private static string GetTemporaryDirectory()
diff --git a/Unity Example/Assets/Discord RPC/Editor/NativeDllHandler.cs b/Unity Example/Assets/Discord RPC/Editor/NativeDllHandler.cs
index 9d93442e..a3d8397e 100644
--- a/Unity Example/Assets/Discord RPC/Editor/NativeDllHandler.cs
+++ b/Unity Example/Assets/Discord RPC/Editor/NativeDllHandler.cs
@@ -29,7 +29,7 @@ static DiscordNativeInstall()
}
else
{
- Debug.LogError("Discord RPC is unable to work in a .NET 2.0 SUBSET enviroment. Builds may not work and may hardcrash if not fixed. Please manually fix by changing player settings.");
+ Debug.LogError("Discord RPC is unable to work in a .NET 2.0 SUBSET environment. Builds may not work and may hardcrash if not fixed. Please manually fix by changing player settings.");
}
}
diff --git a/Unity Example/Assets/Discord RPC/Plugins/DiscordRPC.XML b/Unity Example/Assets/Discord RPC/Plugins/DiscordRPC.XML
index 92f222c1..dec5ba7a 100644
--- a/Unity Example/Assets/Discord RPC/Plugins/DiscordRPC.XML
+++ b/Unity Example/Assets/Discord RPC/Plugins/DiscordRPC.XML
@@ -19,9 +19,9 @@
The CDN endpoint
-
+
- The type of enviroment the connection on. Usually Production.
+ The type of environment the connection on. Usually Production.
diff --git a/Unity Example/Assets/Discord RPC/Scripts/Control/UnityNamedPipe.cs b/Unity Example/Assets/Discord RPC/Scripts/Control/UnityNamedPipe.cs
index 0d0eab78..cd4feb62 100644
--- a/Unity Example/Assets/Discord RPC/Scripts/Control/UnityNamedPipe.cs
+++ b/Unity Example/Assets/Discord RPC/Scripts/Control/UnityNamedPipe.cs
@@ -212,7 +212,7 @@ private string GetPipeName(int pipe, string sandbox = "")
case PlatformID.Unix:
case PlatformID.MacOSX:
Logger.Trace("PIPE UNIX / MACOSX");
- return Path.Combine(GetEnviromentTemp(), sandbox + string.Format(PIPE_NAME, pipe));
+ return Path.Combine(GetEnvironmentTemp(), sandbox + string.Format(PIPE_NAME, pipe));
}
}
@@ -227,7 +227,7 @@ private string GetPipeSandbox()
}
}
- private string GetEnviromentTemp()
+ private string GetEnvironmentTemp()
{
string temp = null;
temp = temp ?? Environment.GetEnvironmentVariable("XDG_RUNTIME_DIR");