@@ -155,13 +155,13 @@ def help_embed(self):
155
155
156
156
@commands .command ()
157
157
@commands .has_permissions (administrator = True )
158
- async def setup (self , ctx , modrole : discord .Role = None ):
158
+ async def setup (self , ctx , * , modrole : discord .Role = None ):
159
159
'''Sets up a server for modmail'''
160
160
if discord .utils .get (ctx .guild .categories , name = 'modmail' ):
161
161
return await ctx .send ('This server is already set up.' )
162
162
163
163
categ = await ctx .guild .create_category (
164
- name = 'modmail ' ,
164
+ name = 'Mod Mail ' ,
165
165
overwrites = self .overwrites (ctx , modrole = modrole )
166
166
)
167
167
await categ .edit (position = 0 )
@@ -173,7 +173,7 @@ async def setup(self, ctx, modrole: discord.Role=None):
173
173
@commands .has_permissions (administrator = True )
174
174
async def disable (self , ctx ):
175
175
'''Close all threads and disable modmail.'''
176
- categ = discord .utils .get (ctx .guild .categories , name = 'modmail ' )
176
+ categ = discord .utils .get (ctx .guild .categories , name = 'Mod Mail ' )
177
177
if not categ :
178
178
return await ctx .send ('This server is not set up.' )
179
179
for category , channels in ctx .guild .by_category ():
@@ -311,7 +311,7 @@ async def on_message(self, message):
311
311
async def reply (self , ctx , * , msg ):
312
312
categ = discord .utils .get (ctx .guild .categories , id = ctx .channel .category_id )
313
313
if categ is not None :
314
- if categ .name == 'modmail ' :
314
+ if categ .name == 'Mod Mail ' :
315
315
if 'User ID:' in ctx .channel .topic :
316
316
ctx .message .content = msg
317
317
await self .process_reply (ctx .message )
0 commit comments