Real-Dev-Squad / discord-slash-commands

MIT License
4 stars 21 forks source link

Refactor : Task command #137

Closed sahsisunny closed 10 months ago

sahsisunny commented 10 months ago

Description

This pull request addresses several improvements and changes to the /tasks command as outlined in issue #1234. Here are the key changes:

  1. New Function to Retrieve Data from RDS Backend DB

    • A new function, getUserDetails, has been added to fetch data from the RDS backend database. This enhances the command's functionality by providing more up-to-date and accurate information.
  2. Console Logging Improvements

    • console.log statements have been replaced with console.error where appropriate to make it easier to identify and address issues.
  3. Removal of formatDate Utility Function

    • The formatDate utility function has been removed, as it is no longer needed. The code now uses the - Using javascript function for converting Unix timestamps to human-readable date formats. This change improves code consistency and readability.

Testing

Screenshot

image