amsync/obj.py
async def embed(embed: Embed) -> list[Dict[str, Any]]:
            """
            Creates the data for sending a embed
            """

            if embed.image:
                embed.image = [[100, await upload_media(embed.image), None]]
            return [
                {
                    'content': embed.msg_text,
                    'attachedObject': {
                        'link':      embed.link,
                        'title':     embed.title,
                        'content':   embed.text,
                        'mediaList': embed.image,
                    },
                }
            ]

            Creates the data for sending a embed
            
Creates the data for sending a embed
Creates the data for sending a embed
async def embed(embed: Embed) -> list[Dict[str, Any]]:
            if embed.image:
                embed.image = [[100, await upload_media(embed.image), None]]
            return [
                {
                    'content': embed.msg_text,
                    'attachedObject': {
                        'link':      embed.link,
                        'title':     embed.title,
                        'content':   embed.text,
                        'mediaList': embed.image,
                    },
                }
            ]
async def embed ( embed : Embed ) -> list [ Dict [ str , Any ] ] : if embed . image : embed . image = [ [ 100 , await upload_media ( embed . image ) , None ] ] return [ { 'content' : embed . msg_text , 'attachedObject' : { 'link' : embed . link , 'title' : embed . title , 'content' : embed . text , 'mediaList' : embed . image , } , } ]
Creates the data for sending a embed
Creates the data for sending a embed
"""
            Creates the data for sending a embed
            """
embed
Embed