[trickortreat] make number in eatcandy optional (#161)

This commit is contained in:
Fixator10
2020-10-05 00:18:57 +04:00
committed by GitHub
parent a2245d9542
commit e0e53cf87e

View File

@@ -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"""