Skip to content

Commit 7b08c0b

Browse files
Fix wrong arg name used
1 parent 0cb880d commit 7b08c0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord_slash/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def __init__(self, *, state, channel, data, _http: http.SlashCommandRequest, int
194194
self._http = _http
195195
self.__interaction_token = interaction_token
196196

197-
async def _slash_edit(self, **kwargs):
197+
async def _slash_edit(self, **fields):
198198
"""
199199
An internal function
200200
"""
@@ -225,7 +225,7 @@ async def _slash_edit(self, **kwargs):
225225
_resp["allowed_mentions"] = allowed_mentions.to_dict() if allowed_mentions else \
226226
self._state.allowed_mentions.to_dict() if self._state.allowed_mentions else {}
227227

228-
await self._http.edit(_resp, self.__interaction_token, self.id, files = files)
228+
await self._http.edit(_resp, self.__interaction_token, self.id, files = fileso)
229229

230230
delete_after = fields.get("delete_after")
231231
if delete_after:

0 commit comments

Comments
 (0)