Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large code/documentation cleanup #1476

Merged
merged 24 commits into from
Jul 24, 2022
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8ac724c
Can't even begin to summarize this
baronkobama Jul 8, 2022
5b7fdd9
Can't even begin to summarize this
baronkobama Jul 8, 2022
93e0c56
Merge branch 'code-cleanup' of https://github.com/baronkobama/pycord …
baronkobama Jul 8, 2022
41b959b
Update overwrites description
baronkobama Jul 8, 2022
c0e48de
Add Optional typehint
baronkobama Jul 8, 2022
5fc07bf
Fix indents, slicing, callable brackets
baronkobama Jul 8, 2022
01ac80f
Update discord/abc.py
Lulalaby Jul 10, 2022
aaf9e89
chore: implement suggestions
baronkobama Jul 10, 2022
a7bb9f2
chore: missed one
baronkobama Jul 10, 2022
0d66ae2
Merge branch 'master' into code-cleanup
baronkobama Jul 10, 2022
f485a0f
fix: missing TextChannel docs
baronkobama Jul 10, 2022
3f5ba96
Merge branch 'code-cleanup' of https://github.com/baronkobama/pycord …
baronkobama Jul 10, 2022
3975858
fix: missing ForumChannel docs
baronkobama Jul 10, 2022
a4a3675
fix: failing docs check
baronkobama Jul 10, 2022
7ca6ca6
Update discord/guild.py
baronkobama Jul 11, 2022
1723621
docs: remove unused guild features
baronkobama Jul 11, 2022
81cc65b
docs: undo a removed guild feature
baronkobama Jul 11, 2022
d2ce246
Merge branch 'master' into code-cleanup
Lulalaby Jul 17, 2022
e4be6dc
Update discord/stage_instance.py
Lulalaby Jul 22, 2022
099f797
Update discord/scheduled_events.py
Lulalaby Jul 22, 2022
cf113a0
Update discord/commands/permissions.py
Lulalaby Jul 22, 2022
4a38c22
Merge branch 'master' into code-cleanup
Lulalaby Jul 22, 2022
d8553fb
Update http.py
baronkobama Jul 22, 2022
e7dfdd3
Merge branch 'master' into code-cleanup
Lulalaby Jul 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update discord/scheduled_events.py
Co-authored-by: Middledot <78228142+Middledot@users.noreply.github.com>
  • Loading branch information
Lulalaby and Middledot authored Jul 22, 2022
commit 099f797105edd373cba52152e76fb6e7f0de597c
2 changes: 1 addition & 1 deletion discord/scheduled_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def __init__(
self.description: Optional[str] = data.get("description", None)
self._cover: Optional[str] = data.get("image", None)
self.start_time: datetime.datetime = datetime.datetime.fromisoformat(data.get("scheduled_start_time"))
if (end_time := data.get("scheduled_end_time", None)) is not None:
if end_time := data.get("scheduled_end_time", None):
end_time = datetime.datetime.fromisoformat(end_time)
self.end_time: Optional[datetime.datetime] = end_time
self.status: ScheduledEventStatus = try_enum(ScheduledEventStatus, data.get("status"))
Expand Down