Remove provisional note from NoParseOptional, fix and start using UserInputOptional (#4142)

This commit is contained in:
jack1142
2020-08-10 21:20:02 +02:00
committed by GitHub
parent 35b0224690
commit 9798538438
7 changed files with 26 additions and 37 deletions

View File

@@ -5,6 +5,7 @@ import aiohttp
from redbot.core.i18n import Translator, cog_i18n
from redbot.core import checks, Config, commands
from redbot.core.commands import UserInputOptional
_ = Translator("Image", __file__)
@@ -47,7 +48,7 @@ class Image(commands.Cog):
pass
@_imgur.command(name="search")
async def imgur_search(self, ctx, count: Optional[int] = 1, *, term: str):
async def imgur_search(self, ctx, count: UserInputOptional[int] = 1, *, term: str):
"""Search Imgur for the specified term.
Use `count` to choose how many images should be returned.