actually await call to on_error in spawn_event
@@ -84,7 +84,7 @@ class MobSpawner(commands.Cog):
try:
await self._spawn_event(ctx)
except Exception as e:
- self.bot.get_cog("Events").on_error("mob_spawn", ctx)
+ await self.bot.get_cog("Events").on_error("mob_spawn", ctx)
async def _spawn_event(self, ctx):
if ctx.guild is None: # ignore dms
