Ejemplo n.º 1
0
        /// <summary>
        /// Updates this data with the specified data, overwriting any conflicts with the new data.
        /// </summary>
        /// <exception cref="InvalidOperationException">Thrown if this data or the given data is not a container.</exception>
        public void OverwriteUpdate(DiscordApiData data)
        {
            AssertContainer();
            data.AssertContainer();

            foreach (KeyValuePair <string, DiscordApiData> pair in data.Entries)
            {
                this.data[pair.Key] = pair.Value;
            }
        }