@@ -153,9 +153,7 @@ async def snippet(self, ctx, *, name: str.lower = None):
153
153
embed = create_not_found_embed (name , self .bot .snippets .keys (), "Snippet" )
154
154
else :
155
155
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
159
157
)
160
158
return await ctx .send (embed = embed )
161
159
@@ -189,9 +187,11 @@ async def snippet_raw(self, ctx, *, name: str.lower):
189
187
embed = create_not_found_embed (name , self .bot .snippets .keys (), "Snippet" )
190
188
else :
191
189
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
+ )
195
195
196
196
return await ctx .send (embed = embed )
197
197
@@ -1309,11 +1309,22 @@ async def enable(self, ctx):
1309
1309
@commands .group (invoke_without_command = True )
1310
1310
@checks .has_permissions (PermissionLevel .ADMINISTRATOR )
1311
1311
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 ):
1312
1324
"""
1313
1325
Stop accepting new Modmail threads.
1314
1326
1315
1327
No new threads can be created through DM.
1316
- To stop all existing threads from DMing Modmail, do `{prefix}disable all`.
1317
1328
"""
1318
1329
embed = discord .Embed (
1319
1330
title = "Success" ,
0 commit comments