diff --git a/bot.py b/bot.py index 2a4c642..b61ec1b 100644 --- a/bot.py +++ b/bot.py @@ -219,7 +219,7 @@ async def survey(ctx, *, arg): desc = desc + emojinumbers[z] + " - " + y + "\n" z = z + 1 em = discord.Embed(title=question, description=desc, colour=0x00E0FF) - em.set_author(name=ctx.author.display_name, url=discord.Embed.Empty, icon_url=ctx.author.avatar.url) + em.set_author(name=ctx.author.display_name, url=None, icon_url=ctx.author.avatar.url) ask_msg = await ctx.send(content="||@everyone||",embed=em) a = 0 for x in emojinumbers: @@ -244,7 +244,7 @@ async def surveyedit(ctx, *, arg): desc = desc + emojinumbers[z] + " - " + y + "\n" z = z + 1 em = discord.Embed(title=question, description=desc, colour=0x00E0FF) - em.set_author(name=ctx.author.display_name, url=discord.Embed.Empty, icon_url=ctx.author.avatar.url) + em.set_author(name=ctx.author.display_name, url=None, icon_url=ctx.author.avatar.url) survey_msg = await ctx.channel.fetch_message((int(survey_id))) await survey_msg.edit(embed=em) @@ -253,7 +253,7 @@ async def surveyedit(ctx, *, arg): async def vote(ctx, *, arg): await ctx.message.delete() em = discord.Embed(description=arg, colour=0x00E0FF) - em.set_author(name=ctx.author.display_name, url=discord.Embed.Empty, icon_url=ctx.author.avatar.url) + em.set_author(name=ctx.author.display_name, url=None, icon_url=ctx.author.avatar.url) ask_msg = await ctx.send(content="||@everyone||",embed=em) for x in ["✅", "❔", "❌"]: await ask_msg.add_reaction(x) diff --git a/requirements.txt b/requirements.txt index 5f27b6b..22c11d2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -py-cord==2.4.1 +py-cord==2.6.0