Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions cogs/threadmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ async def threadmenu_toggle(self, ctx):
conf["enabled"] = not conf["enabled"]
await self._save_conf(conf)
await ctx.send(f"Thread-creation menu is now {'enabled' if conf['enabled'] else 'disabled'}.")
advancedmenu_plugin = self.bot.get_cog("AdvancedMenu")
if (
advancedmenu_plugin
and hasattr(advancedmenu_plugin, "config")
and advancedmenu_plugin.config.get("enabled")
and advancedmenu_plugin.config["enabled"] is True
and conf["enabled"]
):
await ctx.send(
"**Warning:** You are using both the core threadmenu feature and the advancedmenu plugin.\n"
"It is recommended to disable/uninstall the advancedmenu plugin to avoid interruption."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the instruction "You can directly migrate your settings over. Run {prefix}advancedmenu dump_config, download the file it gives, then upload it with the command {prefix}threadmenu load_config."

The rest looks just fine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also link to this: https://docs.modmail.dev/usage-guide/threadmenu#migrating-from-legacy-advanced-menu-plugin

Which also has screenshots which should (hopefully) reduce the # of people asking how to do.

)

@checks.has_permissions(PermissionLevel.ADMINISTRATOR)
@threadmenu.command(name="show")
Expand Down
Loading