I get an error about ctx not being an argument, but its added in the async def example(ctx)
thing.
I got the error
<code>discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing.
</code>
<code>discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing.
</code>
discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing.
but its added as an argument..
My code is:
<code>@bot.command()
@commands.is_owner()
async def setPresence(ctx, *status):
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="{}".format(status)), status=discord.Status.do_not_disturb)
embed = discord.Embed(title="Updated!")
embed.add_field(name="Status updated to", value="{}!".format(status))
await ctx.send(embed=embed)
</code>
<code>@bot.command()
@commands.is_owner()
async def setPresence(ctx, *status):
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="{}".format(status)), status=discord.Status.do_not_disturb)
embed = discord.Embed(title="Updated!")
embed.add_field(name="Status updated to", value="{}!".format(status))
await ctx.send(embed=embed)
</code>
@bot.command()
@commands.is_owner()
async def setPresence(ctx, *status):
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="{}".format(status)), status=discord.Status.do_not_disturb)
embed = discord.Embed(title="Updated!")
embed.add_field(name="Status updated to", value="{}!".format(status))
await ctx.send(embed=embed)