discord-modmail / modmail

A Modmail bot for Discord. Allowing safe moderator conversations with server members one server at a time.
https://discord-modmail.readthedocs.io/
MIT License
15 stars 8 forks source link

Change discord model created_at times from datetime.datetime to arrow.Arrow #92

Closed onerandomusername closed 2 years ago

onerandomusername commented 2 years ago

depends on #93

hacks discord.utils to return arrow.Arrow instead of datetime.datetime.

codecov[bot] commented 2 years ago

Codecov Report

Merging #92 (4f9cc9a) into feat/utils-time (a2adec4) will increase coverage by 0.51%. The diff coverage is 94.11%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##           feat/utils-time      #92      +/-   ##
===================================================
+ Coverage            70.38%   70.90%   +0.51%     
===================================================
  Files                   29       29              
  Lines                 1540     1574      +34     
  Branches               162      164       +2     
===================================================
+ Hits                  1084     1116      +32     
- Misses                 429      431       +2     
  Partials                27       27              
Impacted Files Coverage Δ
modmail/__main__.py 0.00% <0.00%> (ø)
modmail/utils/time.py 100.00% <100.00%> (ø)
tests/conftest.py 80.00% <100.00%> (+13.33%) :arrow_up:
tests/mocks.py 92.43% <100.00%> (+0.03%) :arrow_up:
tests/modmail/utils/test_time.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a2adec4...4f9cc9a. Read the comment docs.

dpulls[bot] commented 2 years ago

:tada: All dependencies have been resolved !

dpulls[bot] commented 2 years ago

:tada: All dependencies have been resolved !

onerandomusername commented 2 years ago

Not worth the possible bugs caused from this, IMO.