Skip to content

Commit 8b1acb1

Browse files
committed
fixup! feat(rlstats): add unsubscribe command
1 parent ec8086e commit 8b1acb1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

rlstats/rlstats.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,7 @@ def __init__(
139139
self.delete_interaction: Optional[discord.Interaction] = None
140140

141141
async def interaction_check(self, interaction: discord.Interaction) -> bool:
142-
if (
143-
interaction.message is None
144-
or self.author.id != interaction.message.author.id
145-
):
142+
if self.author.id != interaction.user.id:
146143
await interaction.response.send_message(
147144
"You cannot interact with this.", ephemeral=True
148145
)
@@ -217,10 +214,7 @@ async def on_timeout(self) -> None:
217214
await self.message.edit(content="This message's view has expired.", view=None)
218215

219216
async def interaction_check(self, interaction: discord.Interaction) -> bool:
220-
if (
221-
interaction.message is None
222-
or self.ctx.author.id != interaction.message.author.id
223-
):
217+
if self.ctx.author.id != interaction.user.id:
224218
await interaction.response.send_message(
225219
"You cannot interact with this.", ephemeral=True
226220
)

0 commit comments

Comments
 (0)