Skip to content

Commit

Permalink
fix: err.msg -> err.args
Browse files Browse the repository at this point in the history
  • Loading branch information
tristiisch committed Nov 18, 2024
1 parent 8ecdaa1 commit 9598e85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pyramid/connector/discord/guild_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def play(
try:
track: TrackMinimal | None = await self.data.search_engine.search_track(input, engine)
except DiscordMessageException as err:
ms.edit_message(err.msg, "search")
ms.edit_message(err.arg, "search")
return False

return await self._execute_play(ms, voice_channel, track, at_end=at_end)
Expand Down Expand Up @@ -202,7 +202,7 @@ async def searchV1(
try:
tracks, tracks_unfindable = await self.data.search_engine.search_tracks(input, engine)
except DiscordMessageException as err:
ms.add_message(err.msg)
ms.add_message(err.arg)
return False

hsa = utils_list_track.to_str(tracks)
Expand All @@ -220,7 +220,7 @@ async def search(
input, engine, 25
)
except DiscordMessageException as err:
ms.add_message(err.msg)
ms.add_message(err.arg)
return False

view = SelectView(
Expand Down Expand Up @@ -258,7 +258,7 @@ async def play_url(
try:
result = await self.data.search_engine.search_by_url(url)
except DiscordMessageException as err:
ms.edit_message(err.msg, "search")
ms.edit_message(err.arg, "search")
return False

if isinstance(result, tuple):
Expand Down

0 comments on commit 9598e85

Please sign in to comment.