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.
This commit is contained in:
Christopher F
2016-07-30 23:01:56 -04:00
parent 75b864bfe7
commit fca0099bc2

View File

@@ -6,7 +6,7 @@ using Model = Discord.API.User;
namespace Discord
{
internal class SocketSelfUser : SelfUser, ISocketUser
internal class SocketSelfUser : SelfUser, ISocketUser, ISelfUser
{
internal override bool IsAttached => true;