Skip to content

Display and Update Poll Deadline with Discord Timestamp #96

@Matplotlib42

Description

@Matplotlib42

Summary

When using the .poll ACL command, users currently select a duration for the poll. However, there’s no visible indicator of when that poll is to end. This feature would add a Discord timestamp to display the deadline directly in the message.

Proposed behaviour

  • When a poll is created, the bot is to embed a Discord timestamp (e.g. <t:TIMESTAMP:F>) indicating when the poll will end.
  • If the poll’s duration is extended (for example, due to a concern being raised), the bot should edit the existing message to update the timestamp accordingly.

Benefits

  • Improves transparency and clarity for users voting in polls.
  • Eliminates confusion about when a poll is closing.
  • Allows to know if a poll is ended or not in case the bot suffers downtime.

Technical specification

The bot displays two messages, the second one containing all the actual voting part. The first message is currently taking the following form.
Poll by <@USER_ID>:

QUESTION

This should now be displayed as the following.

Poll by <@USER>. Deadline: <t:TIMESTAMP:F>.

QUESTION

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