Remove command prefix check during item creation in ItemManager to streamline the user experience and prevent premature termination of the item creation process.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
This commit is contained in:
parent
224a01ad89
commit
1b77d537be
1 changed files with 0 additions and 4 deletions
|
@ -1756,10 +1756,6 @@ class ItemManager:
|
|||
await self.ctx.send("Enter a name for this item. It can't be longer than 20 characters.")
|
||||
name = await self.ctx.bot.wait_for("message", timeout=25, check=Checks(self.ctx, length=30).length_under)
|
||||
|
||||
if name.content.startswith(self.ctx.prefix):
|
||||
await self.ctx.send("Closing item creation. Please don't run commands while attempting to create an item.")
|
||||
return None
|
||||
|
||||
if item:
|
||||
async with self.instance.Shops() as shops:
|
||||
shops[shop]["Items"][name.content] = shops[shop]["Items"].pop(item)
|
||||
|
|
Loading…
Add table
Reference in a new issue