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

feat: monkey-patch embeds to give more init param options #64

Closed onerandomusername closed 3 years ago

onerandomusername commented 3 years ago

Relevant Issues

Description

monkey-patches discord embeds to support more initial parameter options, and have a default color.

codecov[bot] commented 3 years ago

Codecov Report

Merging #64 (652f81e) into main (2038e8c) will increase coverage by 3.73%. The diff coverage is 92.30%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #64      +/-   ##
==========================================
+ Coverage   35.49%   39.22%   +3.73%     
==========================================
  Files          12       13       +1     
  Lines         555      594      +39     
  Branches       64       70       +6     
==========================================
+ Hits          197      233      +36     
- Misses        352      354       +2     
- Partials        6        7       +1     
Impacted Files Coverage Δ
modmail/__main__.py 56.25% <50.00%> (-0.90%) :arrow_down:
modmail/utils/embeds.py 93.93% <93.93%> (ø)
modmail/config.py 96.92% <100.00%> (+0.20%) :arrow_up:

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 2038e8c...652f81e. Read the comment docs.

onerandomusername commented 3 years ago

Addressed docstring and lstrip suggestions