From e69e831219ad4f4610394377a9a68020587767f0 Mon Sep 17 00:00:00 2001 From: RogueException Date: Tue, 1 Dec 2015 18:47:18 -0400 Subject: [PATCH] Fixed GetService exception --- src/Discord.Net/DiscordClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net/DiscordClient.cs b/src/Discord.Net/DiscordClient.cs index 8411eb14d..afc417951 100644 --- a/src/Discord.Net/DiscordClient.cs +++ b/src/Discord.Net/DiscordClient.cs @@ -287,7 +287,7 @@ namespace Discord singletonT = singleton as T; if (singletonT == null && required) - throw new InvalidOperationException($"This operation requires {nameof(T)} to be added to {nameof(DiscordClient)}."); + throw new InvalidOperationException($"This operation requires {typeof(T).Name} to be added to {nameof(DiscordClient)}."); return singletonT; } public T AddService(T obj)