Removing TODOs.
This commit is contained in:
@@ -39,7 +39,7 @@ class SubmissionButton(nextcord.ui.View):
|
|||||||
return (
|
return (
|
||||||
interaction.user.id == check_message.author.id
|
interaction.user.id == check_message.author.id
|
||||||
and interaction.channel == check_message.channel
|
and interaction.channel == check_message.channel
|
||||||
) # TODO confirm no-one else can interact with someone's submission
|
)
|
||||||
|
|
||||||
proof_message = await self._bot.wait_for("message", check=wait_check)
|
proof_message = await self._bot.wait_for("message", check=wait_check)
|
||||||
embed = submission_message.embeds[0]
|
embed = submission_message.embeds[0]
|
||||||
@@ -95,9 +95,7 @@ class SubmissionDropdownView(nextcord.ui.View):
|
|||||||
self._prev_interaction = prev_interaction
|
self._prev_interaction = prev_interaction
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
async def interaction_check(
|
async def interaction_check(self, interaction: nextcord.Interaction) -> bool:
|
||||||
self, interaction: nextcord.Interaction
|
|
||||||
) -> bool: # TODO confirm no-one else can interact with someone's submission
|
|
||||||
return self._prev_interaction.user == interaction.user
|
return self._prev_interaction.user == interaction.user
|
||||||
|
|
||||||
@nextcord.ui.button(
|
@nextcord.ui.button(
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
"""View for verification buttons"""
|
"""View for verification buttons"""
|
||||||
|
|
||||||
from warnings import catch_warnings
|
|
||||||
import nextcord
|
import nextcord
|
||||||
from utilities.utils import submit_score # pylint: disable=import-error
|
from utilities.utils import submit_score # pylint: disable=import-error
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user