Making it the command arguments optional for waifu and husbando

pull/8/head
sgoudham 4 years ago
parent fcbcbe2cde
commit e12b6183a1

@ -1,6 +1,7 @@
import datetime import datetime
import random import random
import string import string
from typing import Optional
from discord import Embed, Colour from discord import Embed, Colour
from discord.ext import commands from discord.ext import commands
@ -123,7 +124,7 @@ class Anime(commands.Cog):
@commands.group(invoke_without_command=True) @commands.group(invoke_without_command=True)
@bot_has_permissions(embed_links=True) @bot_has_permissions(embed_links=True)
async def waifu(self, ctx, waifu=None): async def waifu(self, ctx, waifu: Optional[str] = None):
"""Shows a Waifu""" """Shows a Waifu"""
if waifu: if waifu:
@ -156,7 +157,7 @@ class Anime(commands.Cog):
@commands.group(invoke_without_command=True) @commands.group(invoke_without_command=True)
@bot_has_permissions(embed_links=True) @bot_has_permissions(embed_links=True)
async def husbando(self, ctx, husbando=None): async def husbando(self, ctx, husbando: Optional[str] = None):
"""Shows a Husbando""" """Shows a Husbando"""
if husbando: if husbando:

Loading…
Cancel
Save