We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 995a164 commit 7d649daCopy full SHA for 7d649da
discord_slash/model.py
@@ -200,7 +200,7 @@ async def _slash_edit(self, **fields):
200
"""
201
_resp = {}
202
203
- content = str(fields.get("content"))
+ content = fields.get("content")
204
if content:
205
_resp["content"] = str(content)
206
@@ -240,7 +240,7 @@ async def _slash_edit(self, **fields):
240
241
async def edit(self, **fields):
242
"""Refer :meth:`discord.Message.edit`."""
243
- if ("file", "files") in fields:
+ if "file" in fields or "files" in fields:
244
await self._slash_edit(**fields)
245
else:
246
try:
0 commit comments