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

@@ -14,6 +14,7 @@ from redbot.cogs.warnings.helpers import (
)
from redbot.core import Config, checks, commands, modlog
from redbot.core.bot import Red
from redbot.core.commands import UserInputOptional
from redbot.core.i18n import Translator, cog_i18n
from redbot.core.utils import AsyncIter
from redbot.core.utils.chat_formatting import warning, pagify
@@ -364,7 +365,7 @@ class Warnings(commands.Cog):
self,
ctx: commands.Context,
user: discord.Member,
points: Optional[int] = 1,
points: UserInputOptional[int] = 1,
*,
reason: str,
):