diff --git a/src/astroidapi/endpoint_update_handler.py b/src/astroidapi/endpoint_update_handler.py index dccce51..d250f09 100644 --- a/src/astroidapi/endpoint_update_handler.py +++ b/src/astroidapi/endpoint_update_handler.py @@ -221,10 +221,7 @@ async def update_endpoint( if "," in message_attachments: for val in message_attachments.split(","): if val.lower() not in [x.lower() for x in endpoint_data["meta"]["message"]["attachments"]]: - if sender == "discord": - endpoint_data["meta"]["message"]["attachments"].append(f"![]({val})") - else: - endpoint_data["meta"]["message"]["attachments"].append(val) + endpoint_data["meta"]["message"]["attachments"].append(val.lower()) else: endpoint_data["meta"]["message"]["attachments"] = [message_attachments] diff --git a/src/astroidapi/get_channel_information.py b/src/astroidapi/get_channel_information.py index b7055e2..478ec22 100644 --- a/src/astroidapi/get_channel_information.py +++ b/src/astroidapi/get_channel_information.py @@ -45,7 +45,7 @@ async def from_guilded_id(cls, channel_id: str): try: async with aiohttp.ClientSession() as session: headers = { - "Authorization": f"Bearer {config.GUILDED_TOKEN}" + "Authorization": f"Bearer {config.BETA_GUILDED_TOKEN}" } async with session.get(f"https://www.guilded.gg/api/v1/channels/{channel_id}", headers=headers) as resp: print(await resp.text())