Answer the question
In order to leave comments, you need to log in
Why is Discord complaining about quotes?
Let's say I want to send text like this: 1, 2, 3, "4, 5", "6
.
I'll do it like this:
@Bot.command()
async def say(ctx, channel: Optional[discord.TextChannel], *, args: str):
if channel is None:
await ctx.send(args)
else:
await channel.send(args)
def get_embed(json_):
embed_json = json.loads(json_)
embed = Embed().from_dict(embed_json)
return embed
@Bot.command()
async def say(ctx, channel: Optional[discord.TextChannel], *, args: str):
emb = get_embed(args)
if channel is None:
await ctx.send(embed = emb)
else:
await channel.send(embed = emb)
discord.ext.commands.errors.UnexpectedQuoteError: Unexpected quote mark, '"', in non-quoted string
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question