From e0e53cf87e981d900cbaf5a0228ddacc3d3011e1 Mon Sep 17 00:00:00 2001 From: Fixator10 Date: Mon, 5 Oct 2020 00:18:57 +0400 Subject: [PATCH] [trickortreat] make number in eatcandy optional (#161) --- trickortreat/trickortreat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trickortreat/trickortreat.py b/trickortreat/trickortreat.py index 4552186..917e954 100644 --- a/trickortreat/trickortreat.py +++ b/trickortreat/trickortreat.py @@ -1,6 +1,6 @@ import asyncio import datetime -from typing import Literal +from typing import Literal, Optional import discord import random @@ -9,7 +9,7 @@ from redbot.core import commands, checks, Config, bank from redbot.core.utils.chat_formatting import box, pagify, humanize_number from redbot.core.utils.menus import menu, DEFAULT_CONTROLS -__version__ = "0.0.9" +__version__ = "0.0.10" class TrickOrTreat(commands.Cog): @@ -40,7 +40,7 @@ class TrickOrTreat(commands.Cog): @commands.guild_only() @commands.command() - async def eatcandy(self, ctx, number: int = 1, candy_type=None): + async def eatcandy(self, ctx, number: Optional[int] = 1, candy_type=None): """Eat some candy. Valid types: candies, lollipops, stars"""