@@ -153,9 +153,7 @@ async def snippet(self, ctx, *, name: str.lower = None):
153153 embed = create_not_found_embed (name , self .bot .snippets .keys (), "Snippet" )
154154 else :
155155 embed = discord .Embed (
156- title = f'Snippet - "{ name } ":' ,
157- description = val ,
158- color = self .bot .main_color
156+ title = f'Snippet - "{ name } ":' , description = val , color = self .bot .main_color
159157 )
160158 return await ctx .send (embed = embed )
161159
@@ -189,9 +187,11 @@ async def snippet_raw(self, ctx, *, name: str.lower):
189187 embed = create_not_found_embed (name , self .bot .snippets .keys (), "Snippet" )
190188 else :
191189 val = truncate (escape_code_block (val ), 2048 - 7 )
192- embed = discord .Embed (title = f'Raw snippet - "{ name } ":' ,
193- description = f"```\n { val } ```" ,
194- color = self .bot .main_color )
190+ embed = discord .Embed (
191+ title = f'Raw snippet - "{ name } ":' ,
192+ description = f"```\n { val } ```" ,
193+ color = self .bot .main_color ,
194+ )
195195
196196 return await ctx .send (embed = embed )
197197
@@ -1309,11 +1309,22 @@ async def enable(self, ctx):
13091309 @commands .group (invoke_without_command = True )
13101310 @checks .has_permissions (PermissionLevel .ADMINISTRATOR )
13111311 async def disable (self , ctx ):
1312+ """
1313+ Disable partial or full Modmail thread functions.
1314+
1315+ To stop all new threads from being created, do `{prefix}disable new`.
1316+ To stop all existing threads from DMing Modmail, do `{prefix}disable all`.
1317+ To check if the DM function for Modmail is enabled, do `{prefix}isenable`.
1318+ """
1319+ await ctx .send_help (ctx .command )
1320+
1321+ @disable .command (name = "new" )
1322+ @checks .has_permissions (PermissionLevel .ADMINISTRATOR )
1323+ async def disable_new (self , ctx ):
13121324 """
13131325 Stop accepting new Modmail threads.
13141326
13151327 No new threads can be created through DM.
1316- To stop all existing threads from DMing Modmail, do `{prefix}disable all`.
13171328 """
13181329 embed = discord .Embed (
13191330 title = "Success" ,
0 commit comments