Skip to content

Commit d707a5d

Browse files
committed
fix: Pin discord.py to v2.4.0
Not pinning it will still work fine, though the `coinflip` command is broken because of an internal bug in discord.py 2.5.0 - until that is fixed, can't pin to a version above
1 parent a5bcacc commit d707a5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cogs/fun.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ def __init__(self) -> None:
2121

2222
@discord.ui.button(label="Heads", style=discord.ButtonStyle.blurple)
2323
async def confirm(
24-
self, button: discord.ui.Button, interaction: discord.Interaction
24+
self, interaction: discord.Interaction, button: discord.ui.Button
2525
) -> None:
2626
self.value = "heads"
2727
self.stop()
2828

2929
@discord.ui.button(label="Tails", style=discord.ButtonStyle.blurple)
3030
async def cancel(
31-
self, button: discord.ui.Button, interaction: discord.Interaction
31+
self, interaction: discord.Interaction, button: discord.ui.Button
3232
) -> None:
3333
self.value = "tails"
3434
self.stop()

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
aiohttp
22
aiosqlite
3-
discord.py
3+
discord.py==2.4.0
44
python-dotenv

0 commit comments

Comments
 (0)