Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95cfcca600 | ||
|
|
0419c9dfd6 |
@@ -154,7 +154,7 @@ class EventView(nextcord.ui.View):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, name: str, host_id: int):
|
def __init__(self, name: str, host_id: int):
|
||||||
super().__init__()
|
super().__init__(timeout=60 * 60 * 2) # timeout 2 hours
|
||||||
|
|
||||||
self.name: str = name
|
self.name: str = name
|
||||||
self.host_id: int = host_id
|
self.host_id: int = host_id
|
||||||
|
|||||||
@@ -215,6 +215,7 @@ class ViewCog(commands.Cog, name="View Commands"):
|
|||||||
await interaction.response.send_autocomplete(autofilled_elections[:25])
|
await interaction.response.send_autocomplete(autofilled_elections[:25])
|
||||||
|
|
||||||
@event_points.on_autocomplete("quarter_name")
|
@event_points.on_autocomplete("quarter_name")
|
||||||
|
@clan_points.on_autocomplete("quarter_name")
|
||||||
async def event_points_autocomplete(self, interaction: nextcord.Interaction, quarter_name: str) -> None:
|
async def event_points_autocomplete(self, interaction: nextcord.Interaction, quarter_name: str) -> None:
|
||||||
"""
|
"""
|
||||||
Collects all elections that start with the election string.
|
Collects all elections that start with the election string.
|
||||||
|
|||||||
Reference in New Issue
Block a user