Minor cleanup

This commit is contained in:
RogueException
2016-08-25 23:30:42 -03:00
parent 5519cfa9fd
commit bed27778db

View File

@@ -20,11 +20,10 @@ namespace Discord.WebSocket
public bool IsSelfDeafened => VoiceState?.IsSelfDeafened ?? false;
public bool IsSelfMuted => VoiceState?.IsSelfMuted ?? false;
public bool IsSuppressed => VoiceState?.IsSuppressed ?? false;
public VoiceChannel VoiceChannel => VoiceState?.VoiceChannel;
public SocketVoiceChannel VoiceChannel => VoiceState?.VoiceChannel;
public bool IsDeafened => VoiceState?.IsDeafened ?? false;
public bool IsMuted => VoiceState?.IsMuted ?? false;
public string VoiceSessionId => VoiceState?.VoiceSessionId ?? "";
IVoiceChannel IVoiceState.VoiceChannel => VoiceState?.VoiceChannel;
public SocketGuildUser(SocketGuild guild, SocketGlobalUser user, Model model)
: base(guild, user, model)
@@ -46,6 +45,8 @@ namespace Discord.WebSocket
User.Update(model, source);
}
IVoiceChannel IVoiceState.VoiceChannel => VoiceState?.VoiceChannel;
public SocketGuildUser Clone() => MemberwiseClone() as SocketGuildUser;
ISocketUser ISocketUser.Clone() => Clone();
}