Skip to content

Add more fields to punishment embeds (length, relative expiry, relative issued at) #7

Description

@TBG1000

Issues:

  • Current "New punishment" embeds generated by the punishment webhook do not display the length of a punishment (i.e will display that it's a mute, but not that it's for 2 hours).

  • Relative expiry of the punishment is also a convenient feature to have. This idea is taken from this TODO in the code.

  • Relative "issued at" field, taken from this TODO

Current embed:

image

Desired solutions:

  • Display the punishment length. To the right of "Reason" could be a suitable spot.
  • Display the relative expiry. Discord's integrated timestamps could be used to do so. It could be labeled as "Expires in" with a timestamp below it saying something along the lines of "2 days 3 hours 4 minutes"
  • Display a relative "Issued at" field. For example, "Issued: 2 hours 1 minute ago"

Affected areas / files

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions