Variable name changes for clarification and fixing runtime issues.
This commit is contained in:
@@ -139,14 +139,14 @@ class MessageManagementCog(commands.Cog, name="Message Management"):
|
||||
|
||||
await interaction.response.send_message(f"Updated table {group.GroupName}!", ephemeral=True)
|
||||
|
||||
@refresh_group.on_autocomplete("table_name")
|
||||
async def refresh_table_autofill(self, interaction: nextcord.Interaction, table_name: str):
|
||||
@refresh_group.on_autocomplete("group_id")
|
||||
async def refresh_table_autofill(self, interaction: nextcord.Interaction, group_id: str):
|
||||
"""
|
||||
Collects list of table names and compares to input table name for autocomplete assistance.
|
||||
|
||||
Args:
|
||||
interaction (nextcord.Interaction): Interaction with command.
|
||||
table_name (str): String to run autocomplete compared to.
|
||||
group_id (str): String to run autocomplete compared to.
|
||||
"""
|
||||
|
||||
await interaction.response.send_autocomplete(autofill_groups(interaction.guild_id, table_name))
|
||||
await interaction.response.send_autocomplete(autofill_groups(interaction.guild_id, group_id))
|
||||
|
||||
Reference in New Issue
Block a user