From e12b6183a125f2763e1c8128f83797f9bc11331d Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 25 Jul 2020 15:10:35 +0100 Subject: [PATCH] Making it the command arguments optional for waifu and husbando --- cogs/anime.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cogs/anime.py b/cogs/anime.py index 7ccf909f..8d0a74db 100644 --- a/cogs/anime.py +++ b/cogs/anime.py @@ -1,6 +1,7 @@ import datetime import random import string +from typing import Optional from discord import Embed, Colour from discord.ext import commands @@ -123,7 +124,7 @@ class Anime(commands.Cog): @commands.group(invoke_without_command=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""" if waifu: @@ -156,7 +157,7 @@ class Anime(commands.Cog): @commands.group(invoke_without_command=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""" if husbando: