fixed ?selling now raising an error if no argument is provided
parent
7b36784a89
commit
1bf2ac931b
|
@ -102,7 +102,11 @@ class Search_Commands:
|
||||||
?selling [item]
|
?selling [item]
|
||||||
"""
|
"""
|
||||||
item_name = get_name(args)
|
item_name = get_name(args)
|
||||||
|
|
||||||
|
if item_name is None:
|
||||||
|
raise commands.UserInputError
|
||||||
try:
|
try:
|
||||||
|
|
||||||
result = self.bot.bot_commands.selling(item_name)
|
result = self.bot.bot_commands.selling(item_name)
|
||||||
await ctx.send(
|
await ctx.send(
|
||||||
'{}, the following shop(s) sell **{}**: \n{}'.format(ctx.message.author.mention, item_name, result))
|
'{}, the following shop(s) sell **{}**: \n{}'.format(ctx.message.author.mention, item_name, result))
|
||||||
|
|
Loading…
Reference in New Issue