async def twitch(self, ctx, userid, link): # Allow tagging to work as well if len(ctx.message.mentions) == 1: userid = ctx.message.mentions[0].id twitch.add(userid, link) await ctx.send("{}'s Twitch is toegevoegd aan de database.".format( self.utilsCog.getDisplayName(ctx, userid)))
async def twitchadd(self, ctx, link): if "twitch.tv" not in link.lower(): link = "https://www.twitch.tv/{}".format(link) twitch.add(ctx.author.id, link) await ctx.message.add_reaction("✅")