Trying to make waifu/husbando arguments optional in help embed

pull/8/head
sgoudham 4 years ago
parent adf6f57aa8
commit bfce2b749d

@ -1,7 +1,6 @@
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
@ -117,7 +116,7 @@ class Anime(commands.Cog):
self.bot = bot self.bot = bot
@commands.group(invoke_without_command=True) @commands.group(invoke_without_command=True)
async def waifu(self, ctx, waifu: Optional): async def waifu(self, ctx, waifu=None):
"""Shows a Waifu""" """Shows a Waifu"""
if waifu: if waifu:
@ -149,7 +148,7 @@ class Anime(commands.Cog):
await ctx.send(embed=embed) await ctx.send(embed=embed)
@commands.group(invoke_without_command=True) @commands.group(invoke_without_command=True)
async def husbando(self, ctx, husbando: Optional): async def husbando(self, ctx, husbando=None):
"""Shows a Husbando""" """Shows a Husbando"""
if husbando: if husbando:

Loading…
Cancel
Save