fix .vc not sending embeds right
this should work, I really hope it does
@@ -558,9 +558,20 @@ are not on 11.3, use [this version of safehax.](https://github.com/TiniVi/safeha
@commands.command()
@commands.cooldown(rate=1, per=30.0, type=commands.BucketType.channel)
- async def vc(self, ctx, *, console=""):
+ async def vc(self, ctx, *, consoles=""):
"""Link to Virtual Console Injects for 3DS/Wiiu."""
- if self.check_console(console, ctx.channel.name, '3ds'):
+ injects = ("3ds", "wiiu", "wii u")
+ consoleslist = []
+ for x in consoles.split():
+ if x in injects and x not in consoleslist:
+ consoleslist.append(x)
+ if not consoleslist:
+ if ctx.channel.name.startswith(injects):
+ consoleslist.append("None")
+ else:
+ await ctx.send("Please specify a console; valid options are: 3ds, wiiu")
+ return
+ for x in consoleslist:
embed = discord.Embed(title="Virtual Console Injects for 3DS", color=discord.Color.blue())
embed.set_author(name="Asdolo", url="https://gbatemp.net/members/asdolo.389539/")
embed.set_thumbnail(url="https://i.imgur.com/rHa76XM.png")
@@ -569,7 +580,7 @@ are not on 11.3, use [this version of safehax.](https://github.com/TiniVi/safeha
"Usage guide [here](http://3ds.eiphax.tech/nsui.html)")
await ctx.send(embed=embed)
- if self.check_console(console, ctx.channel.name, ('wiiu', 'wii u')):
+ if self.check_console(x, ctx.channel.name, ('wiiu', 'wii u')):
embed1 = discord.Embed(title="Wii and GameCube games for WiiU", color=discord.Color.red())
embed1.set_author(name="TeconMoon")
embed1.set_thumbnail(url="https://gbatemp.net/data/avatars/m/300/300039.jpg")
