Skip to content

Commit 29c7cf0

Browse files
committed
Fix EmbedPaginatorSession throws error if the provided embeds dont have title.
1 parent 5170035 commit 29c7cf0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

core/paginator.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,15 @@ def __init__(self, ctx: commands.Context, *embeds, **options):
324324
title = embed.author.name[:30].strip()
325325
if len(embed.author.name) > 30:
326326
title += "..."
327-
else:
327+
elif embed.title:
328328
title = embed.title[:30].strip()
329329
if len(embed.title) > 30:
330330
title += "..."
331-
if not title:
332-
create_select = False
331+
else:
332+
title = None
333+
334+
if not title:
335+
create_select = False
333336

334337
if embed.description:
335338
description = embed.description[:40].replace("*", "").replace("`", "").strip()

0 commit comments

Comments
 (0)