Skip to content

Commit

Permalink
style(pre-commit): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 11, 2024
1 parent cfd6d71 commit 9e05f54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ These changes are available on the `master` branch, but have not yet been releas

### Changed

- Renamed `cover` property of `ScheduledEvent` and `cover` argument of `ScheduledEvent.edit` to `image`.
- Renamed `cover` property of `ScheduledEvent` and `cover` argument of
`ScheduledEvent.edit` to `image`.
([#2496](https://github.com/Pycord-Development/pycord/pull/2496))

## [2.6.0] - 2024-07-09
Expand Down
7 changes: 4 additions & 3 deletions discord/scheduled_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@
ScheduledEventStatus,
try_enum,
)
from .errors import ValidationError
from .errors import InvalidArgument, ValidationError
from .iterators import ScheduledEventSubscribersIterator
from .mixins import Hashable
from .object import Object
from .utils import warn_deprecated
from .errors import InvalidArgument

__all__ = (
"ScheduledEvent",
Expand Down Expand Up @@ -362,7 +361,9 @@ async def edit(
if cover is not MISSING:
warn_deprecated("cover", "image", "2.7")
if image is not MISSING:
raise InvalidArgument("cannot pass both `image` and `cover` to `ScheduledEvent.edit`")
raise InvalidArgument(
"cannot pass both `image` and `cover` to `ScheduledEvent.edit`"
)
else:
image = cover

Expand Down

0 comments on commit 9e05f54

Please sign in to comment.