Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TBG1000 opened this issue Jul 7, 2022 · 0 comments

Comments

@TBG1000
Copy link
Member

TBG1000 commented Jul 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant