Skip to content

Commit 2018026

Browse files
authored
Fixed bugs
state.http.edit_files -> self._state.http.edit_files
1 parent 754338a commit 2018026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ async def edit(
13221322
raise InvalidArgument('file parameter must be File')
13231323

13241324
try:
1325-
data = await state.http.edit_files(
1325+
data = await self._state.http.edit_files(
13261326
channel.id,
13271327
self.id,
13281328
files=[file],
@@ -1344,7 +1344,7 @@ async def edit(
13441344
raise InvalidArgument('files parameter must be a list of File')
13451345

13461346
try:
1347-
data = await state.http.edit_files(
1347+
data = await self._state.http.edit_files(
13481348
channel.id,
13491349
self.id,
13501350
files=files,

0 commit comments

Comments
 (0)