Browse Source

SocketSelfUser inherits ISelfUser

Resolves #159.

The previous bug was that SocketSelfUser did not inherit from ISelfUser, so DiscordSocketClient.GetCurrentUserAsync was not returning a SocketSelfUser, despite the underlying type being that. This caused ModifyStatusAsync to throw the NotSupportedException that existed on the REST SelfUser.
tags/1.0-rc
Christopher F 8 years ago
parent
commit
fca0099bc2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/WebSocket/Entities/Users/SocketSelfUser.cs

+ 1
- 1
src/Discord.Net/WebSocket/Entities/Users/SocketSelfUser.cs View File

@@ -6,7 +6,7 @@ using Model = Discord.API.User;


namespace Discord namespace Discord
{ {
internal class SocketSelfUser : SelfUser, ISocketUser
internal class SocketSelfUser : SelfUser, ISocketUser, ISelfUser
{ {
internal override bool IsAttached => true; internal override bool IsAttached => true;




Loading…
Cancel
Save