Fixed GetService exception

This commit is contained in:
RogueException
2015-12-01 18:47:18 -04:00
parent 26c5511786
commit e69e831219

View File

@@ -287,7 +287,7 @@ namespace Discord
singletonT = singleton as T; singletonT = singleton as T;
if (singletonT == null && required) 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; return singletonT;
} }
public T AddService<T>(T obj) public T AddService<T>(T obj)