Skip to content

Commit

Permalink
Merge pull request #42 from reinhello/patch
Browse files Browse the repository at this point in the history
Fix 'cannot read embeds' error upon fetching bookmarks
  • Loading branch information
reinacchi authored Aug 6, 2022
2 parents 1c43c91 + 0f2a675 commit 1bab44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/lib/Modules/BookmarkPaginator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class BookmarkPaginator {
public async onSearch(interaction: ComponentInteraction<TextableChannel>) {
if (interaction.member.bot) return;

const embed = new Utils.RichEmbed(interaction.message.embeds[0]);
const embed = new Utils.RichEmbed(interaction.message ? interaction.message.embeds[0] : undefined);
const userData = await UserModel.findOne({ id: interaction.member.id });

const hideComponent: ActionRow[] = [
Expand Down

0 comments on commit 1bab44f

Please sign in to comment.