shayypy / guilded.py

Asynchronous Guilded API wrapper for Python
https://guildedpy.rtfd.io
Other
133 stars 25 forks source link

Embeds not Sending #36

Closed Reedeht closed 2 years ago

Reedeht commented 2 years ago

Describe the bug When attempting to send embeds, that have been made similar to in discord.py, you get a series of errors related to embeds.

To Reproduce How to reproduce is in screenshot, but it is applicable to all embed modifications

Expected behavior Bot would send an embed with gold colouring, and a single field, with Test as a title and Test as Content.

Actual behavior Errors sent to console, copy and paste below Ignoring exception in command test: Traceback (most recent call last): File "guilded/ext/commands/core.py", line 83, in wrapped ret = await coro(*args, **kwargs) File "PycharmProjects/Unified States/miscRW/credits.py", line 18, in test await ctx.send(embed=embed) File "guilded/abc.py", line 236, in send data = await self._state.create_channel_message(self._channel_id, File "guilded/http.py", line 1404, in request return await perform() File "guilded/http.py", line 1400, in perform raise exception(response, data) guilded.errors.BadRequest: 400 (BadRequestError): data must have required property 'content', data must have required property 'embeds', data must match a schema in anyOf

The above exception was the direct cause of the following exception: Traceback (most recent call last): File "guilded/ext/commands/bot.py", line 421, in invoke await ctx.command.invoke(ctx) File "guilded/ext/commands/core.py", line 619, in invoke await injected(*ctx.args, **ctx.kwargs) File "guilded/ext/commands/core.py", line 92, in wrapped raise CommandInvokeError(exc) from exc guilded.ext.commands.errors.CommandInvokeError: Command raised an exception: BadRequest: 400 (BadRequestError): data must have required property 'content', data must have required property 'embeds', data must match a schema in anyOf

Screenshots image

Environment

shayypy commented 2 years ago

https://github.com/shayypy/guilded.py/issues/33#issuecomment-1122860684