internal DiscordMessageReaction(MessageReactionModel model) { UserId = model.UserId; MessageId = model.MessageId; if (model.Member != null) { Member = new DiscordServerMember(model.Member); } if (model.Emoji != null) { Emoji = new DiscordEmoji(model.Emoji); } ChannelId = model.ChannelId; GuildId = model.GuildId; }
internal DiscordVoiceState(VoiceStateModel model) { GuildId = model.GuildId; ChannelId = model.ChannelId; User = Channel.Recipients[model.UserId]; if (model.Member != null) { Member = new DiscordServerMember(model.Member); } SessionId = model.SessionId; Deaf = model.Deaf; Mute = model.Mute; SelfDeaf = model.SelfDeaf; SelfMute = model.SelfMute; SelfStream = model.SelfStream; Suppress = model.Suppress; }