.setFooter(`Page ${i+1}/${json.merchandises.length} | Out of stock in ${prettifyMiliseconds(json.merchandises[i].end_time*1000-Date.now())} | Data provided by splatoon2.ink`);
embeds.push(embed);
}
constPaginator=newBasePaginator({
pages:embeds,
timeout:120000,
filter:(reaction,user)=>user.id==message.author.id//to filter the reaction collector
})
Paginator.spawn(message.channel)
})
.catch(err=>{
message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`);