Skip to content

Commit 9dc59e3

Browse files
committed
fix more issues in 'replace_embed_from_dict_at'
1 parent 627765d commit 9dc59e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snakecore/utils/embed_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,7 @@ async def edit_embed_from_dict_at(
17581758

17591759
index = embed_count + index if index < 0 else index
17601760

1761-
if 0 < index < len(message.embeds):
1761+
if 0 <= index < len(message.embeds):
17621762
embeds[index] = discord.Embed.from_dict(
17631763
edit_embed_dict_from_dict(
17641764
embeds[index].to_dict(),

0 commit comments

Comments
 (0)