Skip to content

Commit

Permalink
Fix view timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
stekc committed Oct 10, 2024
1 parent ee5df5b commit e9dabf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cogs/movies.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def callback(self, interaction: discord.Interaction):
embed=self.recommended_movies, ephemeral=True
)

view = View()
view = View(timeout=604800)
if mid and not is_imdb_link:
view.add_item(
discord.ui.Button(
Expand Down
4 changes: 2 additions & 2 deletions cogs/songs.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ async def generate_view(self, message: discord.Message, link: str):
return

color = await get_color(thumbnail)
view = discord.ui.View()
view = discord.ui.View(timeout=604800)
original_platform = None
has_spotify_or_apple = False
has_youtube = False
Expand Down Expand Up @@ -323,7 +323,7 @@ async def song_command(self, interaction: discord.Interaction, url: str):
embed = discord.Embed(color=color)
embed.set_author(name=f"{artist} - {title}", icon_url=self.thumbnail)

view = discord.ui.View()
view = discord.ui.View(timeout=604800)
view.add_item(SuggestedSongsButton(self, artist, title, color))

for platform, body in platforms.items():
Expand Down

0 comments on commit e9dabf5

Please sign in to comment.