def to_message_reference_dict(self) -> MessageReferencePayload:
    data: MessageReferencePayload = {'message_id': self.id, 'channel_id': self.channel.id}
    if (self.guild is not None):
        data['guild_id'] = self.guild.id
    return data
def to_message_reference_dict(self) -> MessageReferencePayload:
    data: MessageReferencePayload = {'message_id': self.id, 'channel_id': self.channel.id}
    if (self.guild is not None):
        data['guild_id'] = self.guild.id
    return data