Skip to content

Commit

Permalink
fix: returning getting channels
Browse files Browse the repository at this point in the history
  • Loading branch information
qwixck committed Jan 20, 2023
1 parent 45923fb commit ab6d14c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cogs/stores/epicGames.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def epicGames(self):
channels: dict = json.load(f)
for channel in channels:
try:
_channel = await self.bot.fetch_channel(channels[str(channel)]["channel"])
_channel = self.bot.get_channel(channels[str(channel)]["channel"])
await _channel.send(embeds=list)
except discord.errors.HTTPException:
pass
Expand Down
2 changes: 1 addition & 1 deletion cogs/stores/steam.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def steam(self):
channels: dict = json.load(f)
for channel in channels:
try:
_channel = await self.bot.fetch_channel(channels[str(channel)]["channel"])
_channel = self.bot.get_channel(channels[str(channel)]["channel"])
await _channel.send(embeds=list)
except discord.errors.HTTPException:
pass
Expand Down

0 comments on commit ab6d14c

Please sign in to comment.