File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments