mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
Remove provisional note from NoParseOptional, fix and start using UserInputOptional (#4142)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user