Browse Source

Minor cleanup

pull/231/head
RogueException 8 years ago
parent
commit
bed27778db
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/Discord.Net/WebSocket/Entities/Users/SocketGuildUser.cs

+ 3
- 2
src/Discord.Net/WebSocket/Entities/Users/SocketGuildUser.cs View File

@@ -20,11 +20,10 @@ namespace Discord.WebSocket
public bool IsSelfDeafened => VoiceState?.IsSelfDeafened ?? false; public bool IsSelfDeafened => VoiceState?.IsSelfDeafened ?? false;
public bool IsSelfMuted => VoiceState?.IsSelfMuted ?? false; public bool IsSelfMuted => VoiceState?.IsSelfMuted ?? false;
public bool IsSuppressed => VoiceState?.IsSuppressed ?? 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 IsDeafened => VoiceState?.IsDeafened ?? false;
public bool IsMuted => VoiceState?.IsMuted ?? false; public bool IsMuted => VoiceState?.IsMuted ?? false;
public string VoiceSessionId => VoiceState?.VoiceSessionId ?? ""; public string VoiceSessionId => VoiceState?.VoiceSessionId ?? "";
IVoiceChannel IVoiceState.VoiceChannel => VoiceState?.VoiceChannel;


public SocketGuildUser(SocketGuild guild, SocketGlobalUser user, Model model) public SocketGuildUser(SocketGuild guild, SocketGlobalUser user, Model model)
: base(guild, user, model) : base(guild, user, model)
@@ -46,6 +45,8 @@ namespace Discord.WebSocket
User.Update(model, source); User.Update(model, source);
} }


IVoiceChannel IVoiceState.VoiceChannel => VoiceState?.VoiceChannel;

public SocketGuildUser Clone() => MemberwiseClone() as SocketGuildUser; public SocketGuildUser Clone() => MemberwiseClone() as SocketGuildUser;
ISocketUser ISocketUser.Clone() => Clone(); ISocketUser ISocketUser.Clone() => Clone();
} }


Loading…
Cancel
Save