|
22 | 22 | SOFTWARE.
|
23 | 23 | '''
|
24 | 24 |
|
25 |
| -__version__ = '1.5.2' |
| 25 | +__version__ = '1.5.3' |
26 | 26 |
|
27 | 27 | from contextlib import redirect_stdout
|
28 | 28 | from urllib.parse import urlparse
|
@@ -206,6 +206,8 @@ async def on_command_error(self, ctx, error):
|
206 | 206 | em.title = f'`{prefix}{ctx.command.signature}`'
|
207 | 207 | em.description = ctx.command.help
|
208 | 208 | await ctx.send(embed=em)
|
| 209 | + else: |
| 210 | + raise error |
209 | 211 |
|
210 | 212 | def overwrites(self, ctx, modrole=None):
|
211 | 213 | '''Permision overwrites for the guild.'''
|
@@ -280,7 +282,7 @@ async def data_loop(self):
|
280 | 282 | "version": __version__
|
281 | 283 | }
|
282 | 284 |
|
283 |
| - await self.session.post('https://api.kybr.tk/modmail', json=data) |
| 285 | + await self.session.post('https://api.modmail.tk/metadata', json=data) |
284 | 286 |
|
285 | 287 | await asyncio.sleep(3600)
|
286 | 288 |
|
@@ -341,7 +343,7 @@ async def about(self, ctx):
|
341 | 343 | 'easily communicate with server leadership in an organised manner.'
|
342 | 344 |
|
343 | 345 | try:
|
344 |
| - async with self.session.get('https://api.kybr.tk/modmail') as resp: |
| 346 | + async with self.session.get('https://api.modmail.tk/metadata') as resp: |
345 | 347 | meta = await resp.json()
|
346 | 348 | except:
|
347 | 349 | meta = None
|
@@ -916,6 +918,9 @@ async def contact(self, ctx, *, user: discord.Member=None):
|
916 | 918 | reopen = True
|
917 | 919 | if not user:
|
918 | 920 | return await ctx.send('This user does not share any servers with the bot and is thus unreachable.')
|
| 921 | + |
| 922 | + if not user: |
| 923 | + raise commands.UserInputError('user must be provided') |
919 | 924 |
|
920 | 925 | categ = discord.utils.get(ctx.guild.categories, id=ctx.channel.category_id)
|
921 | 926 | channel = await self.find_or_create_thread(user, creator=ctx.author, reopen=reopen)
|
|
0 commit comments