Browse Source

Fixed GetService exception

pull/17/head
RogueException 9 years ago
parent
commit
e69e831219
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/DiscordClient.cs

+ 1
- 1
src/Discord.Net/DiscordClient.cs View File

@@ -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>(T obj)


Loading…
Cancel
Save