diff --git a/resources/slashParameters.json b/resources/slashParameters.json index db44a4e..876bc46 100644 --- a/resources/slashParameters.json +++ b/resources/slashParameters.json @@ -428,7 +428,7 @@ "description" : "Searches for and gets the info for a wiki page", "options" : [ { - "name" : "wikiPage", + "name" : "page", "description" : "The page to find", "type" : 3, "required" : "false" diff --git a/utils/helperClasses.py b/utils/helperClasses.py index 53894f3..b643071 100644 --- a/utils/helperClasses.py +++ b/utils/helperClasses.py @@ -140,7 +140,7 @@ class databaseFuncs(): lastSynced = collection.find_one() now = time.time() if lastSynced["last synced"] < now - 86400: - slashCommandList = str(await self.bot.slash.to_dict()) + slashCommandList = await self.bot.slash.to_dict() self.bot.log(f"Updating commands: {slashCommandList}") await self.bot.slash.sync_all_commands() idNumber = lastSynced["_id"]