Commit 9a83a2a
feat: Add function to get elapsed time of playing audio on VoiceClient (#2587)
* add played_seconds function
* Update CHANGELOG.md
* style(pre-commit): auto fixes from pre-commit.com hooks
* use datetime.timedelta instead of int
* add comment
* style(pre-commit): auto fixes from pre-commit.com hooks
* rename function to reflect change
* style(pre-commit): auto fixes from pre-commit.com hooks
* don't use different counter
* Update discord/voice_client.py
Signed-off-by: Dorukyum <[email protected]>
* Apply suggestions from code review
Co-authored-by: Dorukyum <[email protected]>
Signed-off-by: felix920506 <[email protected]>
---------
Signed-off-by: felix920506 <[email protected]>
Signed-off-by: Dorukyum <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dorukyum <[email protected]>1 parent 1273941 commit 9a83a2a
3 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
| 727 | + | |
727 | 728 | | |
728 | 729 | | |
729 | 730 | | |
| |||
751 | 752 | | |
752 | 753 | | |
753 | 754 | | |
| 755 | + | |
754 | 756 | | |
755 | 757 | | |
756 | 758 | | |
757 | 759 | | |
| 760 | + | |
758 | 761 | | |
759 | 762 | | |
760 | 763 | | |
| |||
809 | 812 | | |
810 | 813 | | |
811 | 814 | | |
| 815 | + | |
812 | 816 | | |
813 | 817 | | |
814 | 818 | | |
| |||
834 | 838 | | |
835 | 839 | | |
836 | 840 | | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
988 | 989 | | |
989 | 990 | | |
990 | 991 | | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
0 commit comments