示例#1
0
        internal MessageReference(MessageReferenceModel model)
        {
            if (model.MessageId.HasValue)
            {
                MessageId = model.MessageId.Value;
            }

            ChannelId = model.ChannelId;

            if (model.MessageId.HasValue)
            {
                GuildId = model.GuildId.Value;
            }
        }
 public static MessageReference ToReference(this MessageReferenceModel model)
 => new MessageReference(model);