| @@ -17,74 +17,15 @@ namespace Discord.WebSocket | |||
| public override Game Game => Presence.Game; | |||
| public override UserStatus Status => Presence.Status; | |||
| public VoiceState? VoiceState | |||
| { | |||
| get | |||
| { | |||
| return Guild.GetVoiceState(Id); | |||
| } | |||
| } | |||
| public bool IsSelfDeafened | |||
| { | |||
| get | |||
| { | |||
| return VoiceState?.IsSelfDeafened ?? false; | |||
| } | |||
| } | |||
| public bool IsSelfMuted | |||
| { | |||
| get | |||
| { | |||
| return VoiceState?.IsSelfMuted ?? false; | |||
| } | |||
| } | |||
| public bool IsSuppressed | |||
| { | |||
| get | |||
| { | |||
| return VoiceState?.IsSuppressed ?? false; | |||
| } | |||
| } | |||
| public VoiceChannel VoiceChannel | |||
| { | |||
| get | |||
| { | |||
| return VoiceState?.VoiceChannel; | |||
| } | |||
| } | |||
| public bool IsDeafened | |||
| { | |||
| get | |||
| { | |||
| return VoiceState?.IsDeafened ?? false; | |||
| } | |||
| } | |||
| public bool IsMuted | |||
| { | |||
| get | |||
| { | |||
| return VoiceState?.IsMuted ?? false; | |||
| } | |||
| } | |||
| IVoiceChannel IVoiceState.VoiceChannel | |||
| { | |||
| get | |||
| { | |||
| return VoiceState?.VoiceChannel; | |||
| } | |||
| } | |||
| public string VoiceSessionId | |||
| { | |||
| get | |||
| { | |||
| return VoiceState?.VoiceSessionId ?? ""; | |||
| } | |||
| } | |||
| public VoiceState? VoiceState => Guild.GetVoiceState(Id); | |||
| public bool IsSelfDeafened => VoiceState?.IsSelfDeafened ?? false; | |||
| public bool IsSelfMuted => VoiceState?.IsSelfMuted ?? false; | |||
| public bool IsSuppressed => VoiceState?.IsSuppressed ?? false; | |||
| public VoiceChannel 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) | |||