File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,19 @@ async def threadmenu_toggle(self, ctx):
8787 conf ["enabled" ] = not conf ["enabled" ]
8888 await self ._save_conf (conf )
8989 await ctx .send (f"Thread-creation menu is now { 'enabled' if conf ['enabled' ] else 'disabled' } ." )
90+ advancedmenu_plugin = self .bot .get_cog ("AdvancedMenu" )
91+ if (
92+ advancedmenu_plugin
93+ and hasattr (advancedmenu_plugin , "config" )
94+ and advancedmenu_plugin .config .get ("enabled" )
95+ and advancedmenu_plugin .config ["enabled" ] is True
96+ and conf ["enabled" ]
97+ ):
98+ await ctx .send (
99+ "**Warning:** You are using both the core threadmenu feature and the advancedmenu plugin.\n "
100+ "It is recommended to disable/uninstall the advancedmenu plugin to avoid interruption.\n "
101+ "Migration guide can be found at: <https://docs.modmail.dev/usage-guide/threadmenu#advanced-legacy-usage>"
102+ )
90103
91104 @checks .has_permissions (PermissionLevel .ADMINISTRATOR )
92105 @threadmenu .command (name = "show" )
You can’t perform that action at this time.
0 commit comments