Skip to content

Commit

Permalink
used interactiontype
Browse files Browse the repository at this point in the history
  • Loading branch information
FirePlank committed Nov 30, 2023
1 parent 771d590 commit d8e594f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/extensions/adventofcode/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import discord
from bs4 import BeautifulSoup
from discord import Interaction, ui
from discord import ui
from discord.ui import Item

from bot import core
Expand Down Expand Up @@ -112,5 +112,5 @@ async def global_leaderboard(self, interaction: core.InteractionType, _button: u

await interaction.response.edit_message(embed=embed, view=self)

async def on_error(self, interaction: Interaction, _error: Exception, _item: Item[t.Any], /) -> None:
async def on_error(self, interaction: core.InteractionType, _error: Exception, _item: Item[t.Any], /) -> None:
await interaction.client.on_error("adventofcode_view")

0 comments on commit d8e594f

Please sign in to comment.