Closed synrg closed 4 years ago
While a local fix for send_embed_for_taxon()
would address this one case, the problem is widespread throughout the cog, as there are many direct invocations of ctx.send(embed=...)
without using a helper from embed.py
or inat_embed.py
.
Therefore, after fixing this very commonly executed command response, the issue should also be addressed systematically across all other commands.
bd6d4c6643bf4090a0b7685c3625bbf8cb875e00 adds a check for ,taxon
and this will apply to all subcommands. Other taxon commands outside this group need similar attention, and while we're at it, we should check the other sending permissions, such as attach_files (probably only relevant for preview of sound recordings).
Fixed as of d08f650b30ecb602b69c8776d42f5d3c995faaae
If the bot does not have embed permission, a text message response or error message is appropriate. Otherwise an exception is triggered: