Skip to content

Improve display of "Download link" if it's null in Project File #32

Description

@Bruneitor123

General Information

This problem occurred with some new mods. I wasn't able to replicate the problem with older mods (even with recent updates.

Describe the bug:
When using either /latest <project-id> or whenever /schedule add runs... Some project ids show the Download hyperlink as null: [Download](null). I'll describe the problem using /latest as it more likely does have the same mechanism. I couldn't find a specific pattern to discover the actual error, so I assumed that it happened only in a few new mods.

To Reproduce:

  1. Invite the bot to the Discord server and give appropriate permissions.
  2. Use /latest <project-id> and insert one of these projects: 1162729 | 1162748 | 1136088 (these are examples, maybe more of them return null?)
  3. Bot returns with the expected response, but with the hyperlink of "Download" being broken, showing "[Download](null)".

Expected behavior:
Bot sends an actual hyperlink to the download of the file and not a broken one.


Additional Information

Screenshots (if available):
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement to current features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions